H3C Technologies H3C S12500 Series Switches User Manual
Page 245

231
# Configure interface GigabitEthernet 3/0/1.
[SwitchA] ipv6
[SwitchA] vlan 100
[SwitchA-vlan100] port GigabitEthernet 3/0/1
[SwitchA-vlan100] quit
[SwitchA] interface vlan-interface 100
[SwitchA-Vlan-interface100] ipv6 address 3001::1 64
[SwitchA-Vlan-interface100] quit
# Configure interface GigabitEthernet 3/0/2, the physical interface of the tunnel.
[SwitchA] vlan 101
[SwitchA-vlan101] port GigabitEthernet 3/0/2
[SwitchA-vlan101] quit
[SwitchA] interface vlan-interface 101
[SwitchA-Vlan-interface101] ip address 1.1.1.1 255.255.255.0
[SwitchA-Vlan-interface101] quit
# Create a tunnel interface Tunnel1.
[SwitchA] interface tunnel 1
# Configure an IPv6 address for the tunnel interface.
[SwitchA-Tunnel1] ipv6 address 2001::1 64
# Configure the tunnel encapsulation mode as GRE over IPv4.
[SwitchA-Tunnel1] tunnel-protocol gre
# Configure a source address for the tunnel interface (IP address of the VLAN interface to which
GigabitEthernet 3/0/2 belongs).
[SwitchA-Tunnel1] source 1.1.1.1
# Configure a destination address for the tunnel interface (IP address of the VLAN interface to
which GigabitEthernet 3/0/2 of Switch B belongs).
[SwitchA-Tunnel1] destination 1.1.1.2
[SwitchA-Tunnel1] quit
# Configure a static route from Switch A through tunnel interface Tunnel1 to Group 2.
[SwitchA] ipv6 route-static 3002:: 64 tunnel 1
2.
Configure Switch B:
# Configure interface GigabitEthernet 3/0/1.
[SwitchB] ipv6
[SwitchB] vlan 100
[SwitchB-vlan100] port GigabitEthernet 3/0/1
[SwitchB-vlan100] quit
[SwitchB] interface vlan-interface 100
[SwitchB-Vlan-interface100] ipv6 address 3002::1 64
[SwitchB-Vlan-interface100] quit
# Configure interface GigabitEthernet 3/0/2, the physical interface of the tunnel.
[SwitchB] vlan 101
[SwitchB-vlan101] port GigabitEthernet 3/0/2
[SwitchB-vlan101] quit
[SwitchB] interface vlan-interface 101