Configuration example, Network requirements, Configuration procedure – H3C Technologies H3C S5560 Series Switches User Manual
Page 229

214
Step Command
Remarks
8.
(Optional.) Enable dropping
of IPv6 packets using
IPv4-compatible IPv6
addresses.
tunnel discard
ipv4-compatible-packet
By default, this feature is disabled.
Configuration example
Network requirements
As shown in
, configure an IPv6 over IPv4 tunnel between Switch A and Switch B so the two IPv6
networks can reach each other over the IPv4 network. Because the tunnel destination IPv4 address
cannot be automatically obtained from the destination IPv6 addresses of packets, configure an IPv6 over
IPv4 manual tunnel.
Figure 87 Network diagram
Configuration procedure
Make sure Switch A and Switch B have the corresponding VLAN interfaces created and can reach each
other through IPv4.
1.
Configure Switch A:
# Specify an IPv4 address for VLAN-interface 100.
[SwitchA] interface vlan-interface 100
[SwitchA-Vlan-interface100] ip address 192.168.100.1 255.255.255.0
[SwitchA-Vlan-interface100] quit
# Specify an IPv6 address for VLAN-interface 101.
[SwitchA] interface vlan-interface 101
[SwitchA-Vlan-interface101] ipv6 address 3002::1 64
[SwitchA-Vlan-interface101] quit
# Create service loopback group 1 and specify its service type as tunnel.
[SwitchA] service-loopback group 1 type tunnel
# Add GigabitEthernet 1/0/3 to service loopback group 1.
[SwitchA] interface GigabitEthernet 1/0/3
[SwitchA-GigabitEthernet1/0/3] port service-loopback group 1
[SwitchA-GigabitEthernet1/0/3] quit
# Create the IPv6 over IPv4 manual tunnel interface Tunnel 0.
[SwitchA] interface tunnel 0 mode ipv6-ipv4
# Specify an IPv6 address for the tunnel interface.