Configuring a complex inter-VRF solution
Page 62 | Configure VRF-lite
ip route vrf orange 192.168.20.0/24 192.168.40.2
ip route vrf orange 192.168.140.0/24 192.168.40.2
ip route vrf shared 0.0.0.0/0 192.168.100.254
ip route vrf shared 192.168.43.0/24 192.168.100.2
ip route vrf shared 192.168.44.0/24 192.168.100.2
ip route vrf shared 192.168.45.0/24 192.168.100.2
!
route-map red43 permit 1
match ip address redBlock4445
!
route-map green44 permit 1
match ip address greenBlock4345
!
route-map blue45 permit 1
match ip address blueBlock4344
!
route-map orange434445 permit 1
match ip address orangeNoBlock
!
route-map orange140 permit 1
match ip address orangeBlock20Export140
!
!
line con 0
line vty 0 4
!
end
IP route table from VRF device is below
awplus#show ip route
No entries in route table
[VRF: red]
Codes: 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
* - candidate default
Gateway of last resort is 192.168.100.254 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 192.168.100.254, vlan5
C 1.1.1.1/32 is directly connected, lo1
B 5.5.5.5/32 [20/0] is directly connected, lo5, 00:07:21
C 192.168.10.0/24 is directly connected, vlan1
O 192.168.13.0/24 [110/2] via 192.168.10.2, vlan1, 00:06:27
O 192.168.14.0/24 [110/2] via 192.168.10.2, vlan1, 00:06:27
B 192.168.43.0/24 [20/0] via 192.168.100.2, vlan5, 00:07:17
B 192.168.100.0/24 [20/0] is directly connected, vlan5, 00:07:17
[VRF: green]
S* 0.0.0.0/0 [1/0] via 192.168.100.254, vlan5
C 2.2.2.2/32 is directly connected, lo2
B 5.5.5.5/32 [20/0] is directly connected, lo5, 00:07:21
B 192.168.15.0/24 [200/0] via 192.168.20.2, vlan2, 00:06:15
B 192.168.16.0/24 [200/0] via 192.168.20.2, vlan2, 00:06:14
C 192.168.20.0/24 is directly connected, vlan2
B 192.168.44.0/24 [20/0] via 192.168.100.2, vlan5, 00:07:17
B 192.168.100.0/24 [20/0] is directly connected, vlan5, 00:07:17