265
[RouterA-Ethernet1/2] ipv6 address 1::1 64
[RouterA-Ethernet1/2] quit
# Create an IPv6 tunnel interface
tunnel1
.
[RouterA] interface tunnel 1 mode ipv6
# Specify an IPv4 address for the tunnel interface.
[RouterA-Tunnel1] ip address 30.1.2.1 255.255.255.0
# Specify the IP address of Ethernet 1/2 as the source address for the tunnel interface.
[RouterA-Tunnel1] source 1::1
# Specify IP address of Ethernet 1/2 on Router B as the destination address for the tunnel interface.
[RouterA-Tunnel1] destination 2::2
[RouterA-Tunnel1] quit
# Configure a static route to the public IPv4 network through the tunnel interface.
[RouterA] ip route-static 20.1.1.0 255.255.255.0 tunnel 1
•
Configure Router B:
# Specify an IPv4 address for Ethernet 1/1.
<RouterB> system-view
[RouterB] interface ethernet 1/1
[RouterB-Ethernet1/1] ip address 20.1.1.1 24
[RouterB-Ethernet1/1] quit
# Specify an IPv6 address for Ethernet 1/2, which is the physical interface of the tunnel.
[RouterB] interface ethernet 1/2
[RouterB-Ethernet1/2] ipv6 address 2::2 64
[RouterB-Ethernet1/2] quit
# Configure a DS-Lite tunnel interface
tunnel2
.
[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 Ethernet 1/2 as the source interface of the tunnel interface.
[RouterB-Tunnel2] source ethernet 1/2
[RouterB-Tunnel2] quit
# Enable DS-Lite tunneling on Ethernet 1/1.
[RouterB] interface ethernet 1/1
[RouterB-Ethernet1/1] ds-lite enable
# Enable NAT on Ethernet 1/1 and use the IP address of Ethernet 1/1 as the translated address.
[RouterB-Ethernet1/1] nat outbound
[RouterB-Ethernet1/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
Summary of Contents for MSR 2600 Series
Page 6: ...We appreciate your comments...
Page 33: ...18 AC vlan1 quit...
Page 118: ...103...