To route packets using the Internet Protocol (IP), you:
An IP routing interface defines the relationship between an IP virtual LAN (VLAN) and the subnetworks in the IP network. Each routing IP VLAN interface is associated with one VLAN that supports IP. The system has one interface defined for each subnetwork that is directly connected to it. You must first define a VLAN, as described in Chapter 13, before you define an associated IP VLAN interface.
This chapter provides guidelines and other key information about how to configure IP in your system. For information about IP multicast, see Chapter 16. For information about OSPF routing using IP, see Chapter 17.
For more information about IP routing, see the Implementation Guide for your system.
For the CoreBuilder 9000 platform: The commands in this chapter apply to Layer 3 switching modules only.
The commands that you can use depend on the system that you have, your level of access, and the types of modules and other hardware options that are configured for your system. The following diagram shows the complete list of commands for all systems. See the checklist at the beginning of each command description in this chapter for whether your system supports the command.
ip interface summary
Displays summary information about the IP interfaces that are configured on the system.
ip i su
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
Interface index |
Interface number for which you want to display summary information |
- |
ip interface detail
Displays detailed information about the specified interfaces or all interfaces.
ip i det
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
Interface index |
Interface number for which you want to display detail information |
- |
ip interface define
Defines an IP interface.
ip i def
Enter IP address: 158.101.1.1
Enter subnet mask [255.255.0.0]: 255.255.255.0
Enter VLAN interface index {2|?}[2]:2
ip interface modify
Changes the configuration of an interface that you have already defined.
ip i m
Select menu option (ip/interface): modify
Select IP interface {1,2|?} :1
Enter IP address [158.101.100.10]: 158.101.100.12
Enter subnet mask [255.255.255.0]:
Enter VLAN interface index {2|?} [2]:
ip interface remove
Removes an interface if you are no longer using it on your system.
ip i re
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
IP interfaces |
Number associated with the interfaces that you want to remove |
Not applicable if you have more than one interface |
ip interface arpProxy
On a per-interface basis, enables or disables ARP proxy, which helps end stations on a subnetwork reach remote subnets that do not have routing capabilities or a default gateway configured.
ip i a
Select menu option (ip/interface): arpproxy
Select IP interfaces (1,2|?|all):2
Interface 2 - Enter proxy state (disabled, enabled)
[enabled]: enabled
ip interface broadcastAddress
On a per-interface basis, assigns the broadcast address that the system uses to forward the received directed broadcasts and advertise RIP packets.
ip i b
This example shows a directed broadcast address for 158.101.150.0:
Select menu option (ip/interface): broadcastAddress
Select IP interfaces (1,2|all|?):1
Interface 1 - Enter broadcast IP address [255.255.255.255]:
158.101.150.255
ip interface directedBroadcast
Specifies whether the forwarding of a directed broadcast (all 1s in the host portion of the address) is enabled or disabled for a specified interface. A directed broadcast is a packet that is sent to a specific network or series of networks.
ip i di
Select menu option (ip/interface): directedBroadcast
Select IP interfaces (1,2|all|?):2
Interface 2 - Enter directed broadcast state
(disabled, enabled) [enabled]:
ip interface icmpRedirect
On a per-interface basis, enables or disables the transmission of an ICMP redirect to the sender of a frame to indicate that there is a better gateway available to handle the frame than this routing interface.
ip i icmpre
ip interface icmpRouterDiscovery
On a per-interface basis, enables or disables Internet Control Message Protocol (ICMP) Router Discovery, which enables hosts that are attached to multicast or broadcast networks to discover the IP addresses of their neighboring routers and determine which router to use for a default gateway.
ip i icmpro
Select menu option (ip/interface): icmprouterDiscovery
Select IP interfaces (1,2|all|?):2
Interface 2 - Enter router discovery state
(disabled, enabled) [disabled]: enabled
Interface 2 - Enter router discovery preference [0]:
ip interface statistics
Displays IP interface statistics on a per-interface basis.
ip i st
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
Interface index |
Interface number for which you want to display statistics |
- |
ip route display
Displays the system's routing table to determine which routes to other IP networks are configured and whether the routes are operational.
ip route di
ip route static
Defines a static route.
ip route s
ip route remove
Deletes an existing route.
ip route r
ip route flush
Deletes all learned routes from the routing table.
ip route fl
ip route default
Adds a default route to the routing table immediately.
ip route de
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
Gateway IP address |
IP address of the route that you want to add as the default |
A valid IP address |
-
|
ip route noDefault
Deletes the default route.
ip route n
ip route findRoute
Searches for a route in the routing table.
ip route fi
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
IP address (or host name) |
IP address of the route that you want to find, or a host name, if DNS is configured |
A valid IP address or host name |
0.0.0.0
|
ip arp display
Displays the contents of the Address Resolution Protocol (ARP) cache for each interface on the system.
ip ar d
ip arp static
Defines a static ARP cache entry on the system.
ip ar s
Select interface index {1-2|?} 2
Enter IP address: 158.101.12.12
Enter MAC address: 00-00-00-00-00-01
ip arp remove
Deletes an entry from the ARP cache (for example, if the MAC address has changed).
ip ar rem
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
IP address |
IP address for the entry that you want to delete |
A valid IP address |
- |
ip arp flush
Deletes all entries from the ARP cache.
ip ar f
ip arp flushAll
Deletes all entries from the ARP cache.
ip ar flushA
ip arp flushDynamic
Deletes all dynamic (learned) entries from the ARP cache.
ip ar flushD
ip arp age
Sets the age time for dynamic ARP cache entries.
ip ar a
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
Age time |
Age time, in minutes |
15 (factory default), or current value |
ip dns display
Displays the current domain name and the name servers that are associated with it.
ip d di
|
Field |
Description |
|---|---|
|
Domain name |
Name of the domain name (up to 79 alphanumeric characters) |
|
Name server |
Name server that is associated with the domain |
ip dns domainName
Changes the name of a currently defined domain.
ip d do
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
Domain name |
Name of the domain. The name can be up to 79 characters long |
Current name (shown in brackets, if one exists) |
ip dns define
Defines a new name server IP address to associate with the current domain name.
ip d de
Server's IP address xxxxx is added to the DNS database
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
Name server IP address |
IP address of the name server that you want to define |
A valid IP address |
- |
ip dns modify
Modifies a currently defined name server IP address.
ip d m
ip dns remove
Deletes a previously defined name server IP address.
ip d r
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
Index |
Index number of the name server IP address that you want to remove |
- |
ip dns nslookup
Maps an IP address to a host name or a host name to an IP address on a name server.
ip d n
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
IP address/name |
IP address or name that you want to map |
- |
ip udpHelper display
Displays the BOOTP (boot protocol) hop count and the threshold configuration. Also lists the ports with their IP forwarding addresses that are defined in your system.
ip u di
|
Field |
Description |
|---|---|
|
UDP port |
UDP port number - 67 |
|
Forwarding address |
Forwarding address used for UDP packets |
ip udpHelper define
Defines port numbers or IP forwarding addresses for the UDP Helper.
ip u de
ip udpHelper remove
Removes a port number or IP forwarding address that has been defined for UDP Helper.
ip u r
ip udpHelper hopCountLimit
Sets the maximum hop count to specify how many steps the system uses to forward a packet through the router.
ip u h
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
BOOTP hop count limit |
Maximum number of hops to allow for UDP packet forwarding |
0 - 16 |
4 (factory default), or current value |
ip udpHelper threshold
Sets the maximum number of times that the system forwards a packet to the network.
ip u t
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
BOOTP relay threshold |
Maximum number of times that the system forwards a packet to the network |
0 - 65535 |
0 (factory default), or current value |
ip udpHelper interface first
Configures UDP Helper to support overlapped IP interfaces by using the first interface.
ip u i f
ip udpHelper interface even
Configures UDP Helper to support overlapped IP interfaces by evenly distributing interfaces.
ip u i e
ip udpHelper interface sequential
Configures UDP Helper to support overlapped IP interfaces by distributing the interfaces sequentially.
ip u i s
ip routing
Controls whether the system forwards or discards IP packets that are addressed to other hosts.
ip routi
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
IP routing state |
State of IP routing on the system |
disabled |
ip icmpRouterDiscovery
Enables or disables the Internet Control Message Protocol (ICMP) Router Discovery protocol for the entire system.
ip icmprouter
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
ICMP Router Discovery state |
State of this feature on the system |
disabled |
ip rip display
Displays information about the Routing Information Protocol (RIP) interfaces on the system. RIP is one of the IP Interior Gateway Protocols (IGPs). When enabled, RIP allows the system to dynamically configure its routing tables.
ip ri d
ip rip mode
On a per-interface basis, sets one of four RIP Version 1 (RIP-1) modes on the system. For those platforms except the CoreBuilder 9000, also allows you to set RIP Version 2 (RIP-2) modes.
ip ri m
Select IP interfaces (1,2|all|?): 1
Interface 1 - Enter RIP Version 1 mode (disabled,learn,advertise,enabled) [learn]: disabled
Interface 1 - Enter RIP Version 2 mode (disabled,learn,advertise,enabled) [learn]: enabled
ip rip compatibilityMode
On a per-interface basis, sets the RIP Version 1 compatibility mode.
ip ri com
Select IP interfaces (1,2|all|?) [1]: 1
Interface 1 - Enter RIP-1 Compatibility mode
(disabled,enabled) [disabled]: enabled
ip rip cost
On a per-interface basis, sets the RIP cost.
ip ri cos
ip rip poisonReverse
Enables or disables RIP Poison Reverse mode on the system.
ip ri poi
Select IP interfaces (1,2|all|?) [1]: 1
Interface 1 - Enter RIP poison reverse mode (disabled,enabled) [enabled]:
ip rip routeAggregation Mode
Sets the route aggregation mode.
ip ri ro
Select menu option (ip/rip): routeAggregationMode
Select IP interfaces (1,2|all|?) [1]: 2
Interface 1 - Enter Route Aggregation Mode (disabled,enabled) [disabled]: enabled
ip rip password
Sets the IP RIP-2 password, which allows you to choose the IP interfaces that can put RIP-2 updates into their routing tables.
ip ri pa
Select menu option (ip/rip): password
Select IP interfaces (1,2|all|?): 1
Interface 1 - Enter password {?} [none]: wings
ip rip addAdvertisement
Adds an advertisement address to an IP RIP interface.
ip ri a
Select interface index {1-4|?} [1]: 1
Interface 1 - Enter advertisement address: 158.101.255.1
ip rip remove Advertisement
Removes an advertisement address from the list of RIP advertisement addresses for an interface.
ip ri re
ip rip policy summary
Displays summary information about RIP routing policies.
ip ri pol s
ip rip policy detail
Displays detailed information about RIP routing policies.
ip ri pol det
ip rip policy define
Defines an import or export route policy for RIP.
ip ri pol def
|
Prompt |
Description |
Possible Values |
|---|