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 terminalEnter configuration commands, one per line. End with CNTL/Z. Router2(config)#interfaceRouter2(config-if)#Ethernet0ip addressRouter2(config-if)#192.168.30.1 255.255.255.0interfaceRouter2(config-subif)#Serial0.1ip addressRouter2(config-subif)#172.25.2.2 255.255.255.0exitRouter2(config)#router ripRouter2(config-router)#networkRouter2(config-router)#172.25.0.0networkRouter2(config-router)#192.168.30.0exitRouter2(config)#endRouter2#
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 ripRouter2(config-router)#network172.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 terminalEnter configuration commands, one per line. End with CNTL/Z. Router2(config)#router ripRouter2(config-router)# ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access