R H C
TECHNOLOGIES
VRF Case Studies 

Prepared By
Sai Linn Thu
© www.rhctechnologies.com
R H C
TECHNOLOGIES
© www.rhctechnologies.com
VRFBLUE
VRFGREEN
VRFORANGE
Global
Virtual Routing & Forwarding
R H C
TECHNOLOGIES
© www.rhctechnologies.com
VRFBLUE
VRFGREEN
VRFORANGE
Global
Virtual Routing & Forwarding
1.1.1.0/24
2.2.2.0/24
3.3.3.0/24
4.4.4.0/24
10.10.10.0/24
172.16.10.0/24
192.168.30.0/24
203.81.40.0/24
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Create VRF Configuration
VRFBLUE
VRFGREEN
VRFORANGE
Global
1.1.1.0/24
2.2.2.0/24
3.3.3.0/24
4.4.4.0/24
10.10.10.0/24
172.16.10.0/24
192.168.30.0/24
203.81.40.0/24
configure terminal
ip vrf blue
ip vrf green
ip vrf orange
R H C
TECHNOLOGIES
© www.rhctechnologies.com
VRF aware RIP Configuration
VRFBLUE
VRFGREEN
VRFORANGE
Global
1.1.1.0/24
2.2.2.0/24
3.3.3.0/24
4.4.4.0/24
10.10.10.0/24
172.16.10.0/24
192.168.30.0/24
203.81.40.0/24
router rip
version 2
network 4.4.4.0
network 203.81.40.0
no auto-summary
!
router rip
!
address-family ipv4 vrf blue
version 2
network 1.1.1.0
network 10.10.10.0
no auto-summary
exit-address-family
!
R H C
TECHNOLOGIES
© www.rhctechnologies.com
VRF aware EIGRP Configuration
VRFBLUE
VRFGREEN
VRFORANGE
Global
1.1.1.0/24
2.2.2.0/24
3.3.3.0/24
4.4.4.0/24
10.10.10.0/24
172.16.10.0/24
192.168.30.0/24
203.81.40.0/24
router eigrp 10
network 4.4.4.0 0.0.0.255
network 203.81.40.0 0.0.0.255
no auto-summary
!
router eigrp 10
!
address-family ipv4 vrf green autonomous-system 10 
network 2.2.2.0 0.0.0.255
network 172.16.10.0 0.0.0.255
no auto-summary
exit-address-family
!
R H C
TECHNOLOGIES
© www.rhctechnologies.com
VRF aware OSPF Configuration
VRFBLUE
VRFGREEN
VRFORANGE
Global
1.1.1.0/24
2.2.2.0/24
3.3.3.0/24
4.4.4.0/24
10.10.10.0/24
172.16.10.0/24
192.168.30.0/24
203.81.40.0/24
router ospf 1
network 4.4.4.0 0.0.0.255 area 1
network 203.81.40.0 0.0.0.255 area 0
!
router ospf 2 vrf orange
network 3.3.3.0 0.0.0.255 area 1
network 192.168.30.0 0.0.0.255 area 0
exit-address-family
!
R H C
TECHNOLOGIES
VRF aware Static Route
© www.rhctechnologies.com
R H C
TECHNOLOGIES
© www.rhctechnologies.com
VRF aware Static Route Configuration
VRF
VRF
VRF
Global
1.1.1.1/24
2.2.2.2/24
3.3.3.3/24
4.4.4.4/24
10.10.10.0/24
172.16.10.0/24
192.168.30.0/24
203.81.40.0/24
VRF
VRF
VRF
Global
100.100.100.100/24
200.200.200.200/24
30.30.30.30/24
40.40.40.40/24
f1/0
f2/0
f3/0
f4/0
f1/0
f2/0
f3/0
f4/0
lo0
lo1
lo2
lo3
lo0
lo1
lo2
lo3
R1
 R2
configure terminal
ip vrf blue
!
configure terminal
ip vrf blue
!
Step 1 - Create VRF ( blue )
R1
 R2
R H C
TECHNOLOGIES
© www.rhctechnologies.com
VRF aware Static Route Configuration
VRF
VRF
VRF
Global
1.1.1.0/24
2.2.2.0/24
3.3.3.0/24
4.4.4.0/24
10.10.10.0/24
172.16.10.0/24
192.168.30.0/24
203.81.40.0/24
VRF
VRF
VRF
Global
100.100.100.0/24
200.200.200.0/24
30.30.30.0/24
40.40.40.0/24
f1/0
f2/0
f3/0
f4/0
f1/0
f2/0
f3/0
f4/0
lo0
lo1
lo2
lo3
lo0
lo1
lo2
lo3
R1
 R2
int f1/0
ip vrf forwarding blue
ip address 10.10.10.1 255.255.255.0
!
int lo0
ip vrf forwarding blue
ip address 1.1.1.1 255.255.255.0
!
int f1/0
ip vrf forwarding blue
ip address 10.10.10.2 255.255.255.0
!
int lo0
ip vrf forwarding blue
ip address 100.100.100.100 255.255.255.0
!
Step 2 – Associate Interfaces into VRF ( blue )
R1
 R2
R H C
TECHNOLOGIES
© www.rhctechnologies.com
VRF aware Static Route Configuration
VRF
VRF
VRF
Global
1.1.1.0/24
2.2.2.0/24
3.3.3.0/24
4.4.4.0/24
10.10.10.0/24
172.16.10.0/24
192.168.30.0/24
203.81.40.0/24
VRF
VRF
VRF
Global
100.100.100.0/24
200.200.200.0/24
30.30.30.0/24
40.40.40.0/24
f1/0
f2/0
f3/0
f4/0
f1/0
f2/0
f3/0
f4/0
lo0
lo1
lo2
lo3
lo0
lo1
lo2
lo3
R1
 R2
ip route vrf blue 100.100.100.0 255.255.255.0 10.10.10.2
 ip route vrf blue 1.1.1.0 255.255.255.0 10.10.10.1
Step 3 – Configure Static Route aware VRF ( blue )
R1
 R2
R H C
TECHNOLOGIES
Global Routing ( BGP )
© www.rhctechnologies.com
R H C
TECHNOLOGIES
© www.rhctechnologies.com
VRF
VRF
VRF
Global
1.1.1.1/24
2.2.2.2/24
3.3.3.3/24
4.4.4.4/24
10.10.10.0/24
172.16.10.0/24
192.168.30.0/24
203.81.40.0/24
VRF
VRF
VRF
Global
100.100.100.100/24
200.200.200.200/24
30.30.30.30/24
40.40.40.40/24
f1/0
f2/0
f3/0
f4/0
f1/0

f2/0
f3/0
f4/0
lo0
lo1
lo2
lo3
lo0
lo1
lo2
lo3
R1
 R2
configure terminal
hostname R1
!
configure terminal
hostname R2
!
Step 1 – NO VRF Creation required
R1
 R2
R H C
TECHNOLOGIES
© www.rhctechnologies.com
VRF
VRF
VRF
Global
1.1.1.1/24
2.2.2.2/24
3.3.3.3/24
4.4.4.4/24
10.10.10.0/24
172.16.10.0/24
192.168.30.0/24
203.81.40.0/24
VRF
VRF
VRF
Global
100.100.100.100/24
200.200.200.200/24
30.30.30.30/24
40.40.40.40/24
lo0
lo1
lo2
lo3
lo0
lo1
lo2
lo3
R1
 R2
int f4/0
ip address 203.81.40.1 255.255.255.0
!
int lo3
ip address 4.4.4.4 255.255.255.0
!
int f4/0
ip address 203.81.40.2 255.255.255.0
!
int lo3
ip address 40.40.40.40 255.255.255.0
!
Step 2 – Interface IP Configuration
R1
 R2
f1/0
f2/0
f3/0
f4/0
f1/0
f2/0
f3/0
f4/0
R H C
TECHNOLOGIES
© www.rhctechnologies.com
VRF
VRF
VRF
Global
1.1.1.1/24
2.2.2.2/24
3.3.3.3/24
4.4.4.4/24
10.10.10.0/24
172.16.10.0/24
192.168.30.0/24
203.81.40.0/24
VRF
VRF
VRF
Global
100.100.100.100/24
200.200.200.200/24
30.30.30.30/24
40.40.40.40/24
lo0
lo1
lo2
lo3
lo0
lo1
lo2
lo3
R1
 R2
router bgp 12
neighbor 203.81.40.2 remote-as 12
network 4.4.4.0 mask 255.255.255.0
!
router bgp 12
neighbor 203.81.40.1 remote-as 12
network 40.40.40.0 mask 255.255.255.0
!
Step 3 – Configure BGP
R1
 R2
