222
Step Command Remarks
3. Configure an IPv6 address for
the tunnel interface.
For configuration details, see
"Configuring basic IPv6 settings."
No IPv6 a
ddress is configured for
the tunnel interface by default.
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.
The specified source address or
the IPv6 address of the specified
source interface is used as the
source IPv6 address of tunneled
packets.
5. Configure the destination
address for the tunnel
interface.
destination ipv6-address
By default, no destination
address is configured for the
tunnel.
The tunnel destination address
must be the IPv6 address of the
receiving interface on the tunnel
peer. It is used as the destination
IPv6 address of tunneled packets.
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
The default setting is disabled.
Configuration example
Network requirements
As shown in Figure 92, configure an IPv6 over IPv6 tunnel between Switch A and Switch B so the two IP
networks can reach each other without disclosing their IPv6 addresses.
Figure 92 Network diagram
Configuration procedure
Make sure Switch A and Switch B have the corresponding VLAN interfaces created and can reach each
other through IPv6.
1. Configure Switch A:
# Specify an IPv6 address for VLAN-interface 100.
<SwitchA> system-view
Vlan-int101
2001::11:1/64
Vlan-int100
2002:3::1/64
Vlan-int100
2002:1::1/64
Vlan-int101
2002::22:1/64
Switch A
IPv6 network
IPv6
group 1
Tunnel1
3001::1:1/64
Tunnel2
3001::1:2/64
IPv6
group 2
Switch B
IPv6 over IPv6 tunnel
Service loopback port
XGE1/1/5XGE1/1/5