R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)
293
[RouterB] interface tunnel 2 mode ds-lite-aftr
# Configure an IPv4 address for the tunnel interface.
[RouterB-Tunnel2] ip address 30.1.2.2 255.255.255.0
# Specify GigabitEthernet 2/1/2 as the source interface of the tunnel interface.
[RouterB-Tunnel2] source gigabitethernet 2/1/2
[RouterB-Tunnel2] quit
# Enable DS-Lite tunneling on GigabitEthernet 2/1/1.
[RouterB] interface gigabitethernet 2/1/1
[RouterB-GigabitEthernet2/1/1] ds-lite enable
# Enable NAT on GigabitEthernet 2/1/1 and use the IP address of GigabitEthernet 2/1/1 as the
translated address.
[RouterB-GigabitEthernet2/1/1] nat outbound
[RouterB-GigabitEthernet2/1/1] quit
• On host A, specify the IP address for the host as 10.0.0.1 and configure a static route to 20.1.1.0/24
with next hop 10.0.0.2. (Details not shown.)
• On host B, specify the IP address for the host as 20.1.1.2. (Details not shown.)
Verifying the configuration
# Use the display interface tunnel command to display the status of the tunnel interfaces on Router A and
Router B. The output shows that the tunnel interfaces are up. (Details not shown.)
# Ping the IPv4 address of host B from host A. The ping operation succeeds.
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 destination address specified for the local tunnel interface must be the source address specified
for the peer tunnel interface, and vice versa.
• The source/destination addresses of local tunnels of the same tunnel mode cannot be the same.
• The IPv6 address of the tunnel interface must not 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 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.