Configuration example, Network requirements, Configuration considerations – H3C Technologies H3C S12500-X Series Switches User Manual
Page 156: Verifying the configuration
145
Step Command
Remarks
3.
Specify an IPv6 address
for the tunnel interface.
For configuration details, see
"
Configuring basic IPv6 settings
."
No IPv6 address is configured for the
tunnel interface by default.
4.
Configure a source
address or source
interface for the tunnel
interface.
source { ip-address | interface-type
interface-number }
By default, no source address or
source interface is configured for the
tunnel interface.
The specified source address or the
primary IP address of the specified
source interface is used as the source
IP address of tunneled packets.
5.
(Optional.) Set the DF bit
for tunneled packets.
tunnel dfbit enable
The DF bit is not set for tunneled
packets by default.
6.
Return to system view.
quit
N/A
7.
(Optional.) Enable
dropping of IPv6 packets
using IPv4-compatible
IPv6 addresses.
tunnel discard
ipv4-compatible-packet
Optional.
The default setting is disabled.
Configuration example
Network requirements
As shown in
, configure a 6to4 tunnel between 6to4 switches Switch A and Switch B so Host
A and Host B can reach each other over the IPv4 network.
Figure 56 Network diagram
Configuration considerations
To enable communication between 6to4 networks, configure 6to4 addresses for 6to4 switches and hosts
in the 6to4 networks.
•
The IPv4 address of VLAN-interface 100 on Switch A is 2.1.1.1/24, and the corresponding 6to4
prefix is 2002:0201:0101::/48. Host A must use this prefix.
•
The IPv4 address of VLAN-interface 100 on Switch B is 5.1.1.1/24, and the corresponding 6to4
prefix is 2002:0501:0101::/48. Host B must use this prefix.