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

275
# Specify an IPv6 address for the tunnel interface.
[RouterB-Tunnel0] ipv6 address 3001::2/64
# Specify GigabitEthernet 2/1/2 as the source interface of the tunnel interface.
[RouterB-Tunnel0] source gigabitethernet 2/1/2
# Specify the destination address for the tunnel interface as the IP address of GigabitEthernet
2/1/2 on Router A.
[RouterB-Tunnel0] destination 192.168.50.1
[RouterB-Tunnel0] quit
# Configure a static route destined for IPv6 network 1 through Tunnel 0 on Router B.
[RouterB] ipv6 route-static 3002:: 64 tunnel 0
Verifying the configuration
# Use the display ipv6 interface command to display tunnel interface status on Router A and Router B.
The output shows that the interface tunnel 0 is up. (Details not shown.)
# Router B and Router A can ping the IPv6 address of GigabitEthernet 2/1/1 of each other. For example,
ping the IPv6 address of GigabitEthernet 2/1/1 on Router B from Router A.
[RouterA] ping ipv6 3003::1
Ping6(56 data bytes) 3001::1 --> 3003::1, press CTRL C to break
56 bytes from 3003::1, icmp_seq=0 hlim=64 time=45.000 ms
56 bytes from 3003::1, icmp_seq=1 hlim=64 time=10.000 ms
56 bytes from 3003::1, icmp_seq=2 hlim=64 time=4.000 ms
56 bytes from 3003::1, icmp_seq=3 hlim=64 time=10.000 ms
56 bytes from 3003::1, icmp_seq=4 hlim=64 time=11.000 ms
--- Ping6 statistics for 3003::1 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 4.000/16.000/45.000/14.711 ms
Configuring an automatic IPv4-compatible IPv6
tunnel
Follow these guidelines when you configure an automatic IPv4-compatible IPv6 tunnel:
You do not need to configure a destination address for an automatic IPv4-compatible IPv6 tunnel.
The destination address of the tunnel is embedded in the destination IPv4-compatible IPv6 address
of packets.
The source addresses of local tunnels of the same tunnel mode cannot be the same.
To configure an automatic IPv4-compatible IPv6 tunnel:
Ste
p
Command
Remarks
1. Enter system view.
system-view
N/A
2. Enter automatic
IPv4-compatible IPv6 tunnel
interface view.
interface tunnel number [ mode
ipv6-ipv4 auto-tunnel ]
N/A