Configuring a 6to4 tunnel, 6to4 tunnel configuration example – H3C Technologies H3C S12500 Series Switches User Manual
Page 177
164
155B
Configuring a 6to4 tunnel
Follow these guidelines when you configure a 6to4 tunnel:
•
You do not need to configure a destination address for a 6to4 tunnel, because the destination IPv4
address is embedded in the 6to4 IPv6 address.
•
Because automatic tunnels do not support dynamic routing, you must configure a static route
destined for the destination IPv6 network if the destination IPv6 network is not in the same subnet
as the IPv6 address of the tunnel interface. You can specify the local tunnel interface as the egress
interface of the route or specify the IPv6 address of the peer tunnel interface as the next hop of the
route. For the detailed configuration, see Layer 3—IP Routing Configuration Guide.
•
The automatic tunnel interfaces using the same encapsulation protocol cannot use the same source
IP address.
To configure a 6to4 tunnel:
Step Command
Remarks
1.
Enter system view.
system-view N/A
2.
Enter 6to4 tunnel interface
view.
interface tunnel number [ mode
ipv6-ipv4 6to4 ]
N/A
3.
Specify an IPv6 address
for the tunnel interface.
For configuration details, see
"Configuring IPv6 basics."
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.
Return to system view.
quit
N/A
309B
6to4 tunnel 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.
417B
Network requirements
As shown in
807H
Figure 68
, 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.