beautypg.com

H3C Technologies H3C S6800 Series Switches User Manual

Page 42

background image

35

# Bind VLAN-interface 10 with VPN instance vpn1, and configure an IPv6 address for the VLAN

interface.

[MCE] interface vlan-interface 10

[MCE-Vlan-interface10] ip binding vpn-instance vpn1

[MCE-Vlan-interface10] ipv6 address 2001:1::1 64

[MCE-Vlan-interface10] quit

# Configure VLAN 20, add port FortyGigE 1/0/2 to VLAN 20, bind VLAN-interface 20 with VPN
instance vpn2, and assign an IPv6 address to VLAN-interface 20.

[MCE] vlan 20

[MCE-vlan20] port fortygige 1/0/2

[MCE-vlan20] quit

[MCE] interface vlan-interface 20

[MCE-Vlan-interface20] ip binding vpn-instance vpn2

[MCE-Vlan-interface20] ipv6 address 2002:1::1 64

[MCE-Vlan-interface20] quit

# On PE 1, configure VPN instances vpn1 and vpn2, and specify an RD and route targets for each

VPN instance.

system-view

[PE1] ip vpn-instance vpn1

[PE1-vpn-instance-vpn1] route-distinguisher 30: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 40: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. Add ports to VLANs. (Details not shown.)
# On VR 1, configure a default route with the next hop being 2001:1::1.

system-view

[VR1] ipv6 route-static :: 0 2001:1::1

# On the MCE, configure an IPv6 static route to 2012:1::/64, specify the next hop as 2001:1::2,

and bind the static route with VPN instance vpn1.

[MCE] ipv6 route-static vpn-instance vpn1 2012:1:: 64 2001:1::2

# Configure the IP address of the interface Loopback 0 as 101.101.10.1 for the MCE. Specify the
Loopback interface address as the router ID for the MCE. (Details not shown.)
# Run OSPFv3 in VPN 2. Configure OSPFv3 process 30 for 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 VPN instance

vpn2.

[MCE] ospfv3 30 vpn-instance vpn2

[MCE-ospfv3-30] router-id 101.101.10.1

[MCE-ospfv3-30] quit

# Enable OSPFv3 on VLAN-interface 20.

[MCE] interface vlan-interface 20