OcNOS-SP : Layer 3 Guide : Layer 3 Unicast Configuration Guide : RIP : Enable RIP
Enable RIP
This example shows the minimum configuration required to enable RIP on an interface. R1 and R2 are two routers connecting to network 10.10.11.0/24. R1 and R2 are also connected to networks 10.10.10.0/24 and 10.10.12.0/24, respectively. To enable RIP, first define the RIP routing process, then associate a network with the routing process.
Topology
Figure 24-135: Enable RIP Topology
R1
 
#configure terminal
Enter configure mode.
(config)#router rip
Define a RIP routing process, and enter Router mode.
(config-router)#network 10.10.10.0/24
(config-router)#network 10.10.11.0/24
Associate networks with the RIP process.
(config-router)#exit
Exit router mode and return to configure mode.
(config)#commit
Commit the candidate configuration to the running
configuration
R2
 
#configure terminal
Enter configure mode.
(config)#router rip
Define a RIP routing process, and enter Router mode.
(config-router)#network 10.10.11.0/24
(config-router)#network 10.10.12.0/24
Associate networks with the RIP process.
(config-router)#exit
Exit router mode and return to configure mode.
(config)#commit
Commit the candidate configuration to the running
configuration
Validation
show ip rip, show running-config, show ip protocols rip, show ip rip interface, show ip route
R1
#show ip rip
 
Codes: R - RIP, Rc - RIP connected, Rs - RIP static, K - Kernel,
C - Connected, S - Static, O - OSPF, I - IS-IS, B - BGP,
X - Default
 
Network Next Hop Metric From If Time
Rc 10.10.10.0/24 1 xe1
Rc 10.10.11.0/24 1 xe2
R 10.10.12.0/24 10.10.11.50 2 10.10.11.50 xe2 02:32
 
#show running-config rip
!
router rip
network 10.10.10.0/24
network 10.10.11.0/24
!
 
#show ip protocols rip
RIP Database for VRF (default)
Routing Protocol is "rip"
Sending updates every 30 seconds with +/-50%, next due in 2 seconds
Timeout after 180 seconds, garbage collect after 120 seconds
Outgoing update filter list for all interface is not set
Incoming update filter list for all interface is not set
Default redistribution metric is 1
Redistributing:
Default version control: send version 2, receive version 2
Interface Send Recv Key-chain
xe48 2 2
ce49 2 2
Routing for Networks:
10.10.10.0/24
10.10.11.0/24
Routing Information Sources:
Gateway Distance Last Update Bad Packets Bad Routes
10.10.11.50 120 00:00:06 0 0
Number of routes (including connected): 3
Distance: (default is 120)
 
#show ip rip interface
lo is up, line protocol is up
RIP is not enabled on this interface
eth0 is up, line protocol is up
RIP is not enabled on this interface
xe1 is up, line protocol is up
Routing Protocol: RIP
Receive RIP packets
Send RIP packets
Passive interface: Disabled
Split horizon: Enabled with Poisoned Reversed
IP interface address:
10.10.10.10/24
xe2 is up, line protocol is up
Routing Protocol: RIP
Receive RIP packets
Send RIP packets
Passive interface: Disabled
Split horizon: Enabled with Poisoned Reversed
IP interface address:
10.10.11.10/24
xe3 is up, line protocol is up
RIP is not enabled on this interface
...
 
#show ip route
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2,
ia - IS-IS inter area, E - EVPN,
v - vrf leaked
* - candidate default
 
IP Route Table for VRF "default"
C 10.10.10.0/24 is directly connected, xe1, 00:08:01
C 10.10.11.0/24 is directly connected, xe2, 00:07:34
R 10.10.12.0/24 [120/2] via 10.10.11.50, xe2, 00:05:10
C 127.0.0.0/8 is directly connected, lo, 4d18h40m
C 192.168.0.2/32 is directly connected, lo, 4d13h46m
 
Gateway of last resort is not set
 
R2
#show ip rip
 
Codes: R - RIP, Rc - RIP connected, Rs - RIP static, K - Kernel,
C - Connected, S - Static, O - OSPF, I - IS-IS, B - BGP,
X - Default
 
Network Next Hop Metric From If Time
R 10.10.10.0/24 10.10.11.10 2 10.10.11.10 xe1 02:34
Rc 10.10.11.0/24 1 xe1
Rc 10.10.12.0/24 1 xe2
 
#show running-config rip
!
router rip
network 10.10.11.0/24
network 10.10.12.0/24
!
 
#show ip protocols rip
RIP Database for VRF (default)
Routing Protocol is "rip"
Sending updates every 30 seconds with +/-50%, next due in 25 seconds
Timeout after 180 seconds, garbage collect after 120 seconds
Outgoing update filter list for all interface is not set
Incoming update filter list for all interface is not set
Default redistribution metric is 1
Redistributing:
Default version control: send version 2, receive version 2
Interface Send Recv Key-chain
xe2 2 2
ce49 2 2
Routing for Networks:
10.10.11.0/24
10.10.12.0/24
Routing Information Sources:
Gateway Distance Last Update Bad Packets Bad Routes
10.10.11.10 120 00:00:13 0 0
Number of routes (including connected): 3
Distance: (default is 120)
 
#show ip rip interface
lo is up, line protocol is up
RIP is not enabled on this interface
eth0 is up, line protocol is up
RIP is not enabled on this interface
xe1 is up, line protocol is up
Routing Protocol: RIP
Receive RIP packets
Send RIP packets
Passive interface: Disabled
Split horizon: Enabled with Poisoned Reversed
IP interface address:
10.10.11.50/24
xe2 is up, line protocol is up
Routing Protocol: RIP
Receive RIP packets
Send RIP packets
Passive interface: Disabled
Split horizon: Enabled with Poisoned Reversed
IP interface address:
10.10.12.10/24
xe3 is up, line protocol is up
RIP is not enabled on this interface
...
 
#show ip route
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2,
ia - IS-IS inter area, E - EVPN,
v - vrf leaked
* - candidate default
 
IP Route Table for VRF "default"
R 10.10.10.0/24 [120/2] via 10.10.11.10, xe1, 00:11:08
C 10.10.11.0/24 is directly connected, xe1, 00:13:00
C 10.10.12.0/24 is directly connected, xe2, 00:12:26
C 127.0.0.0/8 is directly connected, lo, 4d18h50m
C 192.168.0.1/32 is directly connected, lo, 4d14h01m
 
Gateway of last resort is not set
Last modified date: 10/16/2023