
369
Routing Tables: vpn1
Destinations : 5 Routes : 5
Destination/Mask Proto Pre Cost NextHop Interface
10.214.10.0/24 Direct 0 0 10.214.10.3 GE3/1/1
10.214.10.3/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.0.0/24 Static 60 0 10.214.10.2 GE3/1/1
[MCE] display ip routing-table vpn-instance vpn2
Routing Tables: vpn2
Destinations : 5 Routes : 5
Destination/Mask Proto Pre Cost NextHop Interface
10.214.20.0/24 Direct 0 0 10.214.20.3 GE3/1/2
10.214.20.3/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.10.0/24 RIP 100 1 10.214.20.2 GE3/1/2
The output shows that the MCE has learned the private route of VPN 2 through RIP. MCE
maintains the routes of VPN 1 and those of VPN 2 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 is connected to PE 1 through subinterfaces. On MCE, bind subinterface
GigabitEthernet 3/1/3.1 with the VPN instance
vpn1
, configure the subinterface to terminate
VLAN 10, and configure an IP address for the subinterface.
[MCE] interface gigabitethernet 3/1/3.1
[MCE-GigabitEthernet3/1/3.1] ip binding vpn-instance vpn1
[MCE-GigabitEthernet3/1/3.1] vlan-type dot1q vid 10
[MCE-GigabitEthernet3/1/3.1] ip address 20.1.1.1 24
[MCE-GigabitEthernet2/1/3.1] quit
# On the MCE, bind subinterface GigabitEthernet 3/1/3.2 with the VPN instance
vpn2
,
configure the subinterface to terminate VLAN 20, and configure an IP address for the
subinterface.
[MCE] interface gigabitethernet 3/1/3.2
[MCE-GigabitEthernet3/1/3.2] ip binding vpn-instance vpn2
[MCE-GigabitEthernet3/1/3.2] vlan-type dot1q vid 20
[MCE-GigabitEthernet3/1/3.2] ip address 30.1.1.1 24
[MCE-GigabitEthernet3/1/3.2] quit
# On PE 1, bind subinterface GigabitEthernet 3/1/1.1 with the VPN instance
vpn1
, configure the
subinterface to terminate VLAN 10, and configure an IP address for the subinterface.
[PE1] interface gigabitethernet 3/1/1.1
[PE1-GigabitEthernet3/1/1.1] ip binding vpn-instance vpn1
[PE1-GigabitEthernet3/1/1.1] vlan-type dot1q vid 10
[PE1-GigabitEthernet3/1/1.1] ip address 20.1.1.2 24
[PE1-GigabitEthernet3/1/1.1] quit