Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

VRF Lab WorkBook

732 views

Published on

VRF Lab WorkBook

Published in: Technology

VRF Lab WorkBook

  1. 1. R H C TECHNOLOGIES VRF Case Studies Prepared By Sai Linn Thu © www.rhctechnologies.com
  2. 2. R H C TECHNOLOGIES © www.rhctechnologies.com VRFBLUE VRFGREEN VRFORANGE Global Virtual Routing & Forwarding
  3. 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. 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. 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. 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. 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. 8. R H C TECHNOLOGIES VRF aware Static Route © www.rhctechnologies.com
  9. 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. 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. 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. 12. R H C TECHNOLOGIES Global Routing ( BGP ) © www.rhctechnologies.com
  13. 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. 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. 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. 16. R H C TECHNOLOGIES VRF aware BGP © www.rhctechnologies.com
  17. 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. 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. 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. 20. R H C TECHNOLOGIES VRF-Lite Tunnel + VRF aware BGP/OSPF Case Study © www.rhctechnologies.com
  21. 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. 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. 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. 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. 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. 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. 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. 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. 29. R H C TECHNOLOGIES VRF-Lite 802.1Q Sub-Interface Case Study © www.rhctechnologies.com
  30. 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. 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. 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. 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. 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. 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. 36. R H C TECHNOLOGIES VRF Case Study 01 Prepared By Sai Linn Thu © www.rhctechnologies.com
  37. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 47. R H C TECHNOLOGIES VRF Case Study 02 Prepared By Sai Linn Thu © www.rhctechnologies.com
  48. 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. 49. R H C TECHNOLOGIES VRF Case Study 03 Prepared By Sai Linn Thu © www.rhctechnologies.com
  50. 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. 51. © www.rhctechnologies.com R H C TECHNOLOGIES RHC Technologies #LIKE #FOLLOW #WATCH

×