Configuring LDP-signaled L2VPN

Configuration Hierarchy

The diagram illustrates the LDP-signaled L2VPN configuration hierarchy. All LDP-signaled L2VPN configurations are done within an instance, such as the default instance or VRF instance.

LDP-signaled L2VPN Configuration Hierarchy

Configuration Syntax and Commands

The following sections describe the LDP-signaled L2VPN configuration syntax and commands.

Layer 2 Interface Configuration

LDP-signaled L2VPN supports the configuration of Layer 2 logical interfaces.

Syntax:

set interface <name> <attribute> <value>

Attribute Description

<name>

Specify the name of the interface. Example: ifp-0/0/1.

unit <unit-id>

Create a logical interface (also referred to as a sub-interface) under the physical interface

unit <unit-id> interface-type l2vpn-vpws

Specify the type of the L2VPN interface.

unit <unit-id> vlan <outer-vlan-id>

Outer VLAN ID.

unit <unit-id> vlan <inner-vlan-id>

Inner VLAN ID.

unit <unit-id> instance <instance>

Assign the logical interface to an instance.

The following example shows a single-tagged interface configuration:

set interface ifp-0/0/17 unit 100
set interface ifp-0/0/17 unit 100 interface-type l2vpn-vpws
set interface ifp-0/0/17 unit 100 instance default
set interface ifp-0/0/17 unit 100 vlan 100
commit

The following example shows a double-tagged interface configuration:

set interface ifp-0/0/17 unit 200
set interface ifp-0/0/17 unit 200 interface-type l2vpn-vpws
set interface ifp-0/0/17 unit 200 instance default
set interface ifp-0/0/17 unit 200 vlan 200
set interface ifp-0/0/17 unit 200 inner-vlan 201
commit

Instance Configuration

L2VPN VPLS-VPWS Instance Configuration

This section explains how to enable the L2VPN VPLS-VPWS address family in the instance.

By default, the SAFI "vpls-vpws" is disabled, which you should enable for L2VPN Pseudowire.

Syntax:

set instance <name> <attribute> <value>

Attribute Description

<name>

A unique name for the routing instance.

address-family <afi>

Address family identifier (AFI). Supported value: l2vpn

address-family <afi> <safi> a

Subsequent address family identifier (SAFI). Supported values: vpls-vpws

The SAFI vpls-vpws needs to be enabled on the instance.

Example: L2VPN VPLS-VPWS Instance Configuration

set instance default address-family l2vpn vpls-vpws

LDP Instance Configuration

LDP Targeted Neighbor Configuration

The targeted neighbor configuration establishes an LDP neighbor with a remote neighbor that is not directly connected.

Syntax:

set instance <instance> protocol ldp targeted-neighbor <attribute> <value>

Attribute Description

ipv4 <neighbor-address>

IPv4 address of the remote LDP neighbor.

ipv4 <neighbor-address> <source-address>

Neighbhor address to which ldp hello is sent

ipv4 <neighbor-address> <source-address> hold-time <hold-time>

Targeted hold time, <0-65535>, default 45s

ipv4 <neighbor-address> <source-address> interval <interval>

Targeted hello messages interval, <0-65535>, default 15s

ipv4 <neighbor-address> <source-address> neighbor-type <receiver |sender>

Specifies the neighbor type, that is, sender or receiver.

ipv6 <neighbor-address>

IPv6 address of the remote LDP neighbor.

ipv6 <neighbor-address> <source-address>

Neighbhor address to which ldp hello is sent

ipv6 <neighbor-address> <source-address> hold-time <hold-time>

Targeted hold time, <0-65535>, default 45s

ipv6 <neighbor-address> <source-address> interval <interval>

Targeted hello messages interval, <0-65535>, default 15s

ipv6 <neighbor-address> <source-address> neighbor-type <receiver |sender>

Specifies the neighbor type, that is, sender or receiver.

set instance default protocol ldp targeted-neighbor ipv4 198.51.100.1 198.51.100.2
set instance default protocol ldp targeted-neighbor ipv4 198.51.100.5 198.51.100.2

Example: LDP Targeted Neighbor Configuration

