beautypg.com

H3C Technologies H3C S10500 Series Switches User Manual

Page 56

background image

45

[PE1-Vlan-interface40] ipv6 address 40::2 64

[PE1-Vlan-interface40] quit

# Configure the IP address of the interface Loopback0 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, bind the process to VPN instance vpn1, and redistribute the

IPv6 static route of VPN 1.

[MCE] ospfv3 10 vpn-instance vpn1

[MCE-ospf-10] router-id 101.101.10.1

[MCE-ospf-10] import-route static

[MCE-ospf-10] quit

# Enable OSPFv3 on VLAN-interface 30.

[MCE] interface vlan-interface 30

[MCE-Vlan-interface30] ospfv3 10 area 0.0.0.0

[MCE-Vlan-interface30] quit

# On PE 1, enable OSPFv3 process 10 and bind the process 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 VLAN-interface 30.

[PE1] interface vlan-interface 30

[PE1-Vlan-interface30] ospfv3 10 area 0.0.0.0

[PE1-Vlan-interface30] quit

# On PE 1, display the routing table of VPN 1.

[PE1] display ipv6 routing-table vpn-instance vpn1

Routing Table : vpn1

Destinations : 5 Routes : 5

Destination: ::1/128 Protocol : Direct

NextHop : ::1 Preference: 0

Interface : InLoop0 Cost : 0

Destination: 30::/64 Protocol : Direct

NextHop : 30::2 Preference: 0

Interface : Vlan30 Cost : 0

Destination: 30::2/128 Protocol : Direct

NextHop : ::1 Preference: 0

Interface : InLoop0 Cost : 0

Destination: 2012:1::/64 Protocol : OSPFv3

NextHop : FE80::202:FF:FE02:2 Preference: 150

Interface : Vlan30 Cost : 1

Destination: FE80::/10 Protocol : Direct

NextHop : :: Preference: 0

Interface : NULL0 Cost : 0

The output shows that PE 1 has learned the private route of VPN 1 through OSPFv3.
Take similar procedures to configure OSPFv3 process 20 between the MCE and PE 1 and redistribute
VPN 2’s routes from RIPng process 20 into the OSPFv3 routing table of the MCE. The following output

shows that PE 1 has learned the private route of VPN 2 through OSPFv3.