Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Basic DS-Lite Configuration

DS-Lite employs IPv4-over-IPv6 tunnels to cross an IPv6 access network to reach a carrier-grade IPv4-IPv4 NAT. This facilitates the phased introduction of IPv6 on the Internet by providing backward compatibility with IPv4. See Understanding IPv6 Dual-Stack Lite.

Requirements

The following hardware components can perform DS-Lite:

  • M Series Multiservice Edge routers with Multiservices PICs.

  • T Series Core routers with Multiservices PICs.

  • MX Series 5G Universal Routing Platforms with Multiservices DPCs. Starting in Junos OS release 17.4R1, DS-Lite is supported on MX Series routers with MS-MPCs and MS-MICs.Starting in Junos OS release 19.2R1, DS-Lite is supported on MX Virtual Chassis and MX Broadband Network Gateway (BNG) routers.

    Note:

    This example is based on a MS-DPC style IP services. As a result a sp-x/x/x interface is used to direct traffic into the service engine. When using a MS-MPC or MS-MIC the services interface takes the form of ms-x/x/x. Be sure to adapt this example as needed for the specifics of your hardware.

Configuration Overview and Topology

This example describes how configure an MX Series router with an MS-DPC as an AFTR to facilitate the flow shown in Figure 1.

Figure 1: DS-Lite TopologyDS-Lite Topology

In this example, the DS-Lite softwire concentrator, or AFTR, is an MX Series router with two Gigabit interfaces and a Services DPC. The interface facing the B4 element is ge-3/1/5 and the interface facing the Internet is ge-3/1/0.

Configuration

Chassis Configuration

Step-by-Step Procedure

To configure the service PIC (FPC 0 Slot 0) with the Layer 3 service package:

  1. Enter the edit chassis hierarchy level.

  2. Configure the Layer 3 service package.

Interfaces Configuration

Step-by-Step Procedure

To configure interfaces facing the B4 (softwire initiator) and facing the Internet:

  1. Go the [edit interfaces] edit hierachy level for ge-3/1/0, which faces the Internet.

  2. Define the interface.

  3. Go to the [edit interfaces] hierachy level for ge-3/1/5, which faces the B4.

  4. Define the interface.

  5. Go to the [edit interfaces] hierarchy level for sp-0/0/0, used to host the DS-Lite AFTR.

    Note:

    The services interface is used to enable a number of routing services such as stateful firewall filters, IPSec, and Network Address Translation (NAT). Within a Services Router, packets are routed to this internal interface for encapsulation or processing, depending on the service that is configured. The services interface is an internal interface and is not associated with a physical medium. You must configure the service interface in order to use it for a service set.

  6. Configure the services interface.

Results

Network Address and Port Translation Configuration

Step-by-Step Procedure

To configure NAPT:

  1. Go to the [edit services nat] hierarchy level.

  2. Define a NAT pool p1.

  3. Define a NAT rule, beginning with the match direction.

  4. Define a term for the rule, beginning with a from clause.

  5. Define the desired translation in a then clause. In this case, use dynamic source translation.

  6. (Optional) Configure logging of translation information for the rule.

Results

Softwire Configuration

Step-by-Step Procedure

To configure the DS-Lite softwire concentrator, static route, and associated rules:

  1. Go to the [edit services softwire] hierarchy level.

  2. Define the DS-Lite softwire concentrator. This includes the softwire IPv6 address. This address is used to support an IPv4 over IPv6 tunnel with the B4 router. A corresponding IP over IP tunnel is defined on the B4 router. Typically a static route is used at both ends to direct traffic destined for the remote end of the tunnel over the IPv6 link connecting the B4 and AFTR routers.

  3. Define the softwire rule.

  4. Define the static route to the B4 end of the IP over IP tunnel. In this example the B4 router uses the IPv6 address 5002::1/128 address to source traffic sent over the IP tunnel to the AFTR node. This address is assigned to a loopback interface so it can be used as the tunnel source address.

Results

Service Set Configuration

Step-by-Step Procedure

Configure a service set that includes softwire and NAT rules and specifies either interface-service or next-hop service. This example uses a next-hop service.

  1. Go to the [edit services service-set] hierarchy level, naming the service set.

  2. Define the NAT rule to be used for IPv4-to-IPv4 translation.

  3. Define the softwire rule to define the softwire tunnel.

  4. Define the interface service,

    Tip:

    In order to avoid or minimize IPv6 fragmentation, you can configure a TCP maximum segment size (MSS) for your service set.

  5. (Optional) Define a TCP MSS.

Results

Release History Table
Release
Description
19.2R1
Starting in Junos OS release 19.2R1, DS-Lite is supported on MX Virtual Chassis and MX Broadband Network Gateway (BNG) routers.
17.4R1
Starting in Junos OS release 17.4R1, DS-Lite is supported on MX Series routers with MS-MPCs and MS-MICs.