supervisor@rtbrick>SPINE01: cfg> show config instance default protocol ldp targeted-neighbor
{
  "rtbrick-config:targeted-neighbor": {
    "ipv4": [
      {
        "neighbor-address": "198.51.100.1",
        "source-address": "198.51.100.2"
      },
      {
        "neighbor-address": "198.51.100.5",
        "source-address": "198.51.100.2"
      }
    ]
  }
}
supervisor@rtbrick>SPINE01: cfg>
LDP Address Family Configuration

The address-family command allows you to enable the address families that LDP will route and configure settings that are specific to that address family.

By default, the SAFI "vpls-vpws" is disabled, which you should enable for L2VPN Pseudowire.

Syntax:

set instance <instance-name> protocol ldp address-family <attribute> <value>

Attribute Description

<afi>

Address family identifier (AFI). Supported values: l2vpn

<afi> <safi>

Subsequent address family. Supported values: vpls-vpws

<afi> <safi> status <enable|disable>

Enable or disable address family.

Example 1: LDP Address Family Configuration for L2VPN Pseudowire

set instance default protocol ldp address-family l2vpn vpls-vpws status enable
supervisor@rtbrick>SPINE01: cfg> show config instance default protocol ldp address-family
{
  "rtbrick-config:address-family": [
    {
      "afi": "l2vpn",
      "safi": "vpls-vpws",
      "status": "enable"
    }
  ]
}
supervisor@rtbrick>SPINE01: cfg>
LDP Pseudowire Configuration

Syntax:

set instance <instance-name> protocol ldp vpls-vpws <attribute> <value>

Attribute Description

interface <interface>

Attachment Circuit L2VPN Interface.

interface <interface> pseudowire-id <pseudowire-id>

Specifies the pseudowire identifier.

interface <interface> neighbor <ipv4/ipv6> address <ipaddress>

Specifies the T-LDP neighbor.

interface <interface> backup-neighbor <ipv4/ipv6> address <ipaddress>

Specifies the redundancy T-LDP neighbor.

interface <interface> control-word <enable/disable>

Specifies whether control-word is enabled or disabled. Default value: disable

Example 1: LDP VPWS Configuration

set instance default protocol ldp vpls-vpws interface ifl-0/0/17/100
set instance default protocol ldp vpls-vpws interface ifl-0/0/17/100 pseudowire-id 100
set instance default protocol ldp vpls-vpws interface ifl-0/0/17/100 control-word enable
set instance default protocol ldp vpls-vpws interface ifl-0/0/17/100 neighbor ipv4 address 192.51.100.1
supervisor@rtbrick>SPINE01: cfg> show config instance default protocol ldp vpls-vpws interface ifl-0/0/17/100
{
  "rtbrick-config:interface": [
    {
      "name": "ifl-0/0/17/100",
      "pseudowire-id": 100,
      "control-word": "enable",
      "neighbor": {
        "ipv4": {
          "address": "192.51.100.1"
        }
      }
    }
  ]
}
supervisor@rtbrick>SPINE01: cfg>

Example 2: LDP VPWS Redundancy Configuration

set instance default protocol ldp vpls-vpws interface ifl-0/0/17/200
set instance default protocol ldp vpls-vpws interface ifl-0/0/17/200 pseudowire-id 200
set instance default protocol ldp vpls-vpws interface ifl-0/0/17/200 control-word enable
set instance default protocol ldp vpls-vpws interface ifl-0/0/17/200 neighbor ipv4 address 192.51.100.1
set instance default protocol ldp vpls-vpws interface ifl-0/0/17/200 backup-neighbor ipv4 address 192.51.100.5
supervisor@rtbrick>SPINE01: cfg> show config instance default protocol ldp vpls-vpws interface ifl-0/0/17/200
{
  "rtbrick-config:interface": [
    {
      "name": "ifl-0/0/17/200",
      "pseudowire-id": 200,
      "control-word": "enable",
      "neighbor": {
        "ipv4": {
          "address": "192.51.100.1"
        }
      },
      "backup-neighbor": {
        "ipv4": {
          "address": "192.51.100.5"
        }
      }
    }
  ]
}
supervisor@rtbrick>SPINE01: cfg>