18
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
10.214.20.0/24 Direct 0 0 10.214.20.3 Vlan20
10.214.20.0/32 Direct 0 0 10.214.20.3 Vlan20
10.214.20.3/32 Direct 0 0 127.0.0.1 InLoop0
10.214.20.255/32 Direct 0 0 10.214.20.3 Vlan20
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
192.168.10.0/24 OSPF 10 2 10.214.20.2 Vlan20
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
The output shows that the MCE has learned the private routes of VPN 2. The MCE maintains the
routes of VPN 1 and those of VPN2 in two different routing tables. In this way, routes from different
VPNs are separated.
3.
Configure routing between the MCE and PE 1:
# The MCE uses port FortyGigE 1/0/3 to connect to PE's port FortyGigE 1/0/1. Configure the
two ports as trunk ports, and configure them to permit packets carrying VLAN tags 30 and 40 to
pass.
[MCE] interface fortygige 1/0/3
[MCE-FortyGigE1/0/3] port link-type trunk
[MCE-FortyGigE1/0/3] port trunk permit vlan 30 40
[MCE-FortyGigE1/0/3] quit
# Configure port FortyGigE 1/0/1 on the PE.
[PE1] interface fortygige 1/0/1
[PE1-FortyGigE1/0/1] port link-type trunk
[PE1-FortyGigE1/0/1] port trunk permit vlan 30 40
[PE1-FortyGigE1/0/1] quit
# On the MCE, create VLAN 30 and VLAN-interface 30, bind the VLAN interface with VPN
instance
vpn1
, and configure an IP address for the VLAN interface.
[MCE] vlan 30
[MCE-vlan30] quit
[MCE] interface vlan-interface 30
[MCE-Vlan-interface30] ip binding vpn-instance vpn1
[MCE-Vlan-interface30] ip address 30.1.1.1 24
[MCE-Vlan-interface30] quit
# On the MCE, create VLAN 40 and VLAN-interface 40, bind the VLAN interface with VPN
instance
vpn2
, and configure an IP address for the VLAN interface.
[MCE] vlan 40
[MCE-vlan40] quit
[MCE] interface vlan-interface 40
[MCE-Vlan-interface40] ip binding vpn-instance vpn2
[MCE-Vlan-interface40] ip address 40.1.1.1 24
[MCE-Vlan-interface40] quit