R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)

276
Ste
p
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.
Configuration example
Network requirements
As shown in Figure 112, dual-stack routers Router A and Router B communicate over an IPv4 network.
Configure an automatic IPv4-compatible IPv6 tunnel between the two routers to enable IPv6
communications over the IPv4 network.
Figure 112 Network diagram
Configuration procedure
Before configuring an automatic IPv4-compatible IPv6 tunnel, make sure Router A and Router B can
reach each other through IPv4.
Configure Router A:
# Specify an IPv4 address for GigabitEthernet 2/1/1.
<RouterA> system-view
[RouterA] interface gigabitethernet 2/1/1
[RouterA-GigabitEthernet2/1/1] ip address 192.168.100.1 255.255.255.0
[RouterA-GigabitEthernet2/1/1] quit
# Create an automatic IPv4-compatible IPv6 tunnel.
[RouterA] interface tunnel 0 mode ipv6-ipv4 auto-tunnel
# Specify an IPv4-compatible IPv6 address for the tunnel interface.
[RouterA-Tunnel0] ipv6 address ::192.168.100.1/96
# Specify GigabitEthernet 2/1/1 as the source interface of the tunnel interface.
[RouterA-Tunnel0] source gigabitethernet 2/1/1
Configure Router B:
# Specify an IPv4 address for GigabitEthernet 2/1/1.
<RouterB> system-view