Configuration procedure

To configure the B4 router of a DS-Lite tunnel:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter IPv4 over IPv6 tunnel interface view or IPv6 tunnel interface view.

interface tunnel number [ mode ipv6 ]

N/A

3. Specify an IPv4 address for the tunnel interface.

ip address ip-address { mask | mask-length } [ sub ]

By default, no IPv4 address is specified for the tunnel interface.

4. Specify the source address or source interface for the tunnel.

source { ipv6-address | interface-type interface-number }

By default, no source address or interface is specified for the tunnel.

If you specify a source address, it is used as the source IPv6 address of tunneled packets.

If you specify a source interface, the lowest IPv6 address of this interface is used as the source IPv6 address of tunneled packets.

5. Specify the destination address for the tunnel.

destination { ipv6-address | dhcp-alloc interface-type interface-number }

By default, no destination address is configured for the tunnel.

The tunnel destination address must be the IPv6 address of the receiving interface on the tunnel peer. It is used as the destination IPv6 address of tunneled packets.

Specify the tunnel source address configured on the AFTR as the destination address. Or, specify an interface to obtain the AFTR's IPv6 address from the received DHCPv6 packets for automatic DS-Lite tunnel establishment.


[NOTE: ]

NOTE:

For a B4 router to automatically establish a DS-Lite tunnel with an AFTR, configure DHCPv6 client, static or dynamic IPv6 DNS, and the destination dhcp-alloc command on the B4 router. In addition, make sure an DHCPv6 server and an IPv6 DNS server (for dynamic DNS) exist in the network. For more information about DHCPv6 server, DHCPv6 client, and IPv6 DNS, see Layer 3—IP Services Configuration Guide.


To configure the AFTR of a DS-Lite tunnel:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter the view of the tunnel interface on the AFTR.

interface tunnel number [ mode ds-lite-aftr ]

N/A

3. Specify an IPv4 address for the tunnel interface.

ip address ip-address { mask | mask-length } [ sub ]

By default, no IPv4 address is specified for the tunnel interface.

4. Specify the source address or source interface for the tunnel.

source { ipv6-address | interface-type interface-number }

By default, no source address or interface is specified for the tunnel.

The specified source address or the lowest IPv6 address of the specified source interface is used as the source IPv6 address of tunneled packets.

5. Return to system view.

quit

N/A

6. Enter the view of the interface that is connected to the IPv4 public network.

interface interface-type interface-number

N/A

7. Enable DS-Lite tunneling on the interface.

ds-lite enable

By default, DS-Lite tunneling is disabled.

Only after you use this command, the AFTR can tunnel IPv4 packets from the public IPv4 network to the B4 router.