![]() |
Cisco IOS IP Routing: RIP Command Reference
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RIP Commands
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contents
RIP Commandsauto-summary (RIP)To restore the default behavior of automatic summarization of subnet routes into network-level routes, use the auto-summary command in router configuration mode. Todisable this function and send subprefix routing information across classful network boundaries, use the no form of this command. Command DefaultEnabled (the software summarizes subprefixes to the classful network boundary when crossing classful network boundaries). Command History
Usage GuidelinesRoute summarization reduces the amount of routing information in the routing tables. RIP Version 1 always uses automatic summarization. If you are using RIP Version 2, you can turn off automatic summarization by specifying the no auto-summary command. Disable automatic summarization if you must perform routing between disconnected subnets. When automatic summarization is off, subnets are advertised. bfd all-interfacesTo enable Bidirectional Forwarding Detection (BFD) for all interfaces participating in the routing process, use the bfd all-interfaces command in router configuration or address family interface configuration mode. To disable BFD for all neighbors on a single interface, use the no form of this command. Command ModesRouter configuration (config-router) Address family interface configuration (config-router-af) Command History
Usage GuidelinesThere are two methods to configure routing protocols to use BFD for failure detection. To enable BFD for all interfaces, enter the bfd all-interfaces command in router configuration mode. In Cisco IOS Release 12.4(24)T, Cisco IOS 12.2(33)SRA, and earlier releases, the bfd all-interfaces command works in router configuration mode and address family interface mode. In Cisco IOS Release 15.0(1)M and later releases, the bfd all-interfaces command in named router configuration mode is replaced by the bfd command in address family interface configuration mode. Use the bfd command in address family interface configuration mode to achieve the same functionality as that of the bfd all-interfaces command in router configuration mode. ExamplesThe following example shows how to enable BFD for all Enhanced Interior Gateway Routing Protocol (EIGRP) neighbors: Router> enable Router# configure terminal Router(config)# router eigrp 123 Router(config-router)# bfd all-interfaces Router(config-router)# end The following example shows how to enable BFD for all Intermediate System-to-Intermediate System (IS-IS) neighbors: Router> enable Router# configure terminal Router(config)# router isis tag1 Router(config-router)# bfd all-interfaces Router(config-router)# end The following example shows how to enable BFD for all Open Shortest Path First (OSPF) neighbors: Router> enable Router# configure terminal Router(config)# router ospf 123 Router(config-router)# bfd all-interfaces Router(config-router)# end The following example shows how to enable BFD for all EIGRP neighbors, using the bfd command in address family interface configuration mode: Router> enable Router# configure terminal Router(config)# router eigrp my_eigrp Router(config-router)# address family ipv4 autonomous-system 100 Router(config-router-af)# af-interface FastEthernet 0/0 Router(config-router-af)# bfd The following example shows how to enable BFD for all Routing Information Protocol (RIP) neighbors: Router> enable Router# configure terminal Router(config)# router rip Router(config-router)# bfd all-interfaces Router(config-router)# end The following example shows how to enable IPv6 BFD for all IS-IS neighbors, in address family interface configuration mode: Router> enable Router# configure terminal Router(config)# router isis Router(config-router)# address family ipv6 Router(config-router-af)# bfd all-interfaces Router(config-router-af)# end default-information originate (RIP)To generate a default route into Routing Information Protocol (RIP), use the default-information originate command in router configuration mode. To disable this feature, use the no form of this command. Command History
Usage GuidelinesThe route map referenced in the default-information originate command cannot use an extended access list; it can use a standard access list. When you configure the default-information originate on-passive command, RIP sends the default route on a passive interface. A default route is the network route with which a router communicates when no other known route exists for a given IP packet's destination address. Before a RIP provider edge (PE) router can send the default route to the customer edge (CE) router, you must configure the interfaces facing the CE as passive interfaces by using the default-information originate on-passive command. Once you configure the default-information originate on-passive command, the output of the show ip protocols command displays that RIP default routes are sent on passive interfaces. Applying a condition to determine when the default route is originated is called conditional default origination. ExamplesThe following example shows how to originate a default route (0.0.0.0/0) over a certain interface when 172.17.0.0/16 is present. In this example a route map condition is applied. router rip version 2 network 172.17.16.0 default-information originate route-map condition ! route-map condition permit 10 match ip address 10 set interface s1/0 ! access-list 10 permit 172.17.16.0 0.0.0.255 ! Related Commands
default-metric (RIP)To set default metric values for Routing Information Protocol ( RIP), use the default-metric command in router configuration mode. To return to the default state, use the no form of this command. Command History
Usage GuidelinesT he default-metric command is used in conjunction with the redistribute router configuration command to cause the current routing protocol to use the same metric value for all redistributed routes. A default metric helps solve the problem of redistributing routes with incompatible metrics. Whenever metrics do not convert, using a default metric provides a reasonable substitute and enables the redistribution to proceed. ExamplesThe following example shows a router in autonomous system 109 using both the RIP and the Open Shortest Path First (OSPF) routing protocols. The example advertises OSPF-derived routes using RIP and assigns the OSPF-derived routes a RIP metric of 10. router rip default-metric 10 redistribute ospf 109 flash-update-thresholdTo suppress regularly scheduled flash updates, use the flash-update-threshold command in router configuration mode. To return to the default state, use the no form of this command. Command History
Usage GuidelinesThis command suppresses flash updates when the arrival of a regularly scheduled update matches the number of seconds that is configured with the seconds argument. The range of seconds that can be configure is from 0 to 30 seconds. If the number of seconds matches the number of seconds or is less than the number seconds that is configured with the seconds argument, the flash update is suppressed. If the numbers seconds until the flash update arrives exceeds the number of seconds that is configured with the seconds argument, the flash update is not suppressed. The regular scheduled interval for flash updates and the configuration of the suppression of flash updates can be verified with the show ip protocol command. input-queueThe input-queue command defines the number of received, but not yet processed RIP update packets contained in the Routing Information Protocol (RIP) input queue. Use the input-queuecommand in router configuration mode. To remove the configured depth and restore the default depth, use the no form of this command. Command History
Usage GuidelinesConsider using the input-queue command if you have a high-end router that is sending at high speed to a low-speed router that might not be able to receive at the high speed. Configuring this command will help prevent the routing table from losing information. Another way to prevent the routing table from losing information is to use the output-delay command to change the interpacket delay for RIP updates. ip rip advertiseTo configure the interval in which Routing Information Protocol (RIP) updates are advertised from a specific RIP-enabled interface, use the ip rip advertise command in interface configuration mode. To remove the configured interval in which RIP updates are advertised from a specific RIP-enabled interface, use the no form of this command. Command DefaultRIP updates are advertised every 30 seconds, which is the default global periodic interval for a Cisco device. Command ModesInterface configuration (config-if) Command History
Usage GuidelinesRIP uses broadcast UDP data packets to exchange routing information. RIP sends routing information updates every 30 seconds, which is the default global periodic advertisement interval for a Cisco device. Use the ip rip advertise command to override the default global periodic advertisement interval on a specific RIP-enabled interface and configure the required periodic advertisement interval on that interface. If you have to configure a specific periodic advertisement interval on all RIP-enabled interfaces in a Cisco device, use the timers basic command. If you have to configure a specific periodic advertisement interval on a specific interface, use the ip rip advertise command. ip rip authentication key-chainTo enable authentication for Routing Information Protocol (RIP) Version 2 packets and to specify the set of keys that can be used on an interface, use the ip rip authentication key-chain command in interface configuration mode. To prevent authentication, use the no form of this command. Command History
Usage GuidelinesIf no key chain is configured with the key-chain command, no authentication is performed on the interface (not even the default authentication). ip rip authentication modeTo specify the type of authentication used in Routing Information Protocol (RIP) Version 2 packets, use the ip rip authentication mode command in interface configuration mode. To restore clear text authentication, use the no form of this command. Command History
ip rip initial-delayTo delay the initiation of RIPv2 neighbor sessions using MD5 authentication until the network connectivity between the neighbor routers is fully operational, use the ip rip initial-delay command in interface, or subinterface configuration mode. To remove the configured delay, use the no form of this command. Usage GuidelinesSome non-Cisco routers will not allow an MD5-authenticated RIPv2 neighbor session to start when the sequence number of the first MD5 packet received from the Cisco router is greater than 0. The IP-RIP Delay Start feature is used on Cisco routers to delay the initiation of RIPv2 neighbor sessions using MD5 authentication until the network connectivity between the neighbor routers is fully operational. This ensures the sequence number of the first MD5 packet that the router sends to the non-Cisco neighbor router is 0. ip rip receive versionTo specify a Routing Information Protocol ( RIP) version to receive on an interface basis, use the ip rip receive version command in interface configuration mode. To follow the global version rules, use the no form of this command. Command History
Usage GuidelinesUse this command to override the default behavior of RIP as specified by the version command. This command applies only to the interface being configured. You can configure the interface to accept both RIP versions. ExamplesThe following example configures the interface to receive both RIP Version 1 and Version 2 packets: ip rip receive version 1 2 The following example configures the interface to receive only RIP Version 1 packets: ip rip receive version 1 Related Commands
ip rip send versionTo specify a Routing Information Protocol ( RIP) version to send on an interface basis, use the ip rip send version command in interface configuration mode. To follow the global version rules, use the no form of this command. Command History
Usage GuidelinesUse this command to override the default behavior of RIP as specified by the version command. This command applies only to the interface being configured. ip rip triggeredTo enable triggered extensions to Routing Information Protocol (RIP), use the ip rip triggered command in interface configuration mode. To disable triggered extensions to RIP, use the no form of this command. Command History
Usage GuidelinesWhen triggered extensions to RIP are enabled, routing updates are sent on the WAN only if one of the following events occurs:
You might want to enable this feature if you are using an on-demand circuit and you are charged for usage time. Fewer routing updates will incur lower usage costs. Entries in the routing database can be either temporary or semipermanent. Entries learned from broadcasts on LANs are temporary; they will expire if not periodically refreshed by more broadcasts. Entries learned from a triggered response on the WAN are semipermanent; they do not time out like other entries. Certain events can cause these routes to time out, such as the interface going down, or if the outgoing interface is the same as the incoming interface. Neighbor updates of the routes with a metric of 16 (infinity) mean the route is unreachable, and those routes are eventually removed from the routing table. ip rip v2-broadcastTo allow Routing Information Protocol (RIP) Version 2 update packets to be sent as broadcast packets instead of multicast packets, use the ip rip v2-broadcast command in interface configuration mode. To disable the broadcast of IP RIP Version 2 update packets that are sent as broadcast packets, use the no form of this command. Command DefaultThis command is disabled by default. Unless the ip rip v2-broadcast commend is entered, RIP Version 2 update packets are sent as multicast packets. Command History
Usage GuidelinesUse the ip rip v2-broadcast command to broadcast RIP Version 2 broadcast updates to hosts that do not listen to multicast broadcasts. Version 2 updates (requests and responses) will be sent to the IP broadcast address 255.255.255.255 instead of the IP multicast address 224.0.0.9. In order to reduce unnecessary load on those hosts that are not listening to RIP Version 2 broadcasts, the system uses an IP multicast address for periodic broadcasts. The IP multicast address is 224.0.0.9.
ExamplesThe following example configures Version 2 IP broadcast updates on RIP Ethernet interface 3/1: Router(config) interface ethernet3/1 Router(config-if) ip address 172.16.1.1 255.255.255.0 Router(config-if) ip rip v2-broadcast . . . Router(config-if) router rip Router(config-if) version 2 Router(config-if) network 172.0.0.0 Enter debug ip rip command to verify that RIP Version 2 IP broadcast updates are being sent to the IP broadcast address 255.255.255 instead of IP multicast address 224.0.0.9:
Router# debug ip rip
14:41:59: RIP: sending v2 update to 255.255.255.255 via Ethernet3/1 (172.16.1.1)
If the ip rip v2-broadcastcommand has not been entered, the output from the debug ip rip command verifies that the RIP Version 2 IP broadcast updates are being sent to the IP multicast address 224.0.0.9:
Router# debug ip rip
15:45:16: RIP: sending v2 update to 224.0.0.9 via Ethernet3.1 (172.16.1.1)
ip split-horizon (RIP)To enable the split horizon mechanism, use the ip split-horizon command in interface configuration mode. To disable the split horizon mechanism, use the no form of this command. Command History
Usage GuidelinesFor all interfaces except those for which either Frame Relay or Switched Multimegabit Data Service (SMDS) encapsulation is enabled, the default condition for this command is ip split-horizon; in other words, the split horizon feature is active. If the interface configuration includes either the encapsulation frame-relay or encapsulation smds command, then the default is for split horizon to be disabled. Split horizon is not disabled by default for interfaces using any of the X.25 encapsulations.
ip summary-address ripTo configure a summary aggregate address under an interface for the Routing Information Protocol (RIP), use the ip summary-address rip command in interface configuration mode. To disable summarization of the specified address or subnet, use the no form of this command.
ip
summary-address
rip
ip-address
ip-network-mask
no
ip
summary-address
rip
ip-address
ip-network-mask
Command History
Usage GuidelinesThe ip summary-address rip command is used to summarize an address or subnet under a specific interface. RIP automatically summarizes to classful network boundaries. Only one summary address can be configured for each classful subnet. ExamplesIn the following example the major network is 10.0.0.0. The summary address 10.2.0.0 overrides the autosummary address of 10.0.0.0, so that 10.2.0.0 is advertised out Ethernet interface 1 and 10.0.0.0 is not advertised.
interface Ethernet1 ip address 10.1.1.1 255.255.255.0 ip summary-address rip 10.2.0.0 255.255.0 exit router rip network 10.0.0.0 end neighbor (RIP)To define a neighboring router for exchanging routing information, use the neighbor command in router configuration mode. To remove a neighboring router entry, use the no form of this command. Command History
Usage GuidelinesThis command permits point-to-point (nonbroadcast) exchange of routing information. When it is used in combination with the passive-interface command, routing information can be exchanged between a subset of routers and access servers on a LAN. Use multiple neighbor commands to specify additional neighbors or peers. ExamplesIn the following example, RIP updates are sent to all interfaces on network 10.108.0.0 except Ethernet interface 1. However, in this case, a neighbor router configuration command is included. This command permits the sending of routing updates to specific neighbors. One copy of the routing update is generated per neighbor. Router> enable Router# configure terminal Router(config)# router rip Router(config-router)# network 10.108.0.0 Router(config-router)# passive-interface Ethernet 1 Router(config-router)# neighbor 10.108.20.4 Router(config-router)# end The following example shows how to enable BFD for RIP neighbors: Router> enable Router# configure terminal Router(config)# neighbor 10.0.0.1 bfd Router(config-router)# end network (RIP)To specify a list of networks for the Routing Information Protocol (RIP) routing process, use the network command in router configuration mode. To remove an entry, use the no form of this command. Command History
Usage GuidelinesThe network number specified must not contain any subnet information. There is no limit to the number of network commands you can use on the router. RIP routing updates will be sent and received only through interfaces on this network. RIP sends updates to the interfaces in the specified networks. Also, if the network of an interface is not specified, the interface will not be advertised in any RIP update. offset-list (RIP)To add an offset to incoming and outgoing metrics to routes learned via Routing Information Protocol (RIP), use the offset-listcommand in router configuration mode. To remove an offset list, use the no form of this command.
offset-list
{access-list-number | access-list-name}
{in | out}
offset
{interface-type | interface-number}
no
offset-list
{access-list-number | access-list-name}
{in | out}
offset
{interface-type | interface-number}
Syntax Description
Command History
Usage GuidelinesThe offset value is added to the routing metric. An offset list with an interface type and interface number is considered extended and takes precedence over an offset list that is not extended. Therefore, if an entry passes the extended offset list and the normal offset list, the offset of the extended offset list is added to the metric. output-delayTo change the interpacket delay for Routing Information Protocol (RIP) updates sent, use the output-delay command in router configuration mode. To remove the delay, use the no form of this command. Command History
router ripTo configure the Routing Information Protocol (RIP) routing process, use the route r rip command in global configuration mode. To turn off the RIP routing process, use the no form of this command. Command History
service-module ip rip relayTo enable the delivery of RIP update messages from a Cisco IOS router containing an integrated cable modem or a cable modem HWIC to a Hybrid Fiber-Coaxial (HFC) CMTS when they are on different subnets, use the service-module ip rip relay command in interface configuration mode. To disable RIP relay, use the no form of this command. Usage GuidelinesThe service-module ip rip relay command is used to enable the HFC RIP Relay feature that allows the delivery of RIP messages from a Cisco IOS router containing an integrated cable modem or a cable modem High-Speed WAN Interface Card (HWIC) to the Cable Modem Termination system (CMTS) when they are on different subnets. In Cisco IOS releases prior to 12.4(15)XY and 12.4(20)T, RIP messages were rejected by the CMTS because the interface on the Cisco IOS router was in a different subnet from the CMTS. ExamplesThe following example enables RIP relay on an Integrated Services Router (ISR) cable modem. A static IP address is configured for the cable modem interface, and RIP relay is enabled on the interface. To allow RIP updates from unknown sources, the normal validation of the source IP address of incoming RIP routing updates is disabled. RIP is defined as the routing protocol to be used on all interfaces that are connected to networks 10.0.0.0 and 172.18.0.0. interface Cable-Modem0/3/0 ip address 10.5.5.5 255.255.255.0 service-module ip rip relay exit router rip version 2 no validate-update-source network 10.0.0.0 network 172.18.0.0 show ip rip databaseTo display summary address entries in the Routing Information Protocol (RIP) routing database entries if relevant are routes being summarized based upon a summary address, use the show ip rip database command in privileged EXEC mode. Command History
Usage GuidelinesSummary address entries will appear in the database only if relevant child routes are being summarized. When the last child route for a summary address becomes invalid, the summary address is also removed from the routing table. The RIP private database is populated only if triggered extensions to RIP are enabled with the ip rip triggered command. ExamplesThe following output shows a summary address entry for route 10.11.0.0/16, with three child routes active: Router# show ip rip database 10.0.0.0/8 auto-summary 10.11.11.0/24 directly connected, Ethernet2 10.1.0.0/8 auto-summary 10.11.0.0/16 int-summary ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10.11.10.0/24 directly connected, Ethernet3 10.11.11.0/24 directly connected, Ethernet4 10.11.12.0/24 directly connected, Ethernet5 The following is sample output from the show ip rip databasecommand with a prefix and mask: Router# show ip rip database 172.19.86.0 255.255.255.0172.19.86.0/24 [1] via 172.19.67.38, 00:00:25, Serial0 [2] via 172.19.70.36, 00:00:14, Serial1 The table below describes the fields in the display.
Related Commands
show ip rip neighborsTo display Routing Information Protocol (RIP) neighbors for which Bidirectional Forwarding Detection (BFD) sessions are created, use the show ip rip neighbors command in privileged EXEC mode. Usage GuidelinesUse the show ip rip neighbors command to display RIP neighbors for which BFD sessions are created. ExamplesThe following is sample output from the show ip rip neighborscommand:
Router# show ip rip neighbors
BFD sessions created for the RIP neighbors
Neighbor Interface SessionHandle
10.10.10.2 Ethernet0/0 1
10.10.20.2 Ethernet1/0 2
The table below describes the significant fields shown in the display. skeptical intervalTo configure cautious Cisco nonstop forwarding (NSF) helper functionality with a neighbor with an interval, use the skeptical interval command in router configuration mode. To configure a cautious NSF helper with the default interval, use the no form of this command. Usage GuidelinesWhen the skeptical interval command is configured with an interval, NSF will not be supported with the neighbor during this period. If you configure the skeptical interval 0 command, it means that you always support NSF with the neighbor. Whenever you configure the skeptical interval command, you should also configure the nsf interval command. throttle (router configuration)To enable throttle for Routing Information Protocol (RIP) requests, use the throttlecommand in router configuration mode. To disable the configuration, use the no form of this command. Usage GuidelinesYou can use the throttle command if you are using RIP as a routing protocol to serve a large number of routers. This command prevents RIP from generating update packets in response to RIP requests from a faulty neighbor. Because only one RIP request per minute will be serviced from a neighbor, incoming regular updates are less likely to be dropped. You can configure the throttle command only when the interpacket delay is configured using the output-delay command. timers basic (RIP)To adjust Routing Information Protocol (RIP) network timers, use the timers basic command in router configuration mode. To restore the default timers, use the no form of this command. Syntax Description
Command History
Usage GuidelinesThe basic timing parameters for RIP are adjustable. Because RIP is executing a distributed, asynchronous routing algorithm, these timers must be the same for all routers and access servers in the network. In addition, an address family can have explicitly specified timers that apply to that address-family (or VRF) only. The timers basic command must be specified for an address family or the system defaults for the timers basic command are used regardless of what is configured for RIP routing. The VRF does not inherit the timer values from the base RIP configuration. The VRF will always use the system default timers unless explicitly changed using the timers basic command. ExamplesThe following example sets updates to be broadcast every 5 seconds. If a router is not heard from in 15 seconds, the route is declared unusable. Further information is suppressed for an additional 15 seconds. At the end of the suppression period, the route is flushed from the routing table. router rip timers basic 5 15 15 30 The following example show adjusting address family timers. router rip version 2 timers basic 5 10 15 20 redistribute connected network 5.0.0.0 default-metric 10 no auto-summary ! address-family ipv4 vrf foo timers basic 10 20 20 20 redistribute connected network 10.0.0.0 default-metric 5 no auto-summary version 2 exit-address-family ! address-family ipv4 vrf bar timers basic 20 40 60 80 redistribute connected network 20.0.0.0 default-metric 2 no auto-summary version 2 exit-address-family ! validate-update-sourceTo have the Cisco IOS software valida te the source IP address of incoming routing updates for Routing Information Protocol (RIP) and Interior Gateway Routing Protocol (IGRP) routing protocols, use the validate-update-sourcecommand in router configuration mode. To disable this function, use the no form of this command. Command History
Usage GuidelinesThis command is applicable only to RIP and IGRP. The software ensures that the source IP address of incoming routing updates is on the same IP network as one of the addresses defined for the receiving interface. Disabling split horizon on the incoming interface will also cause the system to perform this validation check. For unnumbered IP interfaces (interfaces configured asIP unnumbered), no checking is performed. versionTo specify a Routing Information Protocol (RIP) version used globally by the router, use the version command in router configuration mode. To restore the default value, use the no form of this command. Command DefaultThe software receives RIP Version 1 and Version 2 packets, but sends only Version 1 packets. Command History
Usage GuidelinesTo specify RIP versions used on an interface basis, use the ip rip receive version and ip rip send version commands. © 2012 Cisco Systems, Inc. All rights reserved.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||