filmov
tv
How to Configure Route Leaking from a Global Routing Table into a VRF and vice versa
Показать описание
Route Leaking from a Global Routing Table into a VRF and Route Leaking from a VRF into a Global Routing Table:
CONFIGURE:
USING STATIC ROUTES:
PE-4:
conf t
ip vrf VPN2
!
!
interface GigabitEthernet0/1
ip vrf forwarding VPN2
!
ip route 10.0.2.0 255.255.255.252 GigabitEthernet0/1 10.0.2.2
ip route vrf VPN2 10.1.2.4 255.255.255.252 GigabitEthernet0/0 10.1.2.6
end
wr
!
!
!Added static routes for the loopback addresses:
!
conf t
ip route vrf VPN2 1.1.1.1 255.255.255.255 GigabitEthernet0/0 10.1.2.6
ip route 3.3.3.3 255.255.255.255 GigabitEthernet0/1 10.0.2.2
end
wr
CE-3:
conf t
ip route 0.0.0.0 0.0.0.0 10.1.2.5
end
wr
CE-4:
conf t
ip route 0.0.0.0 0.0.0.0 10.0.2.1
end
wr
VERIFY:
show ip route 10.0.2.0
show ip route 3.3.3.3
show ip route vrf VPN2 10.1.2.4
show ip route vrf VPN2 1.1.1.1
From CE-3, ping 3.3.3.3 source 1.1.1.1
From CE-4, ping 1.1.1.1 source 3.3.3.3
Router# show ip vrf Displays the set of VRFs and interfaces.
Router# show ip route vrf vrf-name Displays the IP routing table for a VRF.
Router# show ip protocols vrf vrf-name Displays the routing protocol information for a VRF.
Router# ping vrf vrf-name ip ip-address Pings an ip address that has a specific VRF.
Router# show run vrf
Router# traceroute vrf vrf-name
#cisco #ccna #ccnp #ccie
CONFIGURE:
USING STATIC ROUTES:
PE-4:
conf t
ip vrf VPN2
!
!
interface GigabitEthernet0/1
ip vrf forwarding VPN2
!
ip route 10.0.2.0 255.255.255.252 GigabitEthernet0/1 10.0.2.2
ip route vrf VPN2 10.1.2.4 255.255.255.252 GigabitEthernet0/0 10.1.2.6
end
wr
!
!
!Added static routes for the loopback addresses:
!
conf t
ip route vrf VPN2 1.1.1.1 255.255.255.255 GigabitEthernet0/0 10.1.2.6
ip route 3.3.3.3 255.255.255.255 GigabitEthernet0/1 10.0.2.2
end
wr
CE-3:
conf t
ip route 0.0.0.0 0.0.0.0 10.1.2.5
end
wr
CE-4:
conf t
ip route 0.0.0.0 0.0.0.0 10.0.2.1
end
wr
VERIFY:
show ip route 10.0.2.0
show ip route 3.3.3.3
show ip route vrf VPN2 10.1.2.4
show ip route vrf VPN2 1.1.1.1
From CE-3, ping 3.3.3.3 source 1.1.1.1
From CE-4, ping 1.1.1.1 source 3.3.3.3
Router# show ip vrf Displays the set of VRFs and interfaces.
Router# show ip route vrf vrf-name Displays the IP routing table for a VRF.
Router# show ip protocols vrf vrf-name Displays the routing protocol information for a VRF.
Router# ping vrf vrf-name ip ip-address Pings an ip address that has a specific VRF.
Router# show run vrf
Router# traceroute vrf vrf-name
#cisco #ccna #ccnp #ccie
Комментарии