Configuration Tasks
host1(config)#router riphost1(config-router)#version 2host1(config-router)#network 10.2.1.0 255.255.255.0host1(config-if)#ip riphost1(config-if)#ip rip receive version 1host1(config-if)#ip rip send version 2host1(config-if)#ip rip authentication mode texthost1(config-if)#ip rip authentication key klaatu42
- Associate the RIP routing process with an interface specified by an IP address or on an unnumbered interface and configure RIP for the interface).
host1(config-router)#address 10.2.1.1host1(config-router)#address 10.2.1.1 receive version 1host1(config-router)#address 10.2.1.1 send version 2host1(config-router)#address 10.2.1.1 authentication mode texthost1(config-router)#address 10.2.1.1 authentication key 31baradaEach configuration step is optional, and includes the following:
- (Optional) Specify a RIP receive version for an interface. By default, RIP interfaces on your system receive both RIP version 1 and RIP version 2.
- (Optional) Specify a RIP send version for an interface. By default, RIP interfaces on your system send only RIP version 1.
- (Optional) Specify an authentication mode and authentication password or key. This step is permitted only if both receive version and send version are set to RIP version 2.
host1(config-router)#default-information originatehost1(config-router)#default-metric 5host1(config-router)#distance 150host1(config-router)#disable-dynamic-redistributehost1(config-router)#timers update 20host1(config-router)#timers invalid 60host1(config-router)#timers holddown 60host1(config-router)#timers flush 90host1(config-router)#maximum-paths 2Use a prefix tree to specify the number of bits to report for routes matching a route map:
host1(config)#ip prefix-tree boston permit 10.10.2.0/24host1(config-router)#route-map 4host1(config-route-map)#match-set summary prefix-tree bostonAlternatively, explicitly specify routes for RIP to summarize:
host1(config-router)#ip summary-address 4.4.0.0 255.255.0.0 5host1(config-router)#ip summary-address 4.3.0.0 255.255.0.0 6host1(config-router)#redistribute rip 5host1(config-router)#route-map 4host1(config-router)#redistribute bgp 100 route-map 4host1(config-router)#neighbor 10.10.21.100host1(config-router)#passive-interface atm atm 2/0.16host1(config-router)#debounce-time 30host1(config-router)#interface-event-disable
- (Optional) Prevent RIP from sending a more-specific route if a less-specific route has a better metric.
host1(config-router)#send-more-specific-routes-disablehost1(config-router)#triggered-update-disablehost1(config-router)#table-map dist1Relationship Between address and network Commands
If you use the network command to configure a RIP network, use the ip rip commands to configure the RIP attributes for that network. Do not use the address commands.
If you use the address command to configure a RIP network, use the address commands to configure the RIP attributes for that network. Do not use the ip rip commands.
Note: The network and ip rip commands are maintained for industry compatibility. You can configure all your RIP interfaces with the address commands. You cannot configure unnumbered interfaces with the network and ip rip commands.![]()
address
- Use to configure RIP to run on the interface specified by the IP address or on an unnumbered interface. Use the address commands to configure RIP attributes on the network.
- Configures RIP with the default values: Send version is RIP version 1, receive version is RIP version 1 and version 2, authentication is not enabled.
- Example
host1(config-router)#address 10.2.1.1address authentication key
- Use to specify either the simple password for text authentication or the encryption/decryption key for MD5 authentication. The key is a string of up to 16 alphanumeric characters and can be mixed uppercase and lowercase.
- You can specify whether the key is entered in unencrypted or encrypted format. If you do not specify which, the string is assumed to be unencrypted.
- Example
host1(config-router)#address 10.2.1.1 authentication key ke6G72mVaddress authentication mode
- Use to specify the authentication mode.
- Specify text to send a simple text password to neighbors. If a neighbor does not have the same password, requests and updates from this system are rejected.
- Specify md5 keyID to send an MD5 hash to neighbors. Neighbors must share the MD5 key to decrypt the message and encrypt the response.
- Example
host1(config-router)#address 10.2.1.1 authentication mode textaddress receive version
- Use to restrict the RIP version that the system can receive on an interface. The default is to receive both RIP version 1 and version 2.
- Example
host1(config-router)#address 10.2.1.1 receive version 1address send version
- Use to restrict the RIP version that the system can send on an interface. The default is to send only RIP version 1.
- Example
host1(config-router)#address 10.2.1.1 send version 2clear ip rip redistribution
host1#clear ip rip redistributiondebounce-time
- Use to control the interval RIP waits before bringing back up an interface that was brought down by some event.
- The interval can range from 0-60 seconds.
- Example
host1(config-router)#debounce-time 30default-information originate
- Use to enable RIP to advertise a default route (0.0.0.0/0) if the default route exists in the IP routing table.
- If the default route does not exist, you must configure it using the ip route command, or specify the always keyword. The always keyword causes RIP to always advertise the default route, and creates it if it is not present in the IP routing table.
- Example
host1(config-router)#default-information originatedefault-metric
- Use to configure RIP to apply this metric when advertising routes on all subsequently created interfaces.
- Configuring a default metric lowers the priority of the routes.
- Use a metric from 1 to 16.
- Example
host1(config-router)#default-metric 5disable
host1(config-router)#disabledisable-dynamic-redistribute
- Use to halt the dynamic redistribution of routes that are initiated by changes to a route map.
- Dynamic redistribution is enabled by default.
- Example
host1(config-router)#disable-dynamic-redistributedistance
host1(config-router)#distance 150distribute-list
- Use to apply a specific access list to incoming or outgoing RIP route updates.
- An IP access list acts as a filter. Refer to the access list command in the ERX Command Reference Guide A to M for more information.
- Example
host1(config-router)#distribute-list 5 incominginterface-event-disable
- Use to configure RIP to purge the routing table for interfaces that were brought down by some event.
- Example
host1(config-router)#interface-event-disable
- Use the no version to restore the default condition, wherein RIP does not automatically purge the routing table for down interfaces.
ip prefix-tree
- Use to create a prefix tree to match routes to be summarized by a route map; specifies a tree entry—a deny or permit clause for a network address.
- The prefix tree name can be up to 32 characters long.
- Example
host1(config)#ip prefix-tree boston42 permit 10.10.2.0/24ip rip
- Use to configure RIP on the network interface specified with the network command.
- Configures RIP with the default values: Send version is RIP version 1, receive version is RIP version 1 and version 2, authentication is not enabled.
- Example
host1(config-if)#ip ripip rip authentication key
- Use to specify either the simple password for text authentication or the encryption/decryption key for MD5 authentication. The key is a string of up to 16 alphanumeric characters and can be mixed uppercase and lowercase.
- You can specify whether the key is entered in unencrypted or encrypted format. If you do not specify which, the string is assumed to be unencrypted.
- Example
host1(config-if)#ip rip authentication key ke6G72mVip rip authentication mode
- Use to specify the authentication mode.
- Specify text to send a simple text password to neighbors. If a neighbor does not have the same password, requests and updates from this system are rejected.
- Specify md5 keyID to send an MD5 hash to neighbors. Neighbors must share the MD5 key to decrypt the message and encrypt the response.
- Example
host1(config-if)#ip rip authentication mode textip rip receive version
- Use to restrict the RIP version that the system can receive on an interface. The default is both RIP version 1 and version 2.
- Example
host1(config-if)#ip rip receive version 1ip rip send version
- Use to restrict the RIP version that the system can send on an interface. The default is RIP version 1.
- Example
host1(config-if)#ip rip send version 2ip split-horizon
- Use to configure the split horizon feature and poison reverse features for the interface. Enabled by default, split horizon prevents the RIP router from advertising routes from the originating interface.
- Poison reverse routing updates are disabled by default; when enabled, they set the metric for routes originating on the interface to infinity, thus explicitly advertising that the network is not reachable. This helps to prevent routing loops.
- In most configurations, you will want to accept the default condition.
- Example
host1(config-if)#no ip split-horizonip summary-address
- Use to specify an IP address and network mask to identify which routes to summarize.
- You can optionally specify a metric associated with the summary address. The default metric is 1.
- Example
host1(config-router)#ip summary-address 4.4.0.0 255.255.0.0 5host1(config-router)#ip summary-address 4.3.0.0 255.255.0.0 6match-set summary prefix-tree
- Use to specify a prefix tree that summarizes routes for a particular route map.
- Use the ip prefix-tree command to set the conditions of the prefix tree, including which routes to summarize and how many bits of the network address to preserve.
- Example
host1(config-route-map)#match-set summary prefix-tree bostonmaximum-paths
- Use to control the maximum number of parallel routes that RIP can support.
- RIP installs multiple equal-cost paths to a given destination only if each has a different next hop.
- The maximum number of routes can range from 1-16.
- Example
host1(config-router)#maximum-paths 2neighbor
- Use to specify a RIP neighbor to which the router sends unicast messages.
- You must also use the passive-interface command to specify the interface as passive, thereby restricting the interface to unicast RIP messages.
- Example
host1(config-router)#neighbor 10.10.21.100network
- Use to associate a network with a RIP routing process. Use the ip rip commands to configure RIP attributes on the network.
- You supply a network mask to the new address so that RIP runs on that specific network.
- If you do not specify an interface's network, the network is not advertised in any RIP updates.
- You can specify either the standard subnet mask or the inverse subnet mask.
- Example 1
host1(config-router)#network 10.2.1.0 255.255.255.0host1(config-router)#network 10.2.1.0 0.0.0.255passive-interface
- Use to disable the transmission of multicast RIP messages on the interface.
- RIP messages are unicast to a RIP neighbor on the interface if the interface is present in the IP routing table as the next-hop interface to the configured neighbor.
- Example
host1(config-router)#passive-interface atm atm 2/0.16
- Use the no version to reenable the transmission of RIP multicast messages on the specified interface.
redistribute
host1(config)#router rip 5host1(config-router)#redistribute bgp 100 route-map 4
- Specify the source protocol from which routes are being redistributed. It can be one of the following keywords: bgp, isis, ospf, static [ip], and connected. Use the static keyword to redistribute IP static routes; optionally add the ip keyword when redistributing into IS-IS. The keyword connected refers to routes that are established automatically by virtue of having enabled IP on an interface. For routing protocols such as OSPF and IS-IS, these routes will be redistributed as external to the AS.
- Use the route-map keyword to interrogate the route map to filter the importation of routes from the source routing protocol to the current routing protocol. If you do not specify the route-map option, all routes are redistributed. If you specify the route-map option, but no route map tags are listed, no routes will be imported.
- Use to redistribute routes from RIP into other non-RIP routing domains.
- Example 2
host1(config)#router bgp 100host1(config-router)#redistribute rip 5route-map
host1(config)#router riphost1(config-router)#route-map 4
- Use the no version to delete the route map. If you do not specify an interface, it removes the global route map if it exists.
router rip
- Use to enable RIP routing protocol and specify a RIP process for IP, or to access Router Configuration mode.
- Specify only one RIP process per router.
- Example
host1(config)#router ripsend-more-specific-routes-disable
- Use to configure RIP to send a less-specific route in preference to a more-specific route if the less-specific route has a metric.
- Example
host1(config-router)#send-more-specific-routes-disable
- Use the no version to restore the default condition, wherein RIP always sends a more-specific route in preference to a less-specific route, even if the less-specific route has a metric.
table-map
- Use to apply a policy to modify distance, metric, or tag values of RIP routes about to be added to the IP routing table.
- The new route map is applied to all routes currently in and those subsequently placed in the forwarding table. Previously redistributed routes are redistributed with the changes caused by the route map.
- To remove from the forwarding table any old routes that are now disallowed by the specified route map, you must refresh the IP routing table with the clear ip routes * command.
- Example
host1(config)#route-map dist1 permit 5host1(config-route-map)#match community boston42host1(config-route-map)#set distance 33host1(config-route-map)#exithost1(config)#router rip 100host1(config-router)#table-map dist1host1(config-router)#exithost1(config)#exithost1#clear ip routes *timers
- update - the interval in seconds at which routing updates are sent. The default is 30 seconds.
- invalid - the interval in seconds after which a route is declared invalid (null). Set this value to at least three times the update value. The default is 180 seconds.
- holddown - the interval in seconds during which routing information about better paths is suppressed. Set this value to at least three times the update value. The default is 120 seconds.
- flush - the interval in seconds that must pass before a route is removed from the routing table. Set this value greater than the invalid value. The default is 300 seconds.
host1(config-router)#timers update 20host1(config-router)#timers invalid 60host1(config-router)#timers holddown 60host1(config-router)#timers flush 90triggered-update-disable
host1(config-router)#triggered-update-disable
- Use the no version to restore the default condition, wherein RIP does sends triggered routing updates.
version
- Use to specify the global RIP version. The default is RIP version 1.
- To change the RIP version on a specific interface, use the ip rip receive version and the ip rip send version commands, or the address receive version and address send version commands.
- Example
host1(config-router)#version 2