beautypg.com

H3C Technologies H3C S10500 Series Switches User Manual

Page 189

background image

178

[SwitchA-Vlan-interface101] quit

# Create service loopback group 1 to support the tunnel service.

[SwitchA] service-loopback group 1 type tunnel

# Assign GigabitEthernet 1/0/3 to service loopback group 1, and disable STP and LLDP on the
interface.

[SwitchA] interface GigabitEthernet 1/0/3

[SwitchA-GigabitEthernet1/0/3] undo stp enable

[SwitchA-GigabitEthernet1/0/3] undo lldp enable

[SwitchA-GigabitEthernet1/0/3] port service-loopback group 1

[SwitchA-GigabitEthernet1/0/3] quit

# Create interface Tunnel 1.

[SwitchA] interface tunnel 1

# Configure an IPv6 address for interface Tunnel 1.

[SwitchA-Tunnel1] ipv6 address 3001::1:1 64

# Configure the tunnel encapsulation mode.

[SwitchA-Tunnel1] tunnel-protocol ipv6-ipv6

# Configure the source address for interface Tunnel 1 (IP address of VLAN-interface 101).

[SwitchA-Tunnel1] source 2002:11::1

# Configure the destination address for interface Tunnel 1 (IP address of VLAN-interface 101 of Switch
B).

[SwitchA-Tunnel1] destination 2002::22:1

# Reference service loopback group 1 on the tunnel.

[SwitchA-Tunnel1] service-loopback-group 1

[SwitchA-Tunnel1] quit

# Configure a static route from Switch A through interface Tunnel 1 to Group 2.

[SwitchA] ipv6 route-static 2002:3:: 64 tunnel 1

Configuration on Switch B

# Enable IPv6.

system-view

[SwitchB] ipv6

# Configure an IPv6 address for VLAN-interface 100.

[SwitchB] interface vlan-interface 100

[SwitchB-Vlan-interface100] ipv6 address 2002:3::1 64

[SwitchB-Vlan-interface100] quit

# Configure an IPv6 address for VLAN-interface 101 (the physical interface of the tunnel).

[SwitchB] interface vlan-interface 101

[SwitchB-Vlan-interface101] ipv6 address 2002::22:1 64

[SwitchB-Vlan-interface101] quit

# Create service loopback group 1 to support the tunnel service.

[SwitchB] service-loopback group 1 type tunnel

# Assign GigabitEthernet 1/0/3 to service loopback group 1, and disable STP and LLDP on the
interface.

[SwitchB] interface GigabitEthernet 1/0/3