522
Figure 137 Network diagram
Configuration procedure
Assume that:
•
The system name of the MCE device is MCE.
•
The system names of the edge routers of VPN 1 and VPN 2 are VR 1 and VR 2, respectively.
•
The system name of PE 1 is PE1.
1.
Configure VPN instances on the MCE and PE 1:
# On the MCE, configure VPN instances
vpn1
and
vpn2
, and specify an RD and route targets
for each VPN instance.
<MCE> system-view
[MCE] ip vpn-instance vpn1
[MCE-vpn-instance-vpn1] route-distinguisher 10:1
[MCE-vpn-instance-vpn1] vpn-target 10:1
[MCE-vpn-instance-vpn1] quit
[MCE] ip vpn-instance vpn2
[MCE-vpn-instance-vpn2] route-distinguisher 20:1
[MCE-vpn-instance-vpn2] vpn-target 20:1
[MCE-vpn-instance-vpn2] quit
# Bind interface GigabitEthernet 1/1/1 to VPN instance
vpn1,
and configure an IP address for
the interface.
[MCE] interface gigabitethernet 1/1/1
[MCE-GigabitEthernet1/1/1] ip binding vpn-instance vpn1
CE
VPN 1
Site 2
CE
VPN 2
Site 1
PE 1
PE 3
PE 2
VR 2
VR 1
MCE
GE1/1/1
10.214.10.3/24
GE1/1/1.1
20.1.1.2/24
GE1/1/3.1
20.1.1.1/24
GE1/1/2
10.214.20.3/24
GE1/1/2
10.214.10.2/24
GE1/1/2
10.214.20.2/24
GE1/1/1
192.168.0.1/24
GE1/1/1
192.168.10.1/24
GE1/1/3.2
30.1.1.1/24
GE1/1/1.2
30.1.1.2/24
VPN 2
192.168.10.0/24
VPN 1
192.168.0.0/24