f1/0
f2/0
f3/0
f4/0
f1/0
f2/0
f3/0
f4/0
R H C
TECHNOLOGIES
VRF aware BGP
© www.rhctechnologies.com
R H C
TECHNOLOGIES
© www.rhctechnologies.com
VRF aware BGP Route Configuration
VRF
VRF
VRF
Global
1.1.1.1/24
2.2.2.2/24
3.3.3.3/24
4.4.4.4/24
10.10.10.0/24
172.16.10.0/24
192.168.30.0/24
203.81.40.0/24
VRF
VRF
VRF
Global
100.100.100.100/24
200.200.200.200/24
30.30.30.30/24
40.40.40.40/24
lo0
lo1
lo2
lo3
lo0
lo1
lo2
lo3
R1
 R2
configure terminal
ip vrf green
!
configure terminal
ip vrf green
!
Step 1 - Create VRF ( green )
R1
 R2
f1/0
f2/0
f3/0
f4/0
f1/0
f2/0
f3/0
f4/0
R H C
TECHNOLOGIES
© www.rhctechnologies.com
VRF aware BGP Route Configuration
VRF
VRF
VRF
Global
1.1.1.1/24
2.2.2.2/24
3.3.3.3/24
4.4.4.4/24
10.10.10.0/24
172.16.10.0/24
192.168.30.0/24
203.81.40.0/24
VRF
VRF
VRF
Global
100.100.100.100/24
200.200.200.200/24
30.30.30.30/24
40.40.40.40/24
lo0
lo1
lo2
lo3
lo0
lo1
lo2
lo3
R1
 R2
int f2/0
ip vrf forwarding green
ip address 172.16.10.1 255.255.255.0
!
int lo1
ip vrf forwarding green
ip address 2.2.2.2 255.255.255.0
!
int f2/0
ip vrf forwarding green
ip address 172.16.10.2 255.255.255.0
!
int lo1
ip vrf forwarding green
ip address 200.200.200.200 255.255.255.0
!
Step 2 - Associate Interfaces into VRF ( green )
R1
 R2
f1/0
f2/0
f3/0
f4/0
f1/0
f2/0
f3/0
f4/0
R H C
TECHNOLOGIES
© www.rhctechnologies.com
VRF aware BGP Route Configuration
VRF
VRF
VRF
Global
1.1.1.1/24
2.2.2.2/24
3.3.3.3/24
4.4.4.4/24
10.10.10.0/24
172.16.10.0/24
192.168.30.0/24
203.81.40.0/24
VRF
VRF
VRF
Global
100.100.100.100/24
200.200.200.200/24
30.30.30.30/24
40.40.40.40/24
lo0
lo1
lo2
lo3
lo0
lo1
lo2
lo3
R1
 R2
router bgp 12
address-family ipv4 vrf green
neighbor 172.16.10.2 remote-as 12
neighbor 172.16.10.2 activate
network 2.2.2.0 mask 255.255.255.0
exit-address-family
!
router bgp 12
address-family ipv4 vrf green
neighbor 172.16.10.1 remote-as 12
neighbor 172.16.10.1 activate
network 200.200.200.0 mask 255.255.255.0
exit-address-family
!
Step 3 – Configure BGP aware VRF ( green )
R1
 R2
f1/0
f2/0
f3/0
f4/0
f1/0
f2/0
f3/0
f4/0
R H C
TECHNOLOGIES
VRF-Lite Tunnel + VRF aware BGP/OSPF
Case Study
© www.rhctechnologies.com
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Global
4.4.4.4/24
 203.81.40.0/24
Global
40.40.40.40/24
f1/0
 f1/0
lo0
 lo0
R1
 R2
int f1/0
ip address 203.81.40.1 255.255.255.0
!
int lo0
ip address 4.4.4.4 255.255.255.0
!
int f1/0
ip address 203.81.40.2 255.255.255.0
!
int lo0
ip address 40.40.40.40 255.255.255.0
!
R1
 R2
Tunnel 12
150.1.1.0/24
lo1
lo1
 RHCYGN
 RHCYGN
RHCSG
RHCSG
 lo2
lo2
Tunnel 85
200.1.1.0/24
1.1.1.1/24
 2.2.2.2/24
11.11.11.11/24
 22.22.22.22/24
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Global
4.4.4.4/24
 203.81.40.0/24
Global
40.40.40.40/24
f1/0
 f1/0
lo0
 lo0
R1
 R2
router bgp 12
neighbor 203.81.40.2 remote-as 12
network 4.4.4.0 mask 255.255.255.0
!
router bgp 12
neighbor 203.81.40.1 remote-as 12
network 40.40.40.0 mask 255.255.255.0
!
R1
 R2
Tunnel 12
150.1.1.0/24
lo1
lo1
 RHCYGN
 RHCYGN
RHCSG
RHCSG
 lo2
lo2
Tunnel 85
200.1.1.0/24
1.1.1.1/24
 2.2.2.2/24
11.11.11.11/24
 22.22.22.22/24
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Global
4.4.4.4/24
 203.81.40.0/24
Global
40.40.40.40/24
f1/0
 f1/0
lo0
 lo0
R1
 R2
configure terminal
ip vrf RHCYGN
!
configure terminal
ip vrf RHCYGN
!
R1
 R2
Tunnel 12
150.1.1.0/24
lo1
lo1
 RHCYGN
 RHCYGN
RHCSG
RHCSG
 lo2
lo2
Tunnel 85
200.1.1.0/24
1.1.1.1/24
 2.2.2.2/24
11.11.11.11/24
 22.22.22.22/24
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Global
4.4.4.4/24
 203.81.40.0/24
Global
40.40.40.40/24
f1/0
 f1/0
lo0
 lo0
R1
 R2
interface tunnel 12
ip vrf forwarding RHCYGN

ip address 150.1.1.1 255.255.255.0
tunnel source 203.81.40.1
tunnel destination 203.81.40.2
!
int lo1
ip vrf forwarding RHCYGN
ip address 1.1.1.1 255.255.255.0
!
interface tunnel 12
ip vrf forwarding RHCYGN

ip address 150.1.1.2 255.255.255.0
tunnel source 203.81.40.2
tunnel destination 203.81.40.1
!
int lo1
ip vrf forwarding RHCYGN
ip address 2.2.2.2 255.255.255.0
!
R1
 R2
Tunnel 12
150.1.1.0/24
lo1
lo1
 RHCYGN
 RHCYGN
RHCSG
RHCSG
 lo2
lo2
Tunnel 85
200.1.1.0/24
1.1.1.1/24
 2.2.2.2/24
11.11.11.11/24
 22.22.22.22/24
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Global
4.4.4.4/24
 203.81.40.0/24
Global
40.40.40.40/24
f1/0
 f1/0
lo0
 lo0
R1
 R2
router bgp 12
address-family ipv4 vrf RHCYGN
neighbor 150.1.1.2 remote-as 12
neighbor 150.1.1.2 activate
network 1.1.1.0 mask 255.255.255.0
exit-address-family
!
router bgp 12
address-family ipv4 vrf RHCYGN
neighbor 150.1.1.1 remote-as 12
neighbor 150.1.1.1 activate
network 2.2.2.0 mask 255.255.255.0
exit-address-family
!
R1
 R2
Tunnel 12
150.1.1.0/24
lo1
lo1
 RHCYGN
 RHCYGN
RHCSG
RHCSG
 lo2
lo2
Tunnel 85
200.1.1.0/24
1.1.1.1/24
 2.2.2.2/24
11.11.11.11/24
 22.22.22.22/24
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Global
4.4.4.4/24
 203.81.40.0/24
Global
40.40.40.40/24
f1/0
 f1/0
lo0
 lo0
R1
 R2
configure terminal
ip vrf RHCSG
!
configure terminal
ip vrf RHCSG
!
R1
 R2
Tunnel 12
150.1.1.0/24
lo1
lo1
 RHCYGN
 RHCYGN
RHCSG
RHCSG
 lo2
lo2
Tunnel 85
200.1.1.0/24
1.1.1.1/24
 2.2.2.2/24
11.11.11.11/24
 22.22.22.22/24
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Global
4.4.4.4/24
 203.81.40.0/24
Global
40.40.40.40/24
f1/0
 f1/0
lo0
 lo0
R1
 R2
interface tunnel 85
ip vrf forwarding RHCSG
ip address 200.1.1.1 255.255.255.0
tunnel source 203.81.40.1
tunnel destination 203.81.40.2
!
int lo2
ip vrf forwarding RHCSG
ip address 11.11.11.11 255.255.255.0
!
interface tunnel 85
ip vrf forwarding RHCSG
ip address 200.1.1.2 255.255.255.0
tunnel source 203.81.40.2
tunnel destination 203.81.40.1
!
int lo2
ip vrf forwarding RHCSG
ip address 22.22.22.22 255.255.255.0
!
R1
 R2
Tunnel 12
150.1.1.0/24
lo1
lo1
 RHCYGN
 RHCYGN
RHCSG
RHCSG
 lo2
lo2
Tunnel 85
200.1.1.0/24
1.1.1.1/24
 2.2.2.2/24
11.11.11.11/24
 22.22.22.22/24
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Global
4.4.4.4/24
 203.81.40.0/24
