R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)

231
Figure 90 Network diagram
Configuration procedure
Before you configure a DS-Lite tunnel, make sure Router A and Router B are reachable to each other.
In this example, Router A and Router C are in the same network segment. Otherwise, you must deploy a
DHCPv6 relay agent between them. DHCPv6 relay agent is beyond the scope of this document. For more
information about DHCPv6, see "Configuring DHCPv6 relay agent."
Configure Router A (the CPE):
# Enable IPv6.
<RouterA> system-view
[RouterA] ipv6
# Configure an IPv4 address for interface Ethernet1/1.
[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] ip address 10.0.0.2 255.255.255.0
[RouterA-Ethernet1/1] quit
# Configure an IPv6 address for interface Ethernet1/2 (the physical interface of the tunnel).
[RouterA] interface Ethernet1/2
[RouterA- Ethernet1/2] ipv6 address 1::1 64
[RouterA- Ethernet1/2] quit
# Create interface Tunnel 1.
[RouterA] interface tunnel 1
# Configure an IPv4 address for interface Tunnel 1.
[RouterA-Tunnel1] ip address 30.1.2.1 255.255.255.0
# Specify the tunnel encapsulation mode as IPv4 over IPv6.
[RouterA-Tunnel1] tunnel-protocol ipv4-ipv6 dslite-cpe
# Configure a source interface for Tunnel 1
[RouterA-Tunnel1] source ethernet 1/2
[RouterA-Tunnel1] quit
# Configure a static route to the public IPv4 network.
[RouterA] ip route-static 20.1.1.0 255.255.255.0 tunnel 1
Configure Router B (the AFTR):
# Enable IPv6.
<RouterB> system-view
[RouterB] ipv6
# Configure an IPv6 address for interface Ethernet 1/1 (the physical interface of the tunnel).