OcNOS-SP : Layer 3 Guide : Layer 3 Unicast Configuration Guide : RIP : RIPV2 VRF Configuration
RIPV2 VRF Configuration
RIPV2 can be configured along with vrf between two nodes and also between PE-CE nodes.
Topology
Figure 24-140: RIPV2 VRF Topology
RIPV2 VRF Configuration
This document captures requirements to use RIPv2 with vrf between two nodes.
R1
 
#configure terminal
Enter configuration mode.
(config)#ip vrf ripv2
Configure ip vrf
(config-vrf)#rd 1:1
Configure rd
(config-vrf)#route-target both 1:100
Configure rt value
(config-vrf)#int xe48
Enter in to interface
(config-if)#ip vrf forwarding ripv2
Enable ip vrf forwarding
(config-if)#ip address 10.10.10.1/24
Configure ip address
(config-if)#router rip
Enter in to router rip
(config-router)#address-family ipv4 vrf ripv2
Address family ipv4 with vrf name
(config-router-af)#network 10.10.10.0/24
Configure network command
(config-router-af)#redistribute static
Configure Redistribute static
(config-router-af)#redistribute connected
Configure Redistribute connected
(config-router-af)#commit
Commit the transactions
(config)#ip route vrf ripv2 191.1.1.10/32 xe48
Configure static route with vrf
(config)#commit
Commit the transaction
R2
 
#configure terminal
Enter configuration mode.
(config)#ip vrf ripv2
Configure ip vrf
(config-vrf)#rd 1:1
Configure rd
(config-vrf)#route-target both 1:100
Configure rt value
(config-vrf)#int xe10
Enter in to interface
(config-if)#ip vrf forwarding ripv2
Enable ip vrf forwarding
(config-if)#ip address 10.10.10.2/24
Configure ip address
(config-if)#router rip
Enter in to router rip
(config-router)#address-family ipv4 vrf ripv2
Address family ipv4 with vrf name
(config-router-af)#network 10.10.10.0/24
Configure network command
(config-router-af)#redistribute static
Configure Redistribute static
(config-router-af)#redistribute connected
Configure Redistribute connected
(config-router-af)#commit
Commit the transactions
Validation
R1
 
#sh ip rip database vrf ripv2
 
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 xe48
S 191.1.1.10/32 1 xe48
R2
 
#sh ip rip database vrf ripv2
 
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 xe10
R 191.1.1.10/32 10.10.10.1 2 10.10.10.1 xe10 02:48
 
 
 
 
Last modified date: 10/16/2023