R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)
232
[RouterB] interface ethernet 1/1
[RouterB-Ethernet1/1] ipv6 address 1::2 64
[RouterB-Ethernet1/1] quit
# Configure an IPv4 address for interface Ethernet 1/2.
[RouterB] interface ethernet 1/2
[RouterB- Ethernet1/2] ip address 20.1.1.1 24
[RouterB- Ethernet1/2] quit
# Create interface Tunnel 2.
[RouterB] interface tunnel 2
# Configure an IPv4 address for interface Tunnel 2.
[RouterB-Tunnel2] ip address 30.1.2.2 255.255.255.0
# Specify the tunnel encapsulation mode as IPv4 over IPv6.
[RouterB-Tunnel2] tunnel-protocol ipv4-ipv6 dslite-aftr
# Configure the source interface for interface Tunnel 2.
[RouterB-Tunnel2] source ethernet 1/1
[RouterB-Tunnel2] quit
# Configure NAT and use the IP address of interface Ethernet 1/2 as the translated IP address.
[RouterB] acl number 2000
[RouterB-acl-basic-2000] rule permit source 10.0.0.0 0.0.0.255
[RouterB-acl-basic-2000] quit
[RouterB] interface ethernet 1/2
[RouterB-Ethernet1/2] nat outbound 2000
[RouterB-Ethernet1/2] quit
• Configure Router C (the DHCPv6 server):
# Enable IPv6.
<RouterC> system-view
[RouterC] ipv6
# Enable DHCPv6.
[RouterC] ipv6 dhcp server enable
# Create address pool 1 and specify the address of the AFTR (1::2).
[RouterC] ipv6 dhcp pool 1
[RouterC-dhcp6-pool-1] ds-lite address 1::2
[RouterC-dhcp6-pool-1] quit
# Configure the IPv6 address of interface Ethernet1/1.
[RouterC] interface ethernet 1/1
[RouterC-Ethernet1/1] ipv6 address 1::3 64
# Apply address pool 1 to the interface.
[RouterC-Ethernet1/1] ipv6 dhcp server apply pool 1
Verifying the configuration
Display the status of the tunnel interfaces on Router A and Router B:
[RouterA] display interface tunnel 1
Tunnel1 current state: UP
Line protocol current state: UP
Description: Tunnel1 Interface
The Maximum Transmit Unit is 1460










