Configuration Tasks
- 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:
host1(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 klaatu42Associate 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.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 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.
- (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 20host1(config-router)#timers invalid 60host1(config-router)#timers holddown 60host1(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/24host1(config-router)#route-map 4host1(config-route-map)#match-set summary prefix-tree boston
NOTE: For information about the ip prefix-tree command, see JUNOSe IP Services Configuration Guide, Chapter 1, Configuring Routing Policy.
Alternatively, 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 6
- (Optional) Redistribute routes from other protocols into RIP, or from RIP to other protocols.
host1(config-router)#redistribute rip 5host1(config-router)#route-map 4host1(config-router)#redistribute bgp 100 route-map 4- (Optional) Enable unicast communication with RIP neighbors.
host1(config-router)#neighbor 10.10.21.100host1(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 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.
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.
- Example
host1(config-router)#address 10.2.1.1Use the no version to delete the RIP interface. 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.
- Example
host1(config-router)#address 10.2.1.1 authentication key ke6G72mVUse the no version to clear all authentication keys. 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.
- Example
host1(config-router)#address 10.2.1.1 authentication mode textUse the no version to remove authentication from all RIP interfaces. 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.
- Example
host1(config-router)#address 10.2.1.1 receive version 1Use the no version to restore the default value, 1 2. address send version
- Use to restrict the RIP version that the router can send on an interface. The default is to send only RIPv1.
- Example
host1(config-router)#address 10.2.1.1 send version 2Use the no version to restore the default value, 1. clear ip rip redistribution
host1#clear ip rip redistributionThere is no no version. 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 060 seconds.
- Example
host1(config-router)#debounce-time 30Use the no version to restore the default value, 10 seconds. 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.
- Example
host1(config-router)#default-information originateUse the no version to disable advertisement of the default route. 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.
- Example
host1(config-router)#default-metric 5Use the no version to restore the default value, 0. disable
host1(config-router)#disableUse the no version to enable RIP processing. 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.
- Example
host1(config-router)#disable-dynamic-redistributeUse the no version to reenable dynamic redistribution. distance
host1(config-router)#distance 150Use the no version to restore the default value, 120. 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 the access list command in the JUNOSe Command Reference Guide A to M for more information.
- Example
host1(config-router)#distribute-list 5 incomingUse the no version to stop application of the distribute list. interface-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-disableUse the no version to restore the default condition, wherein RIP does not automatically purge the routing table for down interfaces. 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.
- Example
host1(config-if)#ip ripUse the no version to delete the RIP interface. 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.
- Example
host1(config-if)#ip rip authentication key ke6G72mVUse the no version to clear all authentication keys. 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.
- Example
host1(config-if)#ip rip authentication mode textUse the no version to remove authentication from all RIP interfaces. 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.
- Example
host1(config-if)#ip rip receive version 1Use the no version to restore the default value, 1 2. ip rip send version
- Use to restrict the RIP version that the router can send on an interface. The default is RIPv1.
- Example
host1(config-if)#ip rip send version 2Use the no version to restore the default value, 1. 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.
- Example
host1(config-if)#no ip split-horizonUse the no version to disable split horizon and enable poison reverse routing updates. 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 5host1(config-router)#ip summary-address 4.3.0.0 255.255.0.0 6Use the no version to stop summarization for the specified routes. 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.
- Example
host1(config-route-map)#match-set summary prefix-tree bostonUse the no version to disable the use of the prefix tree by the route map. 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 116.
- Example
host1(config-router)#maximum-paths 2Use the no version to restore the default value, 4. 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.
- Example
host1(config-router)#neighbor 10.10.21.100Use the no version to remove the 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 either the standard subnet mask or the inverse subnet mask.
- Example 1standard subnet mask
host1(config-router)#network 10.2.1.0 255.255.255.0Example 2inverse subnet mask host1(config-router)#network 10.2.1.0 0.0.0.255Use the no version to disable RIP on the specified interface. 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.
- Example
host1(config-router)#passive-interface atm atm 2/0.16Use the no version to reenable the transmission of RIP multicast messages on the specified 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 1
host1(config)#router rip 5host1(config-router)#redistribute bgp 100 route-map 4Example 2 host1(config)#router bgp 100host1(config-router)#redistribute rip 5Use the no version to disable redistribution. route-map
host1(config)#router riphost1(config-router)#route-map 4Use 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 ripUse the no version to delete the RIP process and removes the configuration from your router. 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.
- Example
host1(config-router)#send-more-specific-routes-disableUse 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 *Use the no version to halt application of the route map. timers
- updateInterval in seconds at which routing updates are sent. The default is 30 seconds.
- invalidInterval 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.
- holddownInterval 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.
- flushInterval 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 90Use the no version to restore the default values, 30 180 120 300. triggered-update-disable
host1(config-router)#triggered-update-disableUse 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 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.
- Example
host1(config-router)#version 2Use the no version to revert to the default value, 1.