Global
40.40.40.40/24
f1/0
 f1/0
lo0
 lo0
R1
 R2
router ospf 1 vrf RHCSG
network 200.1.1.0 0.0.0.255 area 0
network 11.11.11.0 0.0.0.255 area 0
exit-address-family
!
router ospf 1 vrf RHCSG
network 200.1.1.0 0.0.0.255 area 0
network 22.22.22.0 0.0.0.255 area 0
exit-address-family
!
R1
 R2
Tunnel 12
150.1.1.0/24
lo1
lo1
 RHCYGN
 RHCYGN
RHCSG
RHCSG
 lo2
lo2
Tunnel 85
200.1.1.0/24
1.1.1.1/24
 2.2.2.2/24
11.11.11.11/24
 22.22.22.22/24
R H C
TECHNOLOGIES
VRF-Lite 802.1Q Sub-Interface
Case Study
© www.rhctechnologies.com
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Global
 Global
f1/0
 f1/0
R1
 R2
configure terminal
ip vrf RHCYGN
!
configure terminal
ip vrf RHCYGN
!
R1
 R2

150.1.1.0/24
lo1
lo1
 RHCYGN
 RHCYGN
RHCSG
RHCSG
 lo2
lo2
200.1.1.0/24
1.1.1.1/24
 2.2.2.2/24
11.11.11.11/24
 22.22.22.22/24
f1/0.10
 f1/0.10
f1/0.20
 f1/0.20
encapsulation dot1Q 10
encapsulation dot1Q 20
encapsulation dot1Q <1-4094>
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Global
 Global
f1/0
 F1/0
R1
 R2
interface f1/0
no shutdown
!
Interface 1/0.10
encapsulation dot1Q 10
ip vrf forwarding RHCYGN
ip address 150.1.1.1 255.255.255.0
!
int lo1
ip vrf forwarding RHCYGN
ip address 1.1.1.1 255.255.255.0
!
interface f1/0
no shutdown
!
Interface 1/1.10
encapsulation dot1Q 10
ip vrf forwarding RHCYGN
ip address 150.1.1.2 255.255.255.0
!
int lo1
ip vrf forwarding RHCYGN
ip address 2.2.2.2 255.255.255.0
!
R1
 R2

150.1.1.0/24
lo1
lo1
 RHCYGN
 RHCYGN
RHCSG
RHCSG
 lo2
lo2
200.1.1.0/24
1.1.1.1/24
 2.2.2.2/24
11.11.11.11/24
 22.22.22.22/24
f1/0.10
 F1/0.10
f1/0.20
 F1/0.20
encapsulation dot1Q 10
encapsulation dot1Q 20
encapsulation dot1Q <1-4094>
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Global
 Global
f1/0
 F1/0
R1
 R2
router bgp 12
bgp router-id 100.100.100.100
address-family ipv4 vrf RHCYGN
neighbor 150.1.1.2 remote-as 12
neighbor 150.1.1.2 activate
network 1.1.1.0 mask 255.255.255.0
exit-address-family
!
router bgp 12
bgp router-id 200.200.200.200
address-family ipv4 vrf RHCYGN
neighbor 150.1.1.1 remote-as 12
neighbor 150.1.1.1 activate
network 2.2.2.0 mask 255.255.255.0
exit-address-family
!
R1
 R2

150.1.1.0/24
lo1
lo1
 RHCYGN
 RHCYGN
RHCSG
RHCSG
 lo2
lo2
200.1.1.0/24
1.1.1.1/24
 2.2.2.2/24
11.11.11.11/24
 22.22.22.22/24
F1/0.10
 F1/0.10
f1/0.20
 F1/0.20
encapsulation dot1Q 10
encapsulation dot1Q 20
encapsulation dot1Q <1-4094>
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Global
 Global
f1/0
 F1/0
R1
 R2
configure terminal
ip vrf RHCSG
!
configure terminal
ip vrf RHCSG
!
R1
 R2

150.1.1.0/24
lo1
lo1
 RHCYGN
 RHCYGN
RHCSG
RHCSG
 lo2
lo2
200.1.1.0/24
1.1.1.1/24
 2.2.2.2/24
11.11.11.11/24
 22.22.22.22/24
f1/0.10
 f1/0.10
f1/0.20
 F1/0.20
encapsulation dot1Q 10
encapsulation dot1Q 20
encapsulation dot1Q <1-4094>
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Global
 Global
f1/0
 f1/0
R1
 R2
interface f1/0
no shutdown
!
interface 1/0.20
encapsulation dot1Q 20
ip vrf forwarding RHCSG
ip address 200.1.1.1 255.255.255.0
!
int lo2
ip vrf forwarding RHCSG
ip address 11.11.11.11 255.255.255.0
!
interface f1/0
no shutdown
!
interface 1/0.20
encapsulation dot1Q 20
ip vrf forwarding RHCSG
ip address 200.1.1.2 255.255.255.0
!
int lo2
ip vrf forwarding RHCSG
ip address 22.22.22.22 255.255.255.0
!
R1
 R2

150.1.1.0/24
lo1
lo1
 RHCYGN
 RHCYGN
RHCSG
RHCSG
 lo2
lo2
200.1.1.0/24
1.1.1.1/24
 2.2.2.2/24
11.11.11.11/24
 22.22.22.22/24
f1/0.10
 F1/0.10
f1/0.20
 f1/0.20
encapsulation dot1Q 10
encapsulation dot1Q 20
encapsulation dot1Q <1-4094>
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Global
 Global
f3/0
 f3/1
R1
 R2
router ospf 1 vrf RHCSG
network 200.1.1.0 0.0.0.255 area 0
network 11.11.11.0 0.0.0.255 area 0
exit-address-family
!
router ospf 1 vrf RHCSG
network 200.1.1.0 0.0.0.255 area 0
network 22.22.22.0 0.0.0.255 area 0
exit-address-family
!
R1
 R2

150.1.1.0/24
lo1
lo1
 RHCYGN
 RHCYGN
RHCSG
RHCSG
 lo2
lo2
200.1.1.0/24
1.1.1.1/24
 2.2.2.2/24
11.11.11.11/24
 22.22.22.22/24
f3/0.10
 f3/1.10
f3/0.20
 f3/1.20
encapsulation dot1Q 10
encapsulation dot1Q 20
encapsulation dot1Q <1-4094>
R H C
TECHNOLOGIES
VRF Case Study 01 

Prepared By
Sai Linn Thu
© www.rhctechnologies.com
R H C
TECHNOLOGIES
R2
© www.rhctechnologies.com
R3
R1
R4
R5
VRF Blue
VRF Green
EIGRP 10
OSPF 8
10.1.12.x/30
10.1.12.x/30
192.1.13.x/29
192.1.13.x/29
172.16.14.x/29
172.16.14.x/29
150.15.15.x/29
150.15.15.x/29
lo0 - 4.4.4.4/24
 lo1 - 44.44.44.44/24
lo0 - 5.5.5.5/24
 lo1 - 55.55.55.55/24
lo1 - 22.22.22.22/24
lo0 - 2.2.2.2/24
lo1 - 33.33.33.33/24
lo0 - 3.3.3.3/24
f0/0
 f0/1
f1/0
f1/1
f2/0
f2/1
f3/0
 f3/1
f0/0
 f1/0
f0/0
 f1/0
f0/0
f1/0
f1/0
f0/0
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Step 1 – Create VRF

R1
configure terminal
ip vrf green
ip vrf blue
!

R2
configure terminal
ip vrf green
ip vrf blue
!

R3
configure terminal
ip vrf green
ip vrf blue
!


R4
configure terminal
ip vrf green
ip vrf blue
!

R5
configure terminal
ip vrf green
ip vrf blue
!
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Step 2 – Associates interface into VRF (R1)

 
R1
configure terminal
interface f0/0
ip vrf forwarding green
ip address 172.16.14.1 255.255.255.248
!
interface 1/1
ip vrf forwarding green
ip address 10.1.12.1 255.255.255.252
!
interface 2/1
ip vrf forwarding green
ip address 192.1.13.1 255.255.255.248
!
interface 3/0
ip vrf forwarding green
ip address 150.15.15.1 255.255.255.248
!

 
R1
configure terminal
interface f0/1
ip vrf forwarding blue
ip address 172.16.14.1 255.255.255.248
!
interface 1/0
ip vrf forwarding blue
ip address 10.1.12.1 255.255.255.252
!
interface 2/0
ip vrf forwarding blue
ip address 192.1.13.1 255.255.255.248
!
interface 3/1
ip vrf forwarding blue
ip address 150.15.15.1 255.255.255.248
!
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Step 2 – Associates interface into VRF (R2)

 
R2
configure terminal
interface f1/0
ip vrf forwarding green
ip address 10.1.12.2 255.255.255.252
!
interface loopback 0
ip vrf forwarding green
ip address 2.2.2.2 255.255.255.0
!

 
R2
configure terminal
interface f0/0
ip vrf forwarding blue
ip address 10.1.12.2 255.255.255.252
!
interface loopback 1
ip vrf forwarding blue
ip address 22.22.22.22 255.255.255.0
!
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Step 2 – Associates interface into VRF (R3)

 
R3
configure terminal
interface f1/0
ip vrf forwarding green
ip address 192.1.13.2 255.255.255.248
!
interface loopback 0
ip vrf forwarding green
ip address 3.3.3.3 255.255.255.0
!

 
R3
configure terminal
interface f0/0
ip vrf forwarding blue
ip address 192.1.13.2 255.255.255.248
!
interface loopback 1
ip vrf forwarding blue
ip address 33.33.33.33 255.255.255.0
!
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Step 2 – Associates interface into VRF (R4)

 
R4
configure terminal
interface f0/0
ip vrf forwarding green
ip address 172.16.14.2 255.255.255.248
!
interface loopback 0
ip vrf forwarding green
ip address 4.4.4.4 255.255.255.0
!

 
R4
configure terminal
interface f1/0
ip vrf forwarding blue
ip address 172.16.14.2 255.255.255.248
!
interface loopback 1
ip vrf forwarding blue
ip address 44.44.44.44 255.255.255.0
!
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Step 2 – Associates interface into VRF (R5)

 
R5
configure terminal
interface f0/0
ip vrf forwarding green
ip address 150.15.15.2 255.255.255.248
!
interface loopback 0
ip vrf forwarding green
ip address 5.5.5.5 255.255.255.0
!

 
R5
configure terminal
interface f1/0
ip vrf forwarding blue
ip address 150.15.15.2 255.255.255.248
!
interface loopback 1
ip vrf forwarding blue
ip address 55.55.55.55 255.255.255.0
!
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Step 3 – Configure OSPF aware VRF ( vrf green )

 
R1
configure terminal
router ospf 8 vrf green
network 10.1.12.0 0.0.0.3 area 0
network 172.16.14.0 0.0.0.7 area 0
network 192.1.13.0 0.0.0.7 area 0
network 150.15.15.0 0.0.0.7 area 0
!

 
R2
configure terminal
router ospf 8 vrf green
network 10.1.12.0 0.0.0.3 area 0
network 2.2.2.0 0.0.0.255 area 0
!

 
R3
configure terminal
router ospf 8 vrf green
network 192.1.13.0 0.0.0.7 area 0
network 3.3.3.0 0.0.0.255 area 0
!

 
R4
configure terminal
router ospf 8 vrf green
network 172.16.14.0 0.0.0.7 area 0
network 4.4.4.0 0.0.0.255 area 0
!

 
R5
configure terminal
router ospf 8 vrf green
network 150.15.15.0 0.0.0.7 area 0
network 5.5.5.0 0.0.0.255 area 0
!
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Step 3 – Configure EIGRP aware VRF ( vrf blue )

 
R1
router eigrp 10
address-family ipv4 vrf blue
network 10.1.12.0 0.0.0.3
network 172.16.14.0 0.0.0.7
network 192.1.13.0 0.0.0.7
network 150.15.15.0 0.0.0.7
autonomous-system 10 
no auto-summary
!

 
R2
router eigrp 10
address-family ipv4 vrf blue
network 10.1.12.0 0.0.0.3
network 22.22.22.0 0.0.0.255
autonomous-system 10
no auto-summary
!

 
R3
router eigrp 10
address-family ipv4 vrf blue autonomous-system 10 
network 172.16.14.0 0.0.0.7
network 33.33.33.0 0.0.0.255
no auto-summary
!

 
R4
router eigrp 10
address-family ipv4 vrf blue autonomous-system 10 
network 172.16.14.0 0.0.0.7
network 44.44.44.0 0.0.0.255
no auto-summary
!

 
R5
router eigrp 10
address-family ipv4 vrf blue autonomous-system 10
network 150.15.15.0 0.0.0.7
network 55.55.55.0 0.0.0.255
no auto-summary
!
R H C
TECHNOLOGIES
© www.rhctechnologies.com
Verification
#show ip vrf
#show ip route vrf *
#show ip route vrf green
#show ip route vrf blue
#ping vrf green x.x.x.x
#ping vrf blue x.x.x.x
R H C
TECHNOLOGIES
VRF Case Study 02 

Prepared By
Sai Linn Thu
© www.rhctechnologies.com
R H C
TECHNOLOGIES
© www.rhctechnologies.com
CR01
 CR02
Access 01
DS01
 DS02
Access 02
 Access 04
DS01
 DS02
Access 03
VRFBlue
VRFRed
EIGRP 10
OSPF 8
R H C
TECHNOLOGIES
VRF Case Study 03 

Prepared By
Sai Linn Thu
© www.rhctechnologies.com
R H C
TECHNOLOGIES
CSW 01
CSW 02
CSW 03
CSW 04
ASW
01
ASW
02
ASW
03
ASW
04
© www.rhctechnologies.com
© www.rhctechnologies.com
R H C
TECHNOLOGIES
RHC Technologies
#LIKE #FOLLOW #WATCH

More Related Content

PPTX
Advance Peripheral Bus
PPT
Mpls Services
PPT
3 g signaling_trace_and_analysis
PPTX
Differences of the Cisco Operating Systems
PPTX
AMBA Ahb 2.0
PDF
MPLS - Multiprotocol Label Switching
PPTX
Routing Information Protocol
Advance Peripheral Bus
Mpls Services
3 g signaling_trace_and_analysis
Differences of the Cisco Operating Systems
AMBA Ahb 2.0
MPLS - Multiprotocol Label Switching
Routing Information Protocol

What's hot (20)

PPTX
Introduction to 4G Network
PPTX
Mpls technology
PDF
MPLS Traffic Engineering
PPT
PDF
LONG HAUL MULTI-GIGABIT MICROWAVE: A NEW APPROACH
PDF
Ccna rse dynamic routing
PDF
PPSX
OSPF - Routing Protocol
PPTX
Link Aggregation Control Protocol
PDF
Cisco ospf
PPT
How PSTN phone works?
PPTX
Ambha axi
PPTX
Csfb (circuit switch fall back)
ODP
UMTS, Introduction.
PDF
Cell Planning
PDF
AMBA AHB Protocols
PPTX
Introduction to LTE
PPTX
5G NR System Information
PDF
1.oeo000030 lte access fault diagnsis issue1
Introduction to 4G Network
Mpls technology
MPLS Traffic Engineering
LONG HAUL MULTI-GIGABIT MICROWAVE: A NEW APPROACH
Ccna rse dynamic routing
OSPF - Routing Protocol
Link Aggregation Control Protocol
Cisco ospf
How PSTN phone works?
Ambha axi
Csfb (circuit switch fall back)
UMTS, Introduction.
Cell Planning
AMBA AHB Protocols
Introduction to LTE
5G NR System Information
1.oeo000030 lte access fault diagnsis issue1
Ad

Viewers also liked (20)

PDF
BGP Route Aggregation Lab WorkBook
PDF
Introduction to VRF
PDF
Variable refrigerant flow systems
PDF
VRF system presentation !
PDF
IS-IS Routing Lab WorkBook
PDF
BGP Route Reflectors Lab WorkBook
PDF
IPv6 Basics
PDF
DMVPN Lab WorkBook
PDF
Comparison between vrv vrf brands &amp; suppliers @ uae market-July 2017-by g...
PPTX
VRF Systems comaprison
PDF
Cisco ASA Firewall Lab WorkBook
PDF
samsung vrf dvm s 2013 sac catalouge
PPTX
Air conditioning system
PDF
PM-VRV10YR - 10yrs of VRV in North America (08-15)
PDF
EIGRP NXOS vs IOS Differences
PPT
Zone Based Policy Firewall
PDF
Climatizacion airescrollchiller_TRANE
PDF
designofa12kwaircooledwaterchillerwithdrawings
PDF
10 years of Scroll Digital
PDF
Catalogue fujitsu vrf
BGP Route Aggregation Lab WorkBook
Introduction to VRF
Variable refrigerant flow systems
VRF system presentation !
IS-IS Routing Lab WorkBook
BGP Route Reflectors Lab WorkBook
IPv6 Basics
DMVPN Lab WorkBook
Comparison between vrv vrf brands &amp; suppliers @ uae market-July 2017-by g...
VRF Systems comaprison
Cisco ASA Firewall Lab WorkBook
samsung vrf dvm s 2013 sac catalouge
Air conditioning system
PM-VRV10YR - 10yrs of VRV in North America (08-15)
EIGRP NXOS vs IOS Differences
Zone Based Policy Firewall
Climatizacion airescrollchiller_TRANE
designofa12kwaircooledwaterchillerwithdrawings
10 years of Scroll Digital
Catalogue fujitsu vrf
Ad

Similar to VRF Lab WorkBook (20)

PDF
VRF Configuration
PDF
BRKCRT-2601.pdf
PDF
Intrdouction to VRF Implementation.pdf
PDF
CCNA300-201Day+54+(part+3)+Slides+-+VRF.pdf
PPTX
Virtual Routing and Forwarding, (VRF-lite)
DOCX
Mpls layer 3 vp ns
PDF
VRF (virtual routing and forwarding)
PDF
Mpls vpn.rip
PDF
Per VRF tunnel Seclection IOS-XR
DOCX
Network virtualization beyond vla ns-part2
PPTX
Operationalizing VRF in the Data Center
PDF
Mpls22 sg vol.2 MADE IN INDIA
PPTX
Mikrotik link redundancy solution
PDF
Inter as vpn option c
PDF
Cloud Monitors Cloud
PPTX
Demystifying Networking Webinar Series- Routing on the Host
PPTX
Multiprotocol label switching (mpls) - Networkshop44
PDF
Practice Lab CSC
PDF
Dynamic Routing with FRR - pfSense Hangout December 2017
PDF
Fun with PRB, VRFs and NetNS on Linux - What is it, how does it work, what ca...
VRF Configuration
BRKCRT-2601.pdf
Intrdouction to VRF Implementation.pdf
CCNA300-201Day+54+(part+3)+Slides+-+VRF.pdf
Virtual Routing and Forwarding, (VRF-lite)
Mpls layer 3 vp ns
VRF (virtual routing and forwarding)
Mpls vpn.rip
Per VRF tunnel Seclection IOS-XR
Network virtualization beyond vla ns-part2
Operationalizing VRF in the Data Center
Mpls22 sg vol.2 MADE IN INDIA
Mikrotik link redundancy solution
Inter as vpn option c
Cloud Monitors Cloud
Demystifying Networking Webinar Series- Routing on the Host
Multiprotocol label switching (mpls) - Networkshop44
Practice Lab CSC
Dynamic Routing with FRR - pfSense Hangout December 2017
Fun with PRB, VRFs and NetNS on Linux - What is it, how does it work, what ca...

Recently uploaded (20)

PDF
CloudStack 4.21: First Look Webinar slides
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
Web Crawler for Trend Tracking Gen Z Insights.pptx
PPT
What is a Computer? Input Devices /output devices
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Getting Started with Data Integration: FME Form 101
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
Unlock new opportunities with location data.pdf
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Architecture types and enterprise applications.pdf
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PPTX
observCloud-Native Containerability and monitoring.pptx
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
sustainability-14-14877-v2.pddhzftheheeeee
CloudStack 4.21: First Look Webinar slides
Taming the Chaos: How to Turn Unstructured Data into Decisions
Hindi spoken digit analysis for native and non-native speakers
Web Crawler for Trend Tracking Gen Z Insights.pptx
What is a Computer? Input Devices /output devices
A review of recent deep learning applications in wood surface defect identifi...
WOOl fibre morphology and structure.pdf for textiles
Getting Started with Data Integration: FME Form 101
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Benefits of Physical activity for teenagers.pptx
Unlock new opportunities with location data.pdf
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Architecture types and enterprise applications.pdf
Module 1.ppt Iot fundamentals and Architecture
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
observCloud-Native Containerability and monitoring.pptx
Final SEM Unit 1 for mit wpu at pune .pptx
Getting started with AI Agents and Multi-Agent Systems
NewMind AI Weekly Chronicles – August ’25 Week III
sustainability-14-14877-v2.pddhzftheheeeee

VRF Lab WorkBook

  • 1. R H C TECHNOLOGIES VRF Case Studies Prepared By Sai Linn Thu © www.rhctechnologies.com
  • 2. R H C TECHNOLOGIES © www.rhctechnologies.com VRFBLUE VRFGREEN VRFORANGE Global Virtual Routing & Forwarding
  • 3. R H C TECHNOLOGIES © www.rhctechnologies.com VRFBLUE VRFGREEN VRFORANGE Global Virtual Routing & Forwarding 1.1.1.0/24 2.2.2.0/24 3.3.3.0/24 4.4.4.0/24 10.10.10.0/24 172.16.10.0/24 192.168.30.0/24 203.81.40.0/24
  • 4. R H C TECHNOLOGIES © www.rhctechnologies.com Create VRF Configuration VRFBLUE VRFGREEN VRFORANGE Global 1.1.1.0/24 2.2.2.0/24 3.3.3.0/24 4.4.4.0/24 10.10.10.0/24 172.16.10.0/24 192.168.30.0/24 203.81.40.0/24 configure terminal ip vrf blue ip vrf green ip vrf orange
  • 5. R H C TECHNOLOGIES © www.rhctechnologies.com VRF aware RIP Configuration VRFBLUE VRFGREEN VRFORANGE Global 1.1.1.0/24 2.2.2.0/24 3.3.3.0/24 4.4.4.0/24 10.10.10.0/24 172.16.10.0/24 192.168.30.0/24 203.81.40.0/24 router rip version 2 network 4.4.4.0 network 203.81.40.0 no auto-summary ! router rip ! address-family ipv4 vrf blue version 2 network 1.1.1.0 network 10.10.10.0 no auto-summary exit-address-family !
  • 6. R H C TECHNOLOGIES © www.rhctechnologies.com VRF aware EIGRP Configuration VRFBLUE VRFGREEN VRFORANGE Global 1.1.1.0/24 2.2.2.0/24 3.3.3.0/24 4.4.4.0/24 10.10.10.0/24 172.16.10.0/24 192.168.30.0/24 203.81.40.0/24 router eigrp 10 network 4.4.4.0 0.0.0.255 network 203.81.40.0 0.0.0.255 no auto-summary ! router eigrp 10 ! address-family ipv4 vrf green autonomous-system 10 network 2.2.2.0 0.0.0.255 network 172.16.10.0 0.0.0.255 no auto-summary exit-address-family !
  • 7. R H C TECHNOLOGIES © www.rhctechnologies.com VRF aware OSPF Configuration VRFBLUE VRFGREEN VRFORANGE Global 1.1.1.0/24 2.2.2.0/24 3.3.3.0/24 4.4.4.0/24 10.10.10.0/24 172.16.10.0/24 192.168.30.0/24 203.81.40.0/24 router ospf 1 network 4.4.4.0 0.0.0.255 area 1 network 203.81.40.0 0.0.0.255 area 0 ! router ospf 2 vrf orange network 3.3.3.0 0.0.0.255 area 1 network 192.168.30.0 0.0.0.255 area 0 exit-address-family !
  • 8. R H C TECHNOLOGIES VRF aware Static Route © www.rhctechnologies.com
  • 9. R H C TECHNOLOGIES © www.rhctechnologies.com VRF aware Static Route Configuration VRF VRF VRF Global 1.1.1.1/24 2.2.2.2/24 3.3.3.3/24 4.4.4.4/24 10.10.10.0/24 172.16.10.0/24 192.168.30.0/24 203.81.40.0/24 VRF VRF VRF Global 100.100.100.100/24 200.200.200.200/24 30.30.30.30/24 40.40.40.40/24 f1/0 f2/0 f3/0 f4/0 f1/0 f2/0 f3/0 f4/0 lo0 lo1 lo2 lo3 lo0 lo1 lo2 lo3 R1 R2 configure terminal ip vrf blue ! configure terminal ip vrf blue ! Step 1 - Create VRF ( blue ) R1 R2
  • 10. R H C TECHNOLOGIES © www.rhctechnologies.com VRF aware Static Route Configuration VRF VRF VRF Global 1.1.1.0/24 2.2.2.0/24 3.3.3.0/24 4.4.4.0/24 10.10.10.0/24 172.16.10.0/24 192.168.30.0/24 203.81.40.0/24 VRF VRF VRF Global 100.100.100.0/24 200.200.200.0/24 30.30.30.0/24 40.40.40.0/24 f1/0 f2/0 f3/0 f4/0 f1/0 f2/0 f3/0 f4/0 lo0 lo1 lo2 lo3 lo0 lo1 lo2 lo3 R1 R2 int f1/0 ip vrf forwarding blue ip address 10.10.10.1 255.255.255.0 ! int lo0 ip vrf forwarding blue ip address 1.1.1.1 255.255.255.0 ! int f1/0 ip vrf forwarding blue ip address 10.10.10.2 255.255.255.0 ! int lo0 ip vrf forwarding blue ip address 100.100.100.100 255.255.255.0 ! Step 2 – Associate Interfaces into VRF ( blue ) R1 R2
  • 11. R H C TECHNOLOGIES © www.rhctechnologies.com VRF aware Static Route Configuration VRF VRF VRF Global 1.1.1.0/24 2.2.2.0/24 3.3.3.0/24 4.4.4.0/24 10.10.10.0/24 172.16.10.0/24 192.168.30.0/24 203.81.40.0/24 VRF VRF VRF Global 100.100.100.0/24 200.200.200.0/24 30.30.30.0/24 40.40.40.0/24 f1/0 f2/0 f3/0 f4/0 f1/0 f2/0 f3/0 f4/0 lo0 lo1 lo2 lo3 lo0 lo1 lo2 lo3 R1 R2 ip route vrf blue 100.100.100.0 255.255.255.0 10.10.10.2 ip route vrf blue 1.1.1.0 255.255.255.0 10.10.10.1 Step 3 – Configure Static Route aware VRF ( blue ) R1 R2
  • 12. R H C TECHNOLOGIES Global Routing ( BGP ) © www.rhctechnologies.com
  • 13. R H C TECHNOLOGIES © www.rhctechnologies.com VRF VRF VRF Global 1.1.1.1/24 2.2.2.2/24 3.3.3.3/24 4.4.4.4/24 10.10.10.0/24 172.16.10.0/24 192.168.30.0/24 203.81.40.0/24 VRF VRF VRF Global 100.100.100.100/24 200.200.200.200/24 30.30.30.30/24 40.40.40.40/24 f1/0 f2/0 f3/0 f4/0 f1/0 f2/0 f3/0 f4/0 lo0 lo1 lo2 lo3 lo0 lo1 lo2 lo3 R1 R2 configure terminal hostname R1 ! configure terminal hostname R2 ! Step 1 – NO VRF Creation required R1 R2
  • 14. R H C TECHNOLOGIES © www.rhctechnologies.com VRF VRF VRF Global 1.1.1.1/24 2.2.2.2/24 3.3.3.3/24 4.4.4.4/24 10.10.10.0/24 172.16.10.0/24 192.168.30.0/24 203.81.40.0/24 VRF VRF VRF Global 100.100.100.100/24 200.200.200.200/24 30.30.30.30/24 40.40.40.40/24 lo0 lo1 lo2 lo3 lo0 lo1 lo2 lo3 R1 R2 int f4/0 ip address 203.81.40.1 255.255.255.0 ! int lo3 ip address 4.4.4.4 255.255.255.0 ! int f4/0 ip address 203.81.40.2 255.255.255.0 ! int lo3 ip address 40.40.40.40 255.255.255.0 ! Step 2 – Interface IP Configuration R1 R2 f1/0 f2/0 f3/0 f4/0 f1/0 f2/0 f3/0 f4/0
  • 15. R H C TECHNOLOGIES © www.rhctechnologies.com VRF VRF VRF Global 1.1.1.1/24 2.2.2.2/24 3.3.3.3/24 4.4.4.4/24 10.10.10.0/24 172.16.10.0/24 192.168.30.0/24 203.81.40.0/24 VRF VRF VRF Global 100.100.100.100/24 200.200.200.200/24 30.30.30.30/24 40.40.40.40/24 lo0 lo1 lo2 lo3 lo0 lo1 lo2 lo3 R1 R2 router bgp 12 neighbor 203.81.40.2 remote-as 12 network 4.4.4.0 mask 255.255.255.0 ! router bgp 12 neighbor 203.81.40.1 remote-as 12 network 40.40.40.0 mask 255.255.255.0 ! Step 3 – Configure BGP R1 R2 f1/0 f2/0 f3/0 f4/0 f1/0 f2/0 f3/0 f4/0
  • 16. R H C TECHNOLOGIES VRF aware BGP © www.rhctechnologies.com
  • 17. R H C TECHNOLOGIES © www.rhctechnologies.com VRF aware BGP Route Configuration VRF VRF VRF Global 1.1.1.1/24 2.2.2.2/24 3.3.3.3/24 4.4.4.4/24 10.10.10.0/24 172.16.10.0/24 192.168.30.0/24 203.81.40.0/24 VRF VRF VRF Global 100.100.100.100/24 200.200.200.200/24 30.30.30.30/24 40.40.40.40/24 lo0 lo1 lo2 lo3 lo0 lo1 lo2 lo3 R1 R2 configure terminal ip vrf green ! configure terminal ip vrf green ! Step 1 - Create VRF ( green ) R1 R2 f1/0 f2/0 f3/0 f4/0 f1/0 f2/0 f3/0 f4/0
  • 18. R H C TECHNOLOGIES © www.rhctechnologies.com VRF aware BGP Route Configuration VRF VRF VRF Global 1.1.1.1/24 2.2.2.2/24 3.3.3.3/24 4.4.4.4/24 10.10.10.0/24 172.16.10.0/24 192.168.30.0/24 203.81.40.0/24 VRF VRF VRF Global 100.100.100.100/24 200.200.200.200/24 30.30.30.30/24 40.40.40.40/24 lo0 lo1 lo2 lo3 lo0 lo1 lo2 lo3 R1 R2 int f2/0 ip vrf forwarding green ip address 172.16.10.1 255.255.255.0 ! int lo1 ip vrf forwarding green ip address 2.2.2.2 255.255.255.0 ! int f2/0 ip vrf forwarding green ip address 172.16.10.2 255.255.255.0 ! int lo1 ip vrf forwarding green ip address 200.200.200.200 255.255.255.0 ! Step 2 - Associate Interfaces into VRF ( green ) R1 R2 f1/0 f2/0 f3/0 f4/0 f1/0 f2/0 f3/0 f4/0
  • 19. R H C TECHNOLOGIES © www.rhctechnologies.com VRF aware BGP Route Configuration VRF VRF VRF Global 1.1.1.1/24 2.2.2.2/24 3.3.3.3/24 4.4.4.4/24 10.10.10.0/24 172.16.10.0/24 192.168.30.0/24 203.81.40.0/24 VRF VRF VRF Global 100.100.100.100/24 200.200.200.200/24 30.30.30.30/24 40.40.40.40/24 lo0 lo1 lo2 lo3 lo0 lo1 lo2 lo3 R1 R2 router bgp 12 address-family ipv4 vrf green neighbor 172.16.10.2 remote-as 12 neighbor 172.16.10.2 activate network 2.2.2.0 mask 255.255.255.0 exit-address-family ! router bgp 12 address-family ipv4 vrf green neighbor 172.16.10.1 remote-as 12 neighbor 172.16.10.1 activate network 200.200.200.0 mask 255.255.255.0 exit-address-family ! Step 3 – Configure BGP aware VRF ( green ) R1 R2 f1/0 f2/0 f3/0 f4/0 f1/0 f2/0 f3/0 f4/0
  • 20. R H C TECHNOLOGIES VRF-Lite Tunnel + VRF aware BGP/OSPF Case Study © www.rhctechnologies.com
  • 21. R H C TECHNOLOGIES © www.rhctechnologies.com Global 4.4.4.4/24 203.81.40.0/24 Global 40.40.40.40/24 f1/0 f1/0 lo0 lo0 R1 R2 int f1/0 ip address 203.81.40.1 255.255.255.0 ! int lo0 ip address 4.4.4.4 255.255.255.0 ! int f1/0 ip address 203.81.40.2 255.255.255.0 ! int lo0 ip address 40.40.40.40 255.255.255.0 ! R1 R2 Tunnel 12 150.1.1.0/24 lo1 lo1 RHCYGN RHCYGN RHCSG RHCSG lo2 lo2 Tunnel 85 200.1.1.0/24 1.1.1.1/24 2.2.2.2/24 11.11.11.11/24 22.22.22.22/24
  • 22. R H C TECHNOLOGIES © www.rhctechnologies.com Global 4.4.4.4/24 203.81.40.0/24 Global 40.40.40.40/24 f1/0 f1/0 lo0 lo0 R1 R2 router bgp 12 neighbor 203.81.40.2 remote-as 12 network 4.4.4.0 mask 255.255.255.0 ! router bgp 12 neighbor 203.81.40.1 remote-as 12 network 40.40.40.0 mask 255.255.255.0 ! R1 R2 Tunnel 12 150.1.1.0/24 lo1 lo1 RHCYGN RHCYGN RHCSG RHCSG lo2 lo2 Tunnel 85 200.1.1.0/24 1.1.1.1/24 2.2.2.2/24 11.11.11.11/24 22.22.22.22/24
  • 23. R H C TECHNOLOGIES © www.rhctechnologies.com Global 4.4.4.4/24 203.81.40.0/24 Global 40.40.40.40/24 f1/0 f1/0 lo0 lo0 R1 R2 configure terminal ip vrf RHCYGN ! configure terminal ip vrf RHCYGN ! R1 R2 Tunnel 12 150.1.1.0/24 lo1 lo1 RHCYGN RHCYGN RHCSG RHCSG lo2 lo2 Tunnel 85 200.1.1.0/24 1.1.1.1/24 2.2.2.2/24 11.11.11.11/24 22.22.22.22/24
  • 24. R H C TECHNOLOGIES © www.rhctechnologies.com Global 4.4.4.4/24 203.81.40.0/24 Global 40.40.40.40/24 f1/0 f1/0 lo0 lo0 R1 R2 interface tunnel 12 ip vrf forwarding RHCYGN
 ip address 150.1.1.1 255.255.255.0 tunnel source 203.81.40.1 tunnel destination 203.81.40.2 ! int lo1 ip vrf forwarding RHCYGN ip address 1.1.1.1 255.255.255.0 ! interface tunnel 12 ip vrf forwarding RHCYGN
 ip address 150.1.1.2 255.255.255.0 tunnel source 203.81.40.2 tunnel destination 203.81.40.1 ! int lo1 ip vrf forwarding RHCYGN ip address 2.2.2.2 255.255.255.0 ! R1 R2 Tunnel 12 150.1.1.0/24 lo1 lo1 RHCYGN RHCYGN RHCSG RHCSG lo2 lo2 Tunnel 85 200.1.1.0/24 1.1.1.1/24 2.2.2.2/24 11.11.11.11/24 22.22.22.22/24
  • 25. R H C TECHNOLOGIES © www.rhctechnologies.com Global 4.4.4.4/24 203.81.40.0/24 Global 40.40.40.40/24 f1/0 f1/0 lo0 lo0 R1 R2 router bgp 12 address-family ipv4 vrf RHCYGN neighbor 150.1.1.2 remote-as 12 neighbor 150.1.1.2 activate network 1.1.1.0 mask 255.255.255.0 exit-address-family ! router bgp 12 address-family ipv4 vrf RHCYGN neighbor 150.1.1.1 remote-as 12 neighbor 150.1.1.1 activate network 2.2.2.0 mask 255.255.255.0 exit-address-family ! R1 R2 Tunnel 12 150.1.1.0/24 lo1 lo1 RHCYGN RHCYGN RHCSG RHCSG lo2 lo2 Tunnel 85 200.1.1.0/24 1.1.1.1/24 2.2.2.2/24 11.11.11.11/24 22.22.22.22/24
  • 26. R H C TECHNOLOGIES © www.rhctechnologies.com Global 4.4.4.4/24 203.81.40.0/24 Global 40.40.40.40/24 f1/0 f1/0 lo0 lo0 R1 R2 configure terminal ip vrf RHCSG ! configure terminal ip vrf RHCSG ! R1 R2 Tunnel 12 150.1.1.0/24 lo1 lo1 RHCYGN RHCYGN RHCSG RHCSG lo2 lo2 Tunnel 85 200.1.1.0/24 1.1.1.1/24 2.2.2.2/24 11.11.11.11/24 22.22.22.22/24
  • 27. R H C TECHNOLOGIES © www.rhctechnologies.com Global 4.4.4.4/24 203.81.40.0/24 Global 40.40.40.40/24 f1/0 f1/0 lo0 lo0 R1 R2 interface tunnel 85 ip vrf forwarding RHCSG ip address 200.1.1.1 255.255.255.0 tunnel source 203.81.40.1 tunnel destination 203.81.40.2 ! int lo2 ip vrf forwarding RHCSG ip address 11.11.11.11 255.255.255.0 ! interface tunnel 85 ip vrf forwarding RHCSG ip address 200.1.1.2 255.255.255.0 tunnel source 203.81.40.2 tunnel destination 203.81.40.1 ! int lo2 ip vrf forwarding RHCSG ip address 22.22.22.22 255.255.255.0 ! R1 R2 Tunnel 12 150.1.1.0/24 lo1 lo1 RHCYGN RHCYGN RHCSG RHCSG lo2 lo2 Tunnel 85 200.1.1.0/24 1.1.1.1/24 2.2.2.2/24 11.11.11.11/24 22.22.22.22/24
  • 28. R H C TECHNOLOGIES © www.rhctechnologies.com Global 4.4.4.4/24 203.81.40.0/24 Global 40.40.40.40/24 f1/0 f1/0 lo0 lo0 R1 R2 router ospf 1 vrf RHCSG network 200.1.1.0 0.0.0.255 area 0 network 11.11.11.0 0.0.0.255 area 0 exit-address-family ! router ospf 1 vrf RHCSG network 200.1.1.0 0.0.0.255 area 0 network 22.22.22.0 0.0.0.255 area 0 exit-address-family ! R1 R2 Tunnel 12 150.1.1.0/24 lo1 lo1 RHCYGN RHCYGN RHCSG RHCSG lo2 lo2 Tunnel 85 200.1.1.0/24 1.1.1.1/24 2.2.2.2/24 11.11.11.11/24 22.22.22.22/24
  • 29. R H C TECHNOLOGIES VRF-Lite 802.1Q Sub-Interface Case Study © www.rhctechnologies.com
  • 30. R H C TECHNOLOGIES © www.rhctechnologies.com Global Global f1/0 f1/0 R1 R2 configure terminal ip vrf RHCYGN ! configure terminal ip vrf RHCYGN ! R1 R2 150.1.1.0/24 lo1 lo1 RHCYGN RHCYGN RHCSG RHCSG lo2 lo2 200.1.1.0/24 1.1.1.1/24 2.2.2.2/24 11.11.11.11/24 22.22.22.22/24 f1/0.10 f1/0.10 f1/0.20 f1/0.20 encapsulation dot1Q 10 encapsulation dot1Q 20 encapsulation dot1Q <1-4094>
  • 31. R H C TECHNOLOGIES © www.rhctechnologies.com Global Global f1/0 F1/0 R1 R2 interface f1/0 no shutdown ! Interface 1/0.10 encapsulation dot1Q 10 ip vrf forwarding RHCYGN ip address 150.1.1.1 255.255.255.0 ! int lo1 ip vrf forwarding RHCYGN ip address 1.1.1.1 255.255.255.0 ! interface f1/0 no shutdown ! Interface 1/1.10 encapsulation dot1Q 10 ip vrf forwarding RHCYGN ip address 150.1.1.2 255.255.255.0 ! int lo1 ip vrf forwarding RHCYGN ip address 2.2.2.2 255.255.255.0 ! R1 R2 150.1.1.0/24 lo1 lo1 RHCYGN RHCYGN RHCSG RHCSG lo2 lo2 200.1.1.0/24 1.1.1.1/24 2.2.2.2/24 11.11.11.11/24 22.22.22.22/24 f1/0.10 F1/0.10 f1/0.20 F1/0.20 encapsulation dot1Q 10 encapsulation dot1Q 20 encapsulation dot1Q <1-4094>
  • 32. R H C TECHNOLOGIES © www.rhctechnologies.com Global Global f1/0 F1/0 R1 R2 router bgp 12 bgp router-id 100.100.100.100 address-family ipv4 vrf RHCYGN neighbor 150.1.1.2 remote-as 12 neighbor 150.1.1.2 activate network 1.1.1.0 mask 255.255.255.0 exit-address-family ! router bgp 12 bgp router-id 200.200.200.200 address-family ipv4 vrf RHCYGN neighbor 150.1.1.1 remote-as 12 neighbor 150.1.1.1 activate network 2.2.2.0 mask 255.255.255.0 exit-address-family ! R1 R2 150.1.1.0/24 lo1 lo1 RHCYGN RHCYGN RHCSG RHCSG lo2 lo2 200.1.1.0/24 1.1.1.1/24 2.2.2.2/24 11.11.11.11/24 22.22.22.22/24 F1/0.10 F1/0.10 f1/0.20 F1/0.20 encapsulation dot1Q 10 encapsulation dot1Q 20 encapsulation dot1Q <1-4094>
  • 33. R H C TECHNOLOGIES © www.rhctechnologies.com Global Global f1/0 F1/0 R1 R2 configure terminal ip vrf RHCSG ! configure terminal ip vrf RHCSG ! R1 R2 150.1.1.0/24 lo1 lo1 RHCYGN RHCYGN RHCSG RHCSG lo2 lo2 200.1.1.0/24 1.1.1.1/24 2.2.2.2/24 11.11.11.11/24 22.22.22.22/24 f1/0.10 f1/0.10 f1/0.20 F1/0.20 encapsulation dot1Q 10 encapsulation dot1Q 20 encapsulation dot1Q <1-4094>
  • 34. R H C TECHNOLOGIES © www.rhctechnologies.com Global Global f1/0 f1/0 R1 R2 interface f1/0 no shutdown ! interface 1/0.20 encapsulation dot1Q 20 ip vrf forwarding RHCSG ip address 200.1.1.1 255.255.255.0 ! int lo2 ip vrf forwarding RHCSG ip address 11.11.11.11 255.255.255.0 ! interface f1/0 no shutdown ! interface 1/0.20 encapsulation dot1Q 20 ip vrf forwarding RHCSG ip address 200.1.1.2 255.255.255.0 ! int lo2 ip vrf forwarding RHCSG ip address 22.22.22.22 255.255.255.0 ! R1 R2 150.1.1.0/24 lo1 lo1 RHCYGN RHCYGN RHCSG RHCSG lo2 lo2 200.1.1.0/24 1.1.1.1/24 2.2.2.2/24 11.11.11.11/24 22.22.22.22/24 f1/0.10 F1/0.10 f1/0.20 f1/0.20 encapsulation dot1Q 10 encapsulation dot1Q 20 encapsulation dot1Q <1-4094>
  • 35. R H C TECHNOLOGIES © www.rhctechnologies.com Global Global f3/0 f3/1 R1 R2 router ospf 1 vrf RHCSG network 200.1.1.0 0.0.0.255 area 0 network 11.11.11.0 0.0.0.255 area 0 exit-address-family ! router ospf 1 vrf RHCSG network 200.1.1.0 0.0.0.255 area 0 network 22.22.22.0 0.0.0.255 area 0 exit-address-family ! R1 R2 150.1.1.0/24 lo1 lo1 RHCYGN RHCYGN RHCSG RHCSG lo2 lo2 200.1.1.0/24 1.1.1.1/24 2.2.2.2/24 11.11.11.11/24 22.22.22.22/24 f3/0.10 f3/1.10 f3/0.20 f3/1.20 encapsulation dot1Q 10 encapsulation dot1Q 20 encapsulation dot1Q <1-4094>
  • 36. R H C TECHNOLOGIES VRF Case Study 01 Prepared By Sai Linn Thu © www.rhctechnologies.com
  • 37. R H C TECHNOLOGIES R2 © www.rhctechnologies.com R3 R1 R4 R5 VRF Blue VRF Green EIGRP 10 OSPF 8 10.1.12.x/30 10.1.12.x/30 192.1.13.x/29 192.1.13.x/29 172.16.14.x/29 172.16.14.x/29 150.15.15.x/29 150.15.15.x/29 lo0 - 4.4.4.4/24 lo1 - 44.44.44.44/24 lo0 - 5.5.5.5/24 lo1 - 55.55.55.55/24 lo1 - 22.22.22.22/24 lo0 - 2.2.2.2/24 lo1 - 33.33.33.33/24 lo0 - 3.3.3.3/24 f0/0 f0/1 f1/0 f1/1 f2/0 f2/1 f3/0 f3/1 f0/0 f1/0 f0/0 f1/0 f0/0 f1/0 f1/0 f0/0
  • 38. R H C TECHNOLOGIES © www.rhctechnologies.com Step 1 – Create VRF R1 configure terminal ip vrf green ip vrf blue ! R2 configure terminal ip vrf green ip vrf blue ! R3 configure terminal ip vrf green ip vrf blue ! R4 configure terminal ip vrf green ip vrf blue ! R5 configure terminal ip vrf green ip vrf blue !
  • 39. R H C TECHNOLOGIES © www.rhctechnologies.com Step 2 – Associates interface into VRF (R1) R1 configure terminal interface f0/0 ip vrf forwarding green ip address 172.16.14.1 255.255.255.248 ! interface 1/1 ip vrf forwarding green ip address 10.1.12.1 255.255.255.252 ! interface 2/1 ip vrf forwarding green ip address 192.1.13.1 255.255.255.248 ! interface 3/0 ip vrf forwarding green ip address 150.15.15.1 255.255.255.248 ! R1 configure terminal interface f0/1 ip vrf forwarding blue ip address 172.16.14.1 255.255.255.248 ! interface 1/0 ip vrf forwarding blue ip address 10.1.12.1 255.255.255.252 ! interface 2/0 ip vrf forwarding blue ip address 192.1.13.1 255.255.255.248 ! interface 3/1 ip vrf forwarding blue ip address 150.15.15.1 255.255.255.248 !
  • 40. R H C TECHNOLOGIES © www.rhctechnologies.com Step 2 – Associates interface into VRF (R2) R2 configure terminal interface f1/0 ip vrf forwarding green ip address 10.1.12.2 255.255.255.252 ! interface loopback 0 ip vrf forwarding green ip address 2.2.2.2 255.255.255.0 ! R2 configure terminal interface f0/0 ip vrf forwarding blue ip address 10.1.12.2 255.255.255.252 ! interface loopback 1 ip vrf forwarding blue ip address 22.22.22.22 255.255.255.0 !
  • 41. R H C TECHNOLOGIES © www.rhctechnologies.com Step 2 – Associates interface into VRF (R3) R3 configure terminal interface f1/0 ip vrf forwarding green ip address 192.1.13.2 255.255.255.248 ! interface loopback 0 ip vrf forwarding green ip address 3.3.3.3 255.255.255.0 ! R3 configure terminal interface f0/0 ip vrf forwarding blue ip address 192.1.13.2 255.255.255.248 ! interface loopback 1 ip vrf forwarding blue ip address 33.33.33.33 255.255.255.0 !
  • 42. R H C TECHNOLOGIES © www.rhctechnologies.com Step 2 – Associates interface into VRF (R4) R4 configure terminal interface f0/0 ip vrf forwarding green ip address 172.16.14.2 255.255.255.248 ! interface loopback 0 ip vrf forwarding green ip address 4.4.4.4 255.255.255.0 ! R4 configure terminal interface f1/0 ip vrf forwarding blue ip address 172.16.14.2 255.255.255.248 ! interface loopback 1 ip vrf forwarding blue ip address 44.44.44.44 255.255.255.0 !
  • 43. R H C TECHNOLOGIES © www.rhctechnologies.com Step 2 – Associates interface into VRF (R5) R5 configure terminal interface f0/0 ip vrf forwarding green ip address 150.15.15.2 255.255.255.248 ! interface loopback 0 ip vrf forwarding green ip address 5.5.5.5 255.255.255.0 ! R5 configure terminal interface f1/0 ip vrf forwarding blue ip address 150.15.15.2 255.255.255.248 ! interface loopback 1 ip vrf forwarding blue ip address 55.55.55.55 255.255.255.0 !
  • 44. R H C TECHNOLOGIES © www.rhctechnologies.com Step 3 – Configure OSPF aware VRF ( vrf green ) R1 configure terminal router ospf 8 vrf green network 10.1.12.0 0.0.0.3 area 0 network 172.16.14.0 0.0.0.7 area 0 network 192.1.13.0 0.0.0.7 area 0 network 150.15.15.0 0.0.0.7 area 0 ! R2 configure terminal router ospf 8 vrf green network 10.1.12.0 0.0.0.3 area 0 network 2.2.2.0 0.0.0.255 area 0 ! R3 configure terminal router ospf 8 vrf green network 192.1.13.0 0.0.0.7 area 0 network 3.3.3.0 0.0.0.255 area 0 ! R4 configure terminal router ospf 8 vrf green network 172.16.14.0 0.0.0.7 area 0 network 4.4.4.0 0.0.0.255 area 0 ! R5 configure terminal router ospf 8 vrf green network 150.15.15.0 0.0.0.7 area 0 network 5.5.5.0 0.0.0.255 area 0 !
  • 45. R H C TECHNOLOGIES © www.rhctechnologies.com Step 3 – Configure EIGRP aware VRF ( vrf blue ) R1 router eigrp 10 address-family ipv4 vrf blue network 10.1.12.0 0.0.0.3 network 172.16.14.0 0.0.0.7 network 192.1.13.0 0.0.0.7 network 150.15.15.0 0.0.0.7 autonomous-system 10 no auto-summary ! R2 router eigrp 10 address-family ipv4 vrf blue network 10.1.12.0 0.0.0.3 network 22.22.22.0 0.0.0.255 autonomous-system 10 no auto-summary ! R3 router eigrp 10 address-family ipv4 vrf blue autonomous-system 10 network 172.16.14.0 0.0.0.7 network 33.33.33.0 0.0.0.255 no auto-summary ! R4 router eigrp 10 address-family ipv4 vrf blue autonomous-system 10 network 172.16.14.0 0.0.0.7 network 44.44.44.0 0.0.0.255 no auto-summary ! R5 router eigrp 10 address-family ipv4 vrf blue autonomous-system 10 network 150.15.15.0 0.0.0.7 network 55.55.55.0 0.0.0.255 no auto-summary !
  • 46. R H C TECHNOLOGIES © www.rhctechnologies.com Verification #show ip vrf #show ip route vrf * #show ip route vrf green #show ip route vrf blue #ping vrf green x.x.x.x #ping vrf blue x.x.x.x
  • 47. R H C TECHNOLOGIES VRF Case Study 02 Prepared By Sai Linn Thu © www.rhctechnologies.com
  • 48. R H C TECHNOLOGIES © www.rhctechnologies.com CR01 CR02 Access 01 DS01 DS02 Access 02 Access 04 DS01 DS02 Access 03 VRFBlue VRFRed EIGRP 10 OSPF 8
  • 49. R H C TECHNOLOGIES VRF Case Study 03 Prepared By Sai Linn Thu © www.rhctechnologies.com
  • 50. R H C TECHNOLOGIES CSW 01 CSW 02 CSW 03 CSW 04 ASW 01 ASW 02 ASW 03 ASW 04 © www.rhctechnologies.com
  • 51. © www.rhctechnologies.com R H C TECHNOLOGIES RHC Technologies #LIKE #FOLLOW #WATCH