542
# Configure an IPv6 address for the subinterface.
[PE1-GigabitEthernet1/1/1.2] ipv6 address 2002:2::4 64
[PE1-GigabitEthernet1/1/1.2] quit
# Configure the IP address of the interface Loopback 0 as 101.101.10.1 for the MCE and as
100.100.10.1 for PE 1. Specify the loopback interface address as the router ID for the MCE and
PE 1. (Details not shown.)
# Enable OSPFv3 process 10 on the MCE, and bind the process to VPN instance
vpn1
.
[MCE] ospfv3 10 vpn-instance vpn1
# Redistribute the IPv6 static route of VPN 1.
[MCE-ospf-10] router-id 101.101.10.1
[MCE-ospf-10] import-route static
[MCE-ospf-10] quit
# Enable OSPFv3 on interface GigabitEthernet 1/1/3.1.
[MCE] interface gigabitethernet 1/1/3.1
[MCE-GigabitEthernet1/1/3.1] ospfv3 10 area 0.0.0.0
[MCE-GigabitEthernet1/1/3.1] quit
# On PE 1, enable OSPFv3 process 10 and bind it to VPN instance
vpn1
.
[PE1] ospfv3 10 vpn-instance vpn1
[PE1-ospf-10] router-id 100.100.10.1
[PE1-ospf-10] quit
# Enable OSPFv3 on subinterface GigabitEthernet 1/1/1.1.
[PE1] interface gigabitethernet 1/1/1.1
[PE1-GigabitEthernet1/1/1.1] ospfv3 10 area 0.0.0.0
[PE1-GigabitEthernet1/1/1.1] quit
Verifying the configuration
# Verify that PE 1 has learned the private route of VPN 1 through OSPFv3.
[PE1] display ipv6 routing-table vpn-instance vpn1
Destinations : 6 Routes : 6
Destination: ::1/128 Protocol : Direct
NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0
Destination: 2001:2::/64 Protocol : Direct
NextHop : :: Preference: 0
Interface : GE1/1/1.1 Cost : 0
Destination: 2001:2::4/128 Protocol : Direct
NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0
Destination: 2012:1::/64 Protocol : O_ASE2
NextHop : FE80::200:5EFF:FE01:1C05 Preference: 15
Interface : GE1/1/1.1 Cost : 10