539
[MCE-vpn-instance-vpn2] quit
# Bind interface GigabitEthernet 1/1/1 to VPN instance
vpn1
, and configure an IPv6 address for
the interface.
[MCE] interface gigabitethernet 1/1/1
[MCE-GigabitEthernet1/1/1] ip binding vpn-instance vpn1
[MCE-GigabitEthernet1/1/1] ipv6 address 2001:1::1 64
[MCE-GigabitEthernet1/1/1] quit
# Bind interface GigabitEthernet 1/1/2 to VPN instance
vpn2
, and configure an IPv6 address for
the interface.
[MCE] interface gigabitethernet 1/1/2
[MCE-GigabitEthernet1/1/2] ip binding vpn-instance vpn2
[MCE-GigabitEthernet1/1/2] ipv6 address 2002:1::1 64
[MCE-GigabitEthernet1/1/2] quit
# On PE 1, configure VPN instances
vpn1
and
vpn2
, and specify an RD and route targets for
each VPN instance.
<PE1> system-view
[PE1] ip vpn-instance vpn1
[PE1-vpn-instance-vpn1] route-distinguisher 10:1
[PE1-vpn-instance-vpn1] vpn-target 10:1
[PE1-vpn-instance-vpn1] quit
[PE1] ip vpn-instance vpn2
[PE1-vpn-instance-vpn2] route-distinguisher 20:1
[PE1-vpn-instance-vpn2] vpn-target 20:1
[PE1-vpn-instance-vpn2] quit
2.
Configure routing between the MCE and VPN sites:
The MCE is connected to VPN 1 directly, and no routing protocol is enabled in VPN 1.
Therefore, you can configure IPv6 static routes.
# On VR 1, assign IPv6 address 2001:1::2/64 to the interface connected to the MCE and
2012:1::2/64 to the interface connected to VPN 1. (Details not shown.)
# On VR 1, configure a default route with the next hop as 2001:1::1.
<VR1> system-view
[VR1] ipv6 route-static :: 0 2001:1::1
# On the MCE, configure an IPv6 static route to 2012:1::/64 with the next hop 2001:1::2. Bind
the static route to VPN instance
vpn1
.
[MCE] ipv6 route-static vpn-instance vpn1 2012:1:: 64 2001:1::2
# Run RIPng in VPN 2. Configure RIPng process 20 for the VPN instance
vpn2
on the MCE, so
that the MCE can learn the routes of VPN 2 and add them to the routing table of the VPN
instance
vpn2
.
[MCE] ripng 20 vpn-instance vpn2
# Advertise subnet 2002:1::/64.
[MCE] interface gigabitethernet 1/1/2
[MCE-GigabitEthernet1/1/2] ripng 20 enable
[MCE-GigabitEthernet1/1/2] quit
# On VR 2, assign IPv6 address 2002:1::2/64 to the interface connected to the MCE. (Details
not shown.)
# On VR 2, configure RIPng and advertise subnets 2012::/64 and 2002:1::/64.
<VR2> system-view
[VR2] ripng 20
[VR2-ripng-20] quit