OcNOS-RON-6.3.1 : Layer 3 Guide : VRF Lite Configuration Guide : RIP Configuration : Configuration IPv4 VRF
Configuration IPv4 VRF
R1
 
#configure terminal
Enter configure mode.
(config)#virtual-router VR1
Create virtual router VR1.
(config-vr)#load rip
Load the RIP module in VR1.
(config)#exit
Exit VR mode.
(config)#interface eth1
Enter interface mode.
(config-if)#virtual-router forwarding VR1
Associate eth1 to VR1.
(config-if)#exit
Exit interface mode.
(config)#exit
Exit configure mode.
#login virtual-router VR1
Log in to virtual-router VR1.
>en
Enter privileged exec mode.
#con t
Enter configuration mode.
(config)#ip vrf vrf1
Create vrf1
((config-vrf)#exit
Exit VRF mode
(config)#router rip
Enter router mode.
(config-router)#version 2
Specify RIP version 2.
(config-router)#address-family ipv4 vrf vrf1
Enter address family mode for vrf1
(config-router-af)#network 2.2.2.0/24
Advertise the connected network under rip.
(config-router-af)#exit
Exit address-family mode.
(config-router)#ex
Exit router mode
(config)#interface eth1
Enter interface mode
(config-if)#ip vrf forwarding vrf1
Associate the interface to vrf1
(config-if)#ip address 2.2.2.1/24
Configure the IP address 2.2.2.1 to eth1
R2
 
#configure terminal
Enter configure mode.
(config)#virtual-router VR1
Create virtual router VR1.
(config-vr)#load rip
Load the rip module in VR1.
(config)#exit
Exit VR mode.
(config)#interface eth1
Enter interface mode.
(config-if)#virtual-router forwarding VR1
Associate eth1 to VR1.
(config-if)#exit
Exit interface mode.
(config)#exit
Exit configure mode.
#login virtual-router VR1
Log in to virtual router VR1.
>en
Enter privileged exec mode.
#con t
Enter configuration mode.
(config)#ip vrf vrf1
Create vrf1
((config-vrf)#exit
Exit VRF mode
(config)#router rip
Enter router mode.
(config-router)#version 2
Specify RIP version 2.
(config-router)#address-family ipv4 vrf vrf1
Enter address family mode for vrf1
(config-router-af)#network 2.2.2.0/24
Advertise the connected network under RIP.
(config-router-af)#exit
Exit address family mode.
(config-router)#ex
Exit router mode
(config)#interface eth1
Enter interface mode
(config-if)#ip vrf forwarding vrf1
Associate the interface to vrf1
(config-if)#ip address 2.2.2.2/24
Configure the IP address 2.2.2.1 to eth1
Validation
Verify the routing table in R1:
#show ip route vrf vrf1
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
* - candidate default
IP Route Table for VRF "vrf1"
C 2.2.2.0/24 is directly connected, eth1
Gateway of last resort is not set
Verify RIP database in R1:
#show ip rip database vrf vrf1
Codes: R - RIP, Rc - RIP connected, Rs - RIP static, K - Kernel,
C - Connected, S - Static, O - OSPF, I - IS-IS, B - BGP
Network Next Hop Metric From If Time
Rc 2.2.2.0/24 1 eth1
Verify the routing table in R2:
#show ip route vrf vrf1
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
* - candidate default
IP Route Table for VRF "vrf1"
C 2.2.2.0/24 is directly connected, eth1
Gateway of last resort is not set
Verify RIP database in R2:
#show ip rip database vrf vrf1
Codes: R - RIP, Rc - RIP connected, Rs - RIP static, K - Kernel,
C - Connected, S - Static, O - OSPF, I - IS-IS, B - BGP
Network Next Hop Metric From If Time
Rc 2.2.2.0/24 1 eth1
 
Last modified date: 07-13-2023