339
C:\> ping 20.1.1.2
Pinging 20.1.1.2 with 32 bytes of data:
Reply from 20.1.1.2: bytes=32 time=51ms TTL=255
Reply from 20.1.1.2: bytes=32 time=44ms TTL=255
Reply from 20.1.1.2: bytes=32 time=1ms TTL=255
Reply from 20.1.1.2: bytes=32 time=1ms TTL=255
Ping statistics for 20.1.1.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 51ms, Average = 24ms
Configuring an IPv6 over IPv6 tunnel
Follow these guidelines when you configure an IPv6 over IPv6 tunnel:
• The tunnel destination address specified on the local device must be identical with the tunnel
source address specified on the tunnel peer device.
• Do not specify the same source and destination addresses for local tunnel interfaces in the
same tunnel mode.
• The IPv6 address of the tunnel interface cannot be on the same subnet as the destination
address configured for the tunnel interface.
• To ensure correct packet forwarding, identify whether the destination IPv6 network and the IPv6
address of the local tunnel interface are on the same subnet. If they are not, configure a route
reaching the destination IPv6 network through the tunnel interface. You can configure the route
by using one of the following methods:
{ Configure a static route, and specify the local tunnel interface as the egress interface or
specify the IPv6 address of the peer tunnel interface as the next hop.
{ Enable a dynamic routing protocol on both tunnel interfaces to achieve the same purpose.
For more information about route configuration, see Layer 3—IP Routing Configuration Guide.
• The destination address of the route passing the tunnel interface cannot be on the same subnet
as the destination address configured for the tunnel interface.
To configure an IPv6 over IPv6 tunnel:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter IPv6 tunnel interface
view.
interface tunnel
number [
mode
ipv6
] N/A
3. Configure an IPv6 address
for the tunnel interface.
See "Configuring basic IPv6 settings."
By default, no IPv6 address
is configured for the tunnel
interface.
4. Configure the source address
or source interface for the
tunnel interface.
source
{ ipv6-address | interface-type
interface-number }
By default, no source
address or interface is
configured for the tunnel.
If you specify a source
address, it is used as the
source IPv6 address of
tunneled packets.
If you specify a source
interface, the lowest IPv6
address of this interface is
used as the source IPv6