Setting the hop limit, Configuring parameters for ra messages, 6to4 relay configuration example – H3C Technologies H3C S12500 Series Switches User Manual
Page 179
166
•
Configure Switch B:
# Configure an IPv4 address for VLAN-interface 100.
<SwitchB> system-view
[SwitchB] interface vlan-interface 100
[SwitchB-Vlan-interface100] ip address 5.1.1.1 24
[SwitchB-Vlan-interface100] quit
# Configure a 6to4 address for VLAN-interface 101.
[SwitchB] interface vlan-interface 101
[SwitchB-Vlan-interface101] ipv6 address 2002:0501:0101:1::1/64
[SwitchB-Vlan-interface101] quit
# Create a 6to4 tunnel interface tunnel 0.
[SwitchB] interface tunnel 0 mode ipv6-ipv4 6to4
# Configure a 6to4 address for the tunnel interface.
[SwitchA-Tunnel0] ipv6 address 2002:0501:0101::1/64
# Specify the source interface as VLAN-interface 100 for the tunnel interface.
[SwitchB-Tunnel0] source vlan-interface 100
[SwitchB-Tunnel0] quit
# Configure a static route destined for 2002::/16 through the tunnel interface.
[SwitchB] ipv6 route-static 2002:: 16 tunnel 0
420B
Verifying the configuration
# Ping Host B from Host A or ping Host A from Host B. The ping operation succeeds.
D:\>ping6 -s 2002:201:101:1::2 2002:501:101:1::2
Pinging 2002:501:101:1::2
from 2002:201:101:1::2 with 32 bytes of data:
Reply from 2002:501:101:1::2: bytes=32 time=13ms
Reply from 2002:501:101:1::2: bytes=32 time=1ms
Reply from 2002:501:101:1::2: bytes=32 time=1ms
Reply from 2002:501:101:1::2: bytes=32 time<1ms
Ping statistics for 2002:501:101:1::2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 13ms, Average = 3ms
310B
6to4 relay configuration example
By default, Ethernet, VLAN, and aggregate interfaces are down. To configure such an interface, bring
the interface up by executing the undo shutdown command.
421B
Network requirements
As shown in
808H
Figure 69
, Switch A is a 6to4 switch, and 6to4 addresses are used on the connected IPv6
network. Switch B serves as a 6to4 relay switch and is connected to the IPv6 network (2001::/16).
Configure a 6to4 tunnel between Switch A and Switch B to make Host A and Host B reachable to each
other.