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.
(Optional) Enable RIP to advertise a default route.
(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.
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.
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 keyIDto 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 text
Use the no version to remove
authentication from all RIP interfaces.
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.
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.
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 keyIDto 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
text
Use the no version to remove
authentication from all RIP interfaces.
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-horizon
Use the no version to disable
split horizon and enable poison reverse routing updates.
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 boston
Use the no version to disable
the use of the prefix tree by the route map.
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.
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.
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.
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 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.
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.
Example
host1(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.
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 2
Use the no version to revert
to the default value, 1.