Configuration Tasks
To configure RIP:
- Create a RIP process by enabling RIP. host1(config)#router rip
- (Optional) Configure the global RIP version. RIPv1 is
used by default.host1(config-router)#version 2
- (Optional) Do one of the following:
- Associate a network with a RIP routing process and optionally
configure RIP for the network.host1(config-router)#network 10.2.1.0 255.255.255.0 host1(config-if)#ip rip host1(config-if)#ip rip receive version 1 host1(config-if)#ip rip send version 2 host1(config-if)#ip rip authentication mode text host1(config-if)#ip rip authentication key klaatu42
- Associate the RIP routing process with an interface specified
by an IP address or with an unnumbered interface, and configure RIP
for the interface.host1(config-router)#address 10.2.1.1 host1(config-router)#address 10.2.1.1 receive version 1 host1(config-router)#address 10.2.1.1 send version 2 host1(config-router)#address 10.2.1.1 authentication mode text host1(config-router)#address 10.2.1.1 authentication key 31barada
Each configuration step is optional, and includes the following:
- (Optional) Specify a RIP receive version for an interface. By default, RIP interfaces on your router receive both RIPv1 and RIPv2.
- (Optional) Specify a RIP send version for an interface. By default, RIP interfaces on your router send only RIPv1.
- (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 RIPv2.
- Associate a network with a RIP routing process and optionally
configure RIP for the network.
- (Optional) Enable RIP to advertise a default route.host1(config-router)#default-information originate
- (Optional) Specify a default metric for redistributed
routes on all subsequently created interfaces. host1(config-router)#default-metric 5
- (Optional) Set the administrative distance for advertised
routes.host1(config-router)#distance 150
- (Optional) Control the dynamic distribution of routes
caused by changes to an associated route map.host1(config-router)#disable-dynamic-redistribute
- (Optional) Adjust RIP timers. host1(config-router)#timers update 20 host1(config-router)#timers invalid 60 host1(config-router)#timers holddown 60 host1(config-router)#timers flush 90
- (Optional) Specify maximum number of ECMP paths.host1(config-router)#maximum-paths 2
- (Optional) Summarize routes.
Use 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/24 host1(config-router)#route-map 4 host1(config-route-map)#match-set summary prefix-tree boston
Note: For information about the ip prefix-tree command, see JunosE IP Services Configuration Guide.
Alternatively, explicitly specify routes for RIP to summarize:
host1(config-router)#ip summary-address 4.4.0.0 255.255.0.0 5 host1(config-router)#ip summary-address 4.3.0.0 255.255.0.0 6 - (Optional) Redistribute routes from other protocols into
RIP, or from RIP to other protocols.host1(config-router)#redistribute rip 5 host1(config-router)#route-map 4 host1(config-router)#redistribute bgp 100 route-map 4
- (Optional) Enable unicast communication with RIP neighbors.host1(config-router)#neighbor 10.10.21.100 host1(config-router)#passive-interface atm atm 2/0.16
- (Optional) Set the debounce time for interfaces brought
down by some event.host1(config-router)#debounce-time 30
- (Optional) Prevent RIP from purging the routing table
for interfaces brought down by some event.host1(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-disable
- (Optional) Prevent RIP from sending triggered updates.host1(config-router)#triggered-update-disable
- (Optional) Apply a table map to modify route distance. host1(config-router)#table-map dist1
Relationship 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 RIPv1, receive version is RIPv1 and RIPv2, authentication is not enabled.
- Examplehost1(config-router)#address 10.2.1.1
- Use the no version to delete the RIP interface.
- See address
address 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.
- Examplehost1(config-router)#address 10.2.1.1 authentication key ke6G72mV
- Use the no version to clear all authentication keys.
- See address authentication key
address 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 router 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.
- Examplehost1(config-router)#address 10.2.1.1 authentication mode text
- Use the no version to remove authentication from all RIP interfaces.
- See address authentication mode
address receive version
- Use to restrict the RIP version that the router can receive on an interface. The default is to receive both RIPv1 and RIPv2.
- Examplehost1(config-router)#address 10.2.1.1 receive version 1
- Use the no version to restore the default value, 1 2.
- See address receive version
address send version
- Use to restrict the RIP version that the router can send on an interface. The default is to send only RIPv1.
- Examplehost1(config-router)#address 10.2.1.1 send version 2
- Use the no version to restore the default value, 1.
- See address send version
clear ip rip redistribution
- Use to clear all the routes that have previously been redistributed into RIP.
- Examplehost1#clear ip rip redistribution
- There is no no version.
- See clear ip rip redistribution
debounce-time
- Use to control the interval RIP waits before bringing back up an interface that was brought down by some event.
- The interval can be in the range 0–60 seconds.
- Examplehost1(config-router)#debounce-time 30
- Use the no version to restore the default value, 10 seconds.
- See debounce-time
default-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.
- Examplehost1(config-router)#default-information originate
- Use the no version to disable advertisement of the default route.
- See default-information originate
default-metric
- Use to configure RIP to apply this metric for redistributed routes on all subsequently created interfaces.
- Configuring a default metric lowers the priority of the routes.
- Use a metric in the range 1 – 16.
- Examplehost1(config-router)#default-metric 5
- Use the no version to restore the default value, 0.
- See default-metric
disable
- Use to disable RIP processing.
- Examplehost1(config-router)#disable
- Use the no version to enable RIP processing.
- See disable
disable-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.
- Examplehost1(config-router)#disable-dynamic-redistribute
- Use the no version to reenable dynamic redistribution.
- See disable-dynamic-redistribute
distance
- Use to set the administrative distances for routes.
- Examplehost1(config-router)#distance 150
- Use the no version to restore the default value, 120.
- See distance
distribute-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 access-list in the JunosE Command Reference Guide for more information.
- Examplehost1(config-router)#distribute-list 5 incoming
- Use the no version to stop application of the distribute list.
- See distribute-list
interface-event-disable
- Use to configure RIP to purge the routing table for interfaces that were brought down by some event.
- Examplehost1(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.
- See interface-event-disable
ip rip
- Use to configure RIP on the network interface specified with the network command.
- Configures RIP with the default values: Send version is RIPv1, receive version is RIPv1 and RIPv2, authentication is not enabled.
- Examplehost1(config-if)#ip rip
- Use the no version to delete the RIP interface.
- See ip rip
ip 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.
- Examplehost1(config-if)#ip rip authentication key ke6G72mV
- Use the no version to clear all authentication keys.
- See ip rip authentication key
ip 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 router 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.
- Examplehost1(config-if)#ip rip authentication mode text
- Use the no version to remove authentication from all RIP interfaces.
- See ip rip authentication mode
ip rip receive version
- Use to restrict the RIP version that the router can receive on an interface. The default is both RIPv1 and RIPv2.
- Examplehost1(config-if)#ip rip receive version 1
- Use the no version to restore the default value, 1 2.
- See ip rip receive version
ip rip send version
- Use to restrict the RIP version that the router can send on an interface. The default is RIPv1.
- Examplehost1(config-if)#ip rip send version 2
- Use the no version to restore the default value, 1.
- See ip rip send version
ip 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.
- Examplehost1(config-if)#no ip split-horizon
- Use the no version to disable split horizon and enable poison reverse routing updates.
- See ip split-horizon
ip 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 5 host1(config-router)#ip summary-address 4.3.0.0 255.255.0.0 6
- Use the no version to stop summarization for the specified routes.
- See ip summary-address
match-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.
- Examplehost1(config-route-map)#match-set summary prefix-tree boston
- Use the no version to disable the use of the prefix tree by the route map.
- See match-set summary prefix-tree
maximum-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 be in the range 1–16.
- Examplehost1(config-router)#maximum-paths 2
- Use the no version to restore the default value, 4.
- See maximum-paths
neighbor
- 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.
- Examplehost1(config-router)#neighbor 10.10.21.100
- Use the no version to remove the neighbor.
- See neighbor
network
- 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 the standard subnet mask with this command.
- Example host1(config-router)#network 10.2.1.0 255.255.255.0
- Use the no version to disable RIP on the specified interface.
- See network
passive-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.
- Examplehost1(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.
- See passive-interface
redistribute
- Use to redistribute information from a routing domain other than RIP into the RIP domain.
- 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 1host1(config)#router rip 5 host1(config-router)#redistribute bgp 100 route-map 4
- Example 2host1(config)#router bgp 100 host1(config-router)#redistribute rip 5
- Use the no version to disable redistribution.
- See redistribute.
route-map
- Use to specify a route map for RIP.
- Examplehost1(config)#router rip host1(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.
- See route-map
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.
- Examplehost1(config)#router rip
- Use the no version to delete the RIP process and removes the configuration from your router.
- See router rip
send-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.
- Examplehost1(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.
- See send-more-specific-routes-disable
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.
- Examplehost1(config)#route-map dist1 permit 5 host1(config-route-map)#match community boston42 host1(config-route-map)#set distance 33 host1(config-route-map)#exit host1(config)#router rip 100 host1(config-router)#table-map dist1 host1(config-router)#exit host1(config)#exit host1#clear ip routes *
- Use the no version to halt application of the route map.
- See table-map
timers
- Use to configure RIP timers.
- The router supports the following RIP timers:
- update—Interval in seconds at which routing updates are sent. The default is 30 seconds.
- invalid—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—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—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.
- Examplehost1(config-router)#timers update 20 host1(config-router)#timers invalid 60 host1(config-router)#timers holddown 60 host1(config-router)#timers flush 90
- Use the no version to restore the default values, 30 180 120 300.
- See timers
triggered-update-disable
- Use to prevent RIP from sending triggered routing updates.
- Examplehost1(config-router)#triggered-update-disable
- Use the no version to restore the default condition, wherein RIP does sends triggered routing updates.
- See triggered-update-disable
version
- Use to specify the global RIP version. The default is RIPv1.
- 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.
- Examplehost1(config-router)#version 2
- Use the no version to revert to the default value, 1.
- See version
Hide Navigation Pane
Show Navigation Pane
SHA1