C H A P T E R  7

Routing Commands

This chapter provides detailed explanations of the Routing commands.



Note - The commands in this appendix are not officially supported by Sun Microsystems. The information in this appendix is provided as a courtesy; use them at your own risk.


This chapter contains the following topics:


Address Resolution Protocol Commands

This section provides a detailed explanation of the Address Resolution Protocol (ARP) commands. The commands are divided by functionality into the following different groups:

arp

This command creates an ARP entry. The value for <ipaddress> is the IP address of a device on a subnet attached to an existing routing interface. <macaddr> is a unicast MAC address for that device. The format is 6 two-digit hexadecimal numbers that are separated by colons, for example 00:06:29:32:81:40.

no arp

This command deletes an ARP entry. The value for <arpentry> is the IP address of the interface. The value for <ipaddress> is the IP address of a device on a subnet attached to an existing routing interface. <macaddr> is a unicast MAC address for that device.

arp cachesize

This command configures the ARP cache size. The value for <cachesize> is a platform specific integer value.

no arp cachesize

This command configures the default ARP cache size.

arp dynamicrenew

This command enables ARP component to automatically renew ARP entries of type dynamic when they age out.

no arp dynamicrenew

This command disables ARP component from automatically renewing ARP entries of type dynamic when they age out.

arp purge

This command causes the specified IP address to be removed from the ARP cache. Only entries of type dynamic or gateway are affected by this command.

arp resptime

This command configures the ARP request response timeout.

The value for <seconds> is a valid positive integer, which represents the IP ARP entry response timeout time in seconds. The range for <seconds> is between 1-10 seconds.

no arp resptime

This command configures the default ARP request response timeout.

arp retries

This command configures the ARP count of maximum request for retries.

The value for <retries> is an integer, which represents the maximum number of request for retries. The range for <retries> is an integer between 0-10 retries.

no arp retries

This command configures the default ARP count of maximum request for retries.

arp timeout

This command configures the ARP entry ageout time.

The value for <seconds> is a valid positive integer, which represents the IP ARP entry ageout time in seconds. The range for <seconds> is between 15-21600 seconds.

no arp timeout

This command configures the default ARP entry ageout time.

clear arp-cache

This command causes all ARP entries of type dynamic to be removed from the ARP cache. If the gateway parameter is specified, the dynamic entries of type gateway are purged as well.

show arp

This command displays the Address Resolution Protocol (ARP) cache. The displayed results are not the total ARP entries. To view the total ARP entries, the operator should view the show arp results in conjunction with the show arp switch results.

The following are displayed for each ARP entry.


TABLE 0-2 Entry Definitions for show arp For Each ARP Entry

Display

Definition

IP Address

The IP address of a device on a subnet attached to an existing routing interface.

MAC Address

The hardware MAC address of that device.

Interface

The routing slot/port associated with the device ARP entry.

Type

The type that was configured into the unit. The possible values are Local, Gateway, Dynamic and Static.

Age

This field displays the current age of the ARP entry since last refresh (in hh:mm:ss format


show arp brief

This command displays the brief Address Resolution Protocol (ARP) table information.


IP Routing

This chapter provides a detailed explanation of the IP Routing commands. The commands are divided by functionality into the following different groups:

routing

This command enables routing for an interface.

The current value for this function is displayed under "show ip interface" labeled as "Routing Mode".

no routing

This command disables routing for an interface.

The current value for this function is displayed under "show ip interface" labeled as "Routing Mode".

ip routing

This command enables the IP Router Admin Mode for the master switch.

no ip routing

This command disables the IP Router Admin Mode for the master switch.

ip address

This command configures an IP address on an interface.

The value for <ipaddr> is the IP Address of the interface.

The value for <subnetmask> is a 4-digit dotted-decimal number which represents the Subnet Mask of the interface. This changes the label "IP address" in "show ip interface."

no ip address

This command deletes an IP address from an interface. The value for <ipaddr> is the IP Address of the interface.

The value for <subnetmask> is a 4-digit dotted-decimal number which represents the Subnet Mask of the interface.

ip route

This command configures a static route. The <ip_addr> is a valid ip address. The <subnet_mask> is a valid subnet mask. The <nextHopRtr> is a valid IP address of the next hop router. The <preference> is an integer value from 1 to 255.

no ip route

This command deletes all next hops to a destination static route. If the optional <nextHopRtr> parameter is designated, the next hop is deleted and if the optional preference value is designated, the preference value of the static route is reset to its default,

ip route default

This command configures the default route. The value for <nextHopRtr> is a valid IP address of the next hop router. The <preference> is an integer value from 1 to 255

no ip route default

This command deletes all configured default routes. If the optional <nextHopRtr> parameter is designated, the specific next hop is deleted from the configured default route and if the optional preference value is designated, the preference of the configured default route is reset to its default.

ip route distance

This command sets the default distance for static routes. Lower route preference values are preferred when determining the best route. The "ip route" and "ip route default" commands allow you to optionally set the distance of an individual static route. The default distance is used when no distance is specified in these commands. Changing the default distance does not update the distance of existing static routes, even if they were assigned the original default distance. The new default distance will only be applied to static routes created after invoking the "ip route distance" command.

no ip route distance

This command sets the default static route preference value in the router. Lower route preference values are preferred when determining the best route.

ip forwarding

This command enables forwarding of IP frames.

no ip forwarding

This command disables forwarding of IP frames.

ip netdirbcast

This command enables the forwarding of network-directed broadcasts. When enabled, network directed broadcasts are forwarded. When disabled they are dropped.

no ip netdirbcast

This command disables the forwarding of network-directed broadcasts. When disabled, network directed broadcasts are dropped.

ip mtu

This command sets the maximum transmission unit (MTU) size of IP packets sent on a specific routing interface.

no ip mtu

This command sets the maximum transmission unit (MTU) size to the default value.

show ip brief

This command displays all the summary information of the IP. This command takes no options.

show ip interface

This command displays all pertinent information about the IP interface.

show ip interface brief

This command displays summary information about IP configuration settings for all ports in the router. This command takes no options.

show ip route

This command displays the entire route table. This commands takes no options.

For each Next Hop, the following is displayed.


TABLE 0-8 Entry Definitions for show ip route For Each Next Hop

Display

Definition

Next Hop Intf

The outgoing router interface to use when forwarding traffic to the next destination.

Next Hop IP Address

The outgoing router IP address to use when forwarding traffic to the next router (if any) in the path toward the destination.


show ip route bestroutes

This command causes the entire route table to be displayed. This commands takes no options.

For each Next Hop, the following is displayed.


TABLE 0-10 Entry Definitions for show ip route bestroutes For Each Next Hop

Display

Definition

Next Hop Intf

The outgoing router interface to use when forwarding traffic to the next destination.

Next Hop IP Address

The outgoing router IP address to use when forwarding traffic to the next router (if any) in the path toward the destination. The next router will always be one of the adjacent neighbors or the IP address of the local interface for a directly attached network.


show ip route entry

This command displays the entire route table.

For each Next Hop, the following is displayed.


TABLE 0-12 Entry Definitions for show ip route entry For Each Next Hop

Display

Definition

Next Hop Interface

The outgoing router interface to use when forwarding traffic to the next destination.

Next Hop IP Address

The outgoing router IP address to use when forwarding traffic to the next router (if any) in the path toward the destination.

Preference

The metric value that is used for this route entry.


show ip route preferences

This command displays detailed information about the route preferences. Route preferences are used in determining the best route. Lower router preference values are preferred over higher router preference values.

show ip stats

This command displays IP statistical information. Refer to RFC 1213 for more information about the fields that are displayed. This command takes no options.

encapsulation

This command configures the link layer encapsulation type for the packet. Acceptable values for <encapstype> are Ethernet and SNAP. The default is Ethernet.


Bootp/DHCP Relay Commands

This chapter provides a detailed explanation of the BootP/DHCP Relay commands. The commands are divided by functionality into the following different groups:

bootpdhcprelay cidoptmode

This command enables the circuit ID option mode for BootP/DHCP Relay on the system.

no bootpdhcprelay cidoptmode

This command disables the circuit ID option mode for BootP/DHCP Relay on the system.

bootpdhcprelay enable

This command enables the forwarding of relay requests for BootP/DHCP Relay on the system.

no bootpdhcprelay enable

This command disables the forwarding of relay requests for BootP/DHCP Relay on the system.

bootpdhcprelay maxhopcount

This command configures the maximum allowable relay agent hops for BootP/DHCP Relay on the system. The <hops> parameter has a range of 1 to 16.

no bootpdhcprelay maxhopcount

This command configures the default maximum allowable relay agent hops for BootP/DHCP Relay on the system.

bootpdhcprelay minwaittime

This command configures the minimum wait time in seconds for BootP/DHCP Relay on the system. When the BOOTP relay agent receives a BOOTREQUEST message, it MAY use the seconds-since-client-began-booting field of the request as a factor in deciding whether to relay the request or not. The parameter has a range of 0 to 100 seconds.

no bootpdhcprelay minwaittime

This command configures the default minimum wait time in seconds for BootP/DHCP Relay on the system.

bootpdhcprelay serverip

This command configures the server IP Address for BootP/DHCP Relay on the system. The <ipaddr>

parameter is an IP address in a 4-digit dotted decimal format.

no bootpdhcprelay serverip

This command configures the default server IP Address for BootP/DHCP Relay on the system.

show bootpdhcprelay

This command displays the BootP/DHCP Relay information.


Router Discovery Protocol Commands

This chapter provides a detailed explanation of the Router Discovery commands. The commands are divided by functionality into the following different groups:

ip irdp

This command enables Router Discovery on an interface.

no ip irdp

This command disables Router Discovery on an interface.

ip irdp address

This command configures the address to be used to advertise the router for the interface. The valid values for ipaddr are 224.0.0.1 and 255.255.255.255.

no ip irdp address

This command configures the default address to be used to advertise the router for the interface.

ip irdp holdtime

This command configures the value, in seconds, of the holdtime field of the router advertisement sent from this interface. The range is the maxadvertinterval to 9000 seconds.

no ip irdp holdtime

This command configures the default value, in seconds, of the holdtime field of the router advertisement sent from this interface.

ip irdp maxadvertinterval

This command configures the maximum time, in seconds, allowed between sending router advertisements from the interface. The range for maxadvertinterval is 4 to 1800 seconds.

no ip irdp maxadvertinterval

This command configures the default maximum time, in seconds.

ip irdp minadvertinterval

This command configures the minimum time, in seconds, allowed between sending router advertisements from the interface. The range for minadvertinterval is 3 to the value of maxadvertinterval.

no ip irdp minadvertinterval

This command configures the default minimum time, in seconds.

ip irdp preference

This command configures the preferability of the address as a default router address, relative to other router addresses on the same subnet. The range is -2147483648 to -1 to 0 to 1 to 2147483647.

no ip irdp preference

This command configures the default preferability of the address as a default router address, relative to other router addresses on the same subnet.

show ip irdp

This command displays the router discovery information for all interfaces, or a specified interface.


Virtual LAN Routing Commands

This chapter provides a detailed explanation of the Virtual LAN Routing commands. The commands are divided by functionality into the following different groups:

vlan routing

This command creates routing on a VLAN. The <vlanid> value has a range from 1 to 4021.

no vlan routing

This command deletes routing on a VLAN. The <vlanid> value has a range from 1 to 4021.

show ip vlan

This command displays the VLAN routing information for all VLANs with routing enabled in the system.


Virtual Router Redundancy Protocol (VRRP) Commands

This section provides a detailed explanation of the VRRP commands. The commands are divided by functionality into the following different groups:

ip vrrp

This command sets the virtual router ID on an interface for Virtual router configuration in the router. The parameter <vrID> is the virtual router ID which has an integer value range from 1 to 255.

no ip vrrp

This command removes all VRRP configuration details of the virtual router configured on a specific interface. The parameter <vrID> is the virtual router ID which has an integer value ranges from 1 to 255.

ip vrrp

This command enables the administrative mode of VRRP in the router.

no ip vrrp

This command disables the default administrative mode of VRRP in the router.

ip vrrp mode

This command enables the virtual router configured on the specified interface. Enabling the status field starts a virtual router. The parameter <vrID> is the virtual router ID which has an integer value ranging from 1 to 255.

no ip vrrp mode

This command disables the virtual router configured on the specified interface. Disabling the status field stops a virtual router.

ip vrrp ip

This command sets the ipaddress value for a virtual router. The value for <ipaddr> is the IP Address which is to be configured on that interface for VRRP. The parameter <vrID> is the virtual router ID which has an integer value range from 1 to 255.

ip vrrp authentication

This command sets the authorization details value for the virtual router configured on a specified interface. The parameter {none | simple} specifies the authorization type for virtual router configured on the specified interface. The parameter [key] is optional, it is only required when authorization type is simple text password. The parameter <vrID> is the virtual router ID which has an integer value ranges from 1 to 255.

no ip vrrp authentication

This command sets the default authorization details value for the virtual router configured on a specified interface.

ip vrrp preempt

This command sets the preemption mode value for the virtual router configured on a specified interface. The parameter <vrID> is the virtual router ID which has an integer value range from 1 to 255.

no ip vrrp preempt

This command sets the default preemption mode value for the virtual router configured on a specified interface.

ip vrrp priority

This command sets the priority value for the virtual router configured on a specified interface. The priority of the interface is a priority integer from 1 to 254. The parameter <vrID> is the virtual router ID which has an integer value ranges from 1 to 255.

no ip vrrp priority

This command sets the default priority value for the virtual router configured on a specified interface.

ip vrrp timers advertise

This command sets the advertisement value for a virtual router. The value for advinterval is time used for VRRP advertisement in seconds. The parameter <vrID> is the virtual router ID which has an integer value range from 1 to 255.

no ip vrrp timers advertise

This command sets the default advertisement value for a virtual router.

show ip vrrp interface stats

This command displays the statistical information about each virtual router configured on the FASTPATH switch.

show ip vrrp

This command displays whether VRRP functionality is enabled or disabled on the FASTPATH switch. It also displays some global parameters which are required for monitoring--This command takes no options.

show ip vrrp interface

This command displays all configuration information and VRRP router statistics of a virtual router configured on a specific interface.

show ip vrrp interface brief

This command displays information about each virtual router configured on the FASTPATH switch. This command takes no options. It displays information about each virtual router.


VRRP Tracking Commands

This section provides information about the VRRP tracking commands. The configuration of VRRP tracking is accomplished with two logical steps.

1. Configure the events that can impact VRRP priority change by defining tracking objects.

2. Link between VRRP priority changes and tracking objects by specifying VRRP priority change for state change in the tracked objects.

track

A track object can track a particular interface property or IP layer properties. An interface might be tracked by its line-protocol state (up/down) or by its IP routing state (enable/disable). Use the following commands according to the tracking method you prefer.

track <object-number> interface <unit/port> line-protocol

Track the link state of an interface. This object will be up when the interface is linked.

track <object-number> interface <unit/port> ip routing

Tracks the state of a local IP route.

An IP-routing object is considered up when the following criteria exists:

An IP-routing object is considered down when one of the following criteria exist:

track <object-number> ip route <ip-address/prefix-length> reachability

Tracks the state of a remote IP address. This object will be up when the remote IP address is present in the ARP table.

no track

Removes the track with the given object number.

vrrp

Assocates a track object with a VRRP instance. When the tracked object is down, the VRRP instance’s priority will be decremented by <decrement priority>.

no vrrp

Removes the specified track object from the specificed VRRP instance.

show track

Displays all configuration information for VRRP track objects.

show ip vrrp track

Displays the current status of all tracks associated with <vrID>


Open Shortest Path First (OSPF) Commands

This chapter provides a detailed explanation of the OSPF commands. The commands are divided by functionality into the following different groups:

enable (OSPF)

This command resets the default administrative mode of OSPF in the router (active).

no enable (OSPF)

This command sets the administrative mode of OSPF in the router to inactive.

ip ospf

This command enables OSPF on a router interface.

no ip ospf

This command disables OSPF on a router interface.

1583compatibility

This command enables OSPF 1583 compatibility.



Note - 1583 compatibility mode is enabled by default. If all OSPF routers in the routing domain are capable of operating according to RFC 2328, OSPF 1583 compatibility mode should be disabled.


no 1583compatibility

This command disables OSPF 1583 compatibility.

area default-cost

This command configures the monetary default cost for the stub area. The operator must specify the area id and an integer value between 1-16777215.

area nssa

This command configures the specified areaid to function as an NSSA.

no area nssa

This command disables nssa from the specified area id.

area nssa default-info-originate

This command configures the metric value and type for the default route advertised into the NSSA. The optional metric parameter specifies the metric of the default route and is to be in a range of 1-16777215. If no metric is specified, the default value is ****. The metric type can be comparable (nssa-external 1) or non-comparable (nssa-external 2).

area nssa no-redistribute (OSPF)

This command configures the NSSA ABR so that learned external routes will not be redistributed to the NSSA.

area nssa no-summary (OSPF)

This command configures the NSSA so that summary LSAs are not advertised into the NSSA

area nssa translator-role (OSPF)

This command configures the translator role of the NSSA. A value of always will cause the router to assume the role of the translator the instant it becomes a border router and a value of candidate will cause the router to participate in the translator election process when it attains border router status

area nssa translator-stab-intv

This command configures the translator stability interval of the NSSA. The stabilityinterval is the period of time that an elected translator continues to perform its duties after it determines that its translator status has been deposed by another router.

area range

This command creates a specified area range for a specified NSSA. The <ipaddr> is a valid IP address. The <subnetmask> is a valid subnet mask. The lsdb type must be specified by either summarylink or nssaexternallink, and the advertising of the area range can be optionally allowed or suppressed.

no area range

This command deletes a specified area range.

The <ipaddr> is a valid IP address.

The <subnetmask> is a valid subnet mask.

area stub

This command creates a stub area for the specified area ID. A stub area is characterized by the fact that AS External LSAs are not propagated into the area. Removing AS External LSAs and Summary LSAs can significantly reduce the link state database of routers within the stub area.

no area stub

This command deletes a stub area for the specified area ID.

area stub summarylsa

This command configures the Summary LSA mode for the stub area identified by <areaid>. The Summary LSA mode is configured as enabled.

no area stub summarylsa

This command configures the default Summary LSA mode for the stub area identified by <areaid>.

area virtual-link

This command creates the OSPF virtual interface for the specified <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor.

no area virtual-link

This command deletes the OSPF virtual interface from the given interface, identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor.

area virtual-link authentication

This command configures the authentication type and key for the OSPF virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor. The value for <type> is either none, simple, or encrypt. The [key] is composed of standard displayable, non-control keystrokes from a Standard 101/102-key keyboard. The authentication key must be 8 bytes or less if the authentication type is simple. If the type is encrypt, the key may be up to 256 bytes. Unauthenticated interfaces do not need an authentication key. If the type is encrypt, a key id in the range of 0 and 255 must be specified.The default value for authentication type is none. Neither the default password key nor the default key id are configured.

no area virtual-link authentication

This command configures the default authentication type for the OSPF virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor.

area virtual-link dead-interval

This command configures the dead interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor. The range for <seconds> is 1 to 65535.

no area virtual-link dead-interval

This command configures the default dead interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor.

area virtual-link hello-interval

This command configures the hello interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor. The range for <seconds> is 1 to 65535.

no area virtual-link hello-interval

This command configures the default hello interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor.

area virtual-link retransmit-interval

This command configures the retransmit interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor. The range for <seconds> is 0 to 3600.

no area virtual-link retransmit-interval

This command configures the default retransmit interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor.

area virtual-link transmit-delay

This command configures the transmit delay for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor. The range for <seconds> is 0 to 3600 (1 hour).

no area virtual-link transmit-delay

This command configures the default transmit delay for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>. The <neighbor> parameter is the Router ID of the neighbor.

default-information originate (OSPF)

This command is used to control the advertisement of default routes.

no default-information originate (OSPF)

This command is used to control the advertisement of default routes.

default-metric (OSPF)

This command is used to set a default for the metric of distributed routes.

no default-metric (OSPF)

This command is used to set a default for the metric of distributed routes.

distance ospf

This command sets the route preference value of OSPF in the router. Lower route preference values are preferred when determining the best route. The type of OSPF can be intra, inter, type-1, or type-2. The OSPF specification (RFC 2328) requires that preferences must be given to the routes learned via OSPF in the following order: intra < inter < type-1 < type-2.

The range of preference is 0 to 255.

no distance ospf

This command sets the default route preference value of OSPF in the router. The type of OSPF can be intra, inter, type-1, or type-2.

distribute-list out

This command is used to specify the access list to filter routes received from the source protocol.

no distribute-list out

This command is used to specify the access list to filter routes received from the source protocol.

exit-overflow-interval

This command configures the exit overflow interval for OSPF. It describes the number of seconds after entering Overflow state that a router will wait before attempting to leave the Overflow State. This allows the router to again originate non-default AS-external-LSAs. When set to 0, the router will not leave Overflow State until restarted. The range for <seconds> is 0 to 2147483647 seconds.

no exit-overflow-interval

This command configures the default exit overflow interval for OSPF.

external-lsdb-limit

This command configures the external LSDB limit for OSPF.--If the value is -1, then there is no limit. When the number of non-default AS-external-LSAs in a router's link-state database reaches the external LSDB limit, the router enters overflow state. The router never holds more than the external LSDB limit non-default AS-external- LSAs in it database. The external LSDB limit MUST be set identically in all routers attached to the OSPF backbone and/or any regular OSPF area. The range for <limit> is -1 to 2147483647.

no external-lsdb-limit

This command configures the default external LSDB limit for OSPF.

ip ospf areaid

This command sets the OSPF area to which the specified router interface belongs. The value for <areaid> is an IP address, formatted as a 4-digit dotted-decimal number that uniquely identifies the area to which the interface connects. Assigning an area id, which does not exist on an interface, causes the area to be created with default values.

ip ospf authentication

This command sets the OSPF Authentication Type and Key for the specified interface.

The value of <type> is either none, simple or encrypt. The [key] is composed of standard displayable, non-control keystrokes from a Standard 101/102-key keyboard. The authentication key must be 8 bytes or less if the authentication type is simple. If the type is encrypt, the key may be up to 256 bytes. If the type is encrypt a <keyid> in the range of 0 and 255 must be specified.

no ip ospf authentication

This command sets the default OSPF Authentication Type for the specified interface.

ip ospf cost

This command configures the cost on an OSPF interface. The <cost> parameter has a range of 1 to 65535.

no ip ospf cost

This command configures the default cost on an OSPF interface. The <cost> parameter has a range of 1 to 65535.

ip ospf dead-interval

This command sets the OSPF dead interval for the specified interface.

The value for <seconds> is a valid positive integer, which represents the length of time in seconds that a router's Hello packets have not been seen before its neighbor routers declare that the router is down. The value for the length of time must be the same for all routers attached to a common network. This value should be some multiple of the Hello Interval (i.e. 4).

Valid values range for <seconds> is from 1 to 2147483647.

no ip ospf dead-interval

This command sets the default OSPF dead interval for the specified interface.

ip ospf hello-interval

This command sets the OSPF hello interval for the specified interface.

The value for <seconds> is a valid positive integer, which represents the length of time in seconds. The value for the length of time must be the same for all routers attached to a network.

Valid values range from 1 to 65535.

no ip ospf hello-interval

This command sets the default OSPF hello interval for the specified interface.

ip ospf priority

This command sets the OSPF priority for the specified router interface. The priority of the interface is a priority integer from 0 to 255.

A value of '0' indicates that the router is not eligible to become the designated router on this network.

no ip ospf priority

This command sets the default OSPF priority for the specified router interface.

ip ospf retransmit-interval

This command sets the OSPF retransmit Interval for the specified interface. The retransmit interval is specified in seconds.

The value for <seconds> is the number of seconds between link-state advertisement retransmissions for adjacencies belonging to this router interface. This value is also used when retransmitting database and link-state request packets.

Valid values range from 0 to 3600 (1 hour).

no ip ospf retransmit-interval

This command sets the default OSPF retransmit Interval for the specified interface.

ip ospf transmit-delay

This command sets the OSPF Transit Delay for the specified interface. The transmit delay is specified in seconds. In addition, it sets the estimated number of seconds it takes to transmit a link state update packet over this interface.

Valid values for <seconds> range from 1 to 3600 (1 hour).

no ip ospf transmit-delay

This command sets the default OSPF Transit Delay for the specified interface.

ip ospf mtu-ignore

This command disables OSPF maximum transmission unit (MTU) mismatch detection. OSPF Database Description packets specify the size of the largest IP packet that can be sent without fragmentation on the interface. When a router receives a Database Description packet, it examines the MTU advertised by the neighbor. By default, if the MTU is larger than the router can accept, the Database Description packet is rejected and the OSPF adjacency is not established.

no ip ospf mtu-ignore

This command enables the OSPF MTU mismatch detection.

router-id

This command sets a 4-digit dotted-decimal number uniquely identifying the router ospf id. The <ipaddress> is a configured value.

redistribute

This command configures OSPF protocol to redistribute routes from the specified source protocol/ routers.

no redistribute

This command configures OSPF protocol to redistribute routes from the specified source protocol/routers.

maximum-paths

This command sets the number of paths that OSPF can report for a given destination where maxpaths is platform dependent.

no maximum-paths

This command resets the number of paths that OSPF can report for a given destination back to its default value.

show ip ospf

This command displays information relevant to the OSPF router. This command takes no options.

The information below will only be displayed if OSPF is enabled.


TABLE 0-22 Entry Definitions for show ip ospf When OSPF Is Enabled

Display

Definition

ABR Status

Reflects the whether or not the router is an OSPF Area Border Router.

Exit Overflow Interval

The number of seconds that, after entering OverflowState, a router will attempt to leave OverflowState.

External LSA count

The number of external (LS type 5) link-state advertisements in the link-state database.

External LSA Checksum

A number which represents the sum of the LS checksums of external link-state advertisements contained in the link-state database.

New LSAs Originated

The number of new link-state advertisements that have been originated.

LSAs Received

The number of link-state advertisements received determined to be new instantiations.

External LSDB Limit

The maximum number of non-default AS-external-LSAs entries that can be stored in the link-state database.

Max Paths

Maximum number of paths that OSPF can report for a given destination.


show ip ospf area

This command displays information about the area. The <areaid> identifies the OSPF area that is being displayed.

show ip ospf database

This command displays the link state database. This command takes no options. The information below will only be displayed if OSPF is enabled.

show ip ospf interface

This command displays the information for the IFO object or virtual interface tables.

The information that follows will only be displayed if OSPF is enabled.


TABLE 0-26 Entry Definitions for show ip ospf interface When OSPF Is Enanbled

Display

Definition

OSPF Interface Type

Broadcast LANs, such as Ethernet and IEEE 802.5, take the value 'broadcast'. The OSPF Interface Type will be 'broadcast'.

State

The OSPF Interface States are: down, loopback, waiting, point-to-point, designated router, and backup designated router. This is the state of the OSPF interface.

Designated Router

The router ID representing the designated router.

Backup Designated Router

The router ID representing the backup designated router.

Number of Link Events

The number of link events.

Metric Cost

The cost of the ospf interface. This is a configured value.


show ip ospf interface brief

This command displays brief information for the IFO object or virtual interface tables. This command takes no options.

show ip ospf interface stats

This command displays the statistics for a specific interface. The information below will only be displayed if OSPF is enabled.

show ip ospf neighbor

This command displays the OSPF neighbor table list. When a particular neighbor ID is specified, detailed information about a neighbor is given. The information below will only be displayed if OSPF is enabled and the interface has a neighbor. The IP address is the IP address of the neighbor.

show ip ospf neighbor brief

This command displays the OSPF neighbor table list. When a particular neighbor ID is specified, detailed information about a neighbor is given. The information below will only be displayed if OSPF is enabled.

show ip ospf range

This command displays information about the area ranges for the specified <areaid>. The <areaid> identifies the OSPF area whose ranges are being displayed.

show ip ospf stub table

This command displays the OSPF stub table. The information below will only be displayed if OSPF is initialized on the switch.

show ip ospf virtual-link

This command displays the OSPF Virtual Interface information for a specific area and neighbor. The <areaid> parameter identifies the area and the <neighbor> parameter identifies the neighbor's Router ID.

show ip ospf virtual-link brief

This command displays the OSPF Virtual Interface information for all areas in the system.

trapflags

This command enables OSPF traps.

no trapflags

This command disables OSPF traps.


Routing Information Protocol (RIP) Commands

This section provides a detailed explanation of the RIP commands. The commands are divided by functionality into the following different groups:

enable (RIP)

This command resets the default administrative mode of RIP in the router (active).

no enable (RIP)

This command sets the administrative mode of RIP in the router to inactive.

ip rip

This command enables RIP on a router interface.

no ip rip

This command disables RIP on a router interface.

auto-summary

This command enables the RIP auto-summarization mode.

no auto-summary

This command disables the RIP auto-summarization mode.

default-information originate (RIP)

This command is used to control the advertisement of default routes.

no default-information originate (RIP)

This command is used to control the advertisement of default routes.

default-metric (RIP)

This command is used to set a default for the metric of distributed routes.

no default-metric (RIP)

This command is used to reset the default metric of distributed routes to its default value.

distance rip

This command sets the route preference value of RIP in the router. Lower route preference values are preferred when determining the best route.

no distance rip

This command sets the default route preference value of RIP in the router.

distribute-list out

This command is used to specify the access list to filter routes received from the source protocol.

no distribute-list out

This command is used to specify the access list to filter routes received from the source protocol.

no default-information originate

This command is used to control the advertisement of default routes.

ip rip authentication

This command sets the RIP Version 2 Authentication Type and Key for the specified interface. The value of <type> is either none, simple, or encrypt.

The value for authentication key [key] must be 16 bytes or less. The [key] is composed of standard displayable, non-control keystrokes from a Standard 101/102-key keyboard. If the value of <type> is encrypt, a keyid in the range of 0 and 255 must be specified.

no ip rip authentication

This command sets the default RIP Version 2 Authentication Type.

ip rip receive version

This command configures the interface to allow RIP control packets of the specified version(s) to be received.

The value for <mode> is one of: rip1 to receive only RIP version 1 formatted packets, rip2 for RIP version 2, both to receive packets from either format, or none to not allow any RIP control packets to be received.

no ip rip receive version

This command configures the interface to allow RIP control packets of the default version(s) to be received.

ip rip send version

This command configures the interface to allow RIP control packets of the specified version to be sent. The value for <mode> is one of: rip1 to broadcast RIP version 1 formatted packets, rip1c (RIP version 1 compatibility mode) which sends RIP version 2 formatted packets via broadcast, rip2 for sending RIP version 2 using multicast, or none to not allow any RIP control packets to be sent.

no ip rip send version

This command configures the interface to allow RIP control packets of the default version to be sent.

hostroutesaccept

This command enables the RIP hostroutesaccept mode.

no hostroutesaccept

This command disables the RIP hostroutesaccept mode.

split-horizon

This command sets the RIP split horizon mode.

no split-horizon

This command sets the default RIP split horizon mode.

redistribute

This command configures RIP protocol to redistribute routes from the specified source protocol/routers. There are five possible match options. When you submit the command redistribute ospf match <match- type> the match-type or types specified are added to any match types presently being redistributed. Internal routes are redistributed by default.

no redistribute

This command de-configures RIP protocol to redistribute routes from the specified source protocol/ routers.

show ip rip

This command displays information relevant to the RIP router.

show ip rip interface brief

This command displays general information for each RIP interface. For this command to display successful results routing must be enabled per interface (i.e. ip rip).

show ip rip interface

This command displays information related to a particular RIP interface.

The following information will be invalid if the link state is down.


TABLE 0-38 Entry Definitions for show ip rip interface With Link State Down

Entry

Definition

Bad Packets Received

The number of RIP response packets received by the RIP process which were subsequently discarded for any reason.

Bad Routes Received

The number of routes contained in valid RIP packets that were ignored for any reason.

Updates Sent

The number of triggered RIP updates actually sent on this interface.