Configuring RIP Version 1
Problem
You want to run RIP on a simple network.
Solution
The following commands show how to configure basic RIP functionality:
Router2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router2(config)#interface
Router2(config-if)#
Ethernet0
ip address
Router2(config-if)#
192.168.30.1 255.255.255.0
interface
Router2(config-subif)#
Serial0.1
ip address
Router2(config-subif)#
172.25.2.2 255.255.255.0
exit
Router2(config)#router rip
Router2(config-router)#network
Router2(config-router)#
172.25.0.0
network
Router2(config-router)#
192.168.30.0
exit
Router2(config)#end
Router2#
Discussion
You enable RIP for an interface by associating its IP address
with a network. For example, the Serial0.1
subinterface in this example has
an IP address of 172.25.2.2
. So if
you want this subinterface to take part in RIP route distribution, you
just need to include a network
statement that includes its address:
Router2(config)#router rip
Router2(config-router)#network
172.25.0.0
If you have other interfaces that are also part of 172.25.0.0/16
on this router, they will take
part in RIP as well. It’s important to note that RIP network statements work with classful
network addresses. The network command may appear to accept subnets
of classful addresses, but it will internally rewrite these subnet
addresses with the classful network address:
Router2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router2(config)#router rip
Router2(config-router)# ...
Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.