[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


Configuring Layer 2 Services over MPLS

Before you configure layer 2 services over MPLS, you must configure the layer 2 interfaces and MPLS. For details, consult the JUNOSe resources listed in References.

This section describes how to configure different types of layer 2 services over MPLS. Each procedure uses either the mpls-relay command or the route interface command to configure MPLS tunneling. For more information about the commands used in these procedures, see the command descriptions listed in alphabetical order at the end this section, starting on 336.

Configuring Frame Relay Layer 2 Services

To configure Frame Relay layer 2 services over MPLS:

  1. Configure the Frame Relay interface.
  2. host1(config)#interface serial 4/1:1/1
    
    host1(config-if)#encapsulation frame-relay ietf
    
    host1(config-if)#frame-relay intf-type dte
    
    host1(config-if)#frame-relay lmi-type ansi
    
    host1(config-if)#interface serial 4/1:1/1.1
    
    host1(config-subif)#frame-relay interface-dlci 17 ietf
    
    
    
  3. Specify MPLS tunneling by using the appropriate command.
  4. host1(config-if)#mpls-relay 10.10.100.2 45
    
    
    

or

host1(config-if)#route interface tunnel mpls:tunnel6 45

  1. Configure Frame Relay and MPLS on the remote PE router.

For information about configuring a more complex Frame Relay over MPLS topology, see Frame Relay over MPLS Configuration Example.

Configuring Ethernet/VLAN Layer 2 Services

To configure Ethernet/VLAN layer 2 services over MPLS:

  1. Configure the Ethernet/VLAN interface.
  2. host1(config)#interface fastEthernet 4/0
    
    host1(config-if)#encapsulation vlan
    
    host1(config-if)#interface fastEthernet 4/0.3
    
    host1(confi-if)#vlan id 201
    
    
    
  3. Specify MPLS tunneling by using the appropriate command.
  4. host1(config-if)#mpls-relay 10.10.100.2 45
    
    
    

or

host1(config-if)#route interface tunnel mpls:tunnel6 45

  1. Configure Ethernet/VLAN and MPLS on the remote PE router.

Configuring S-VLAN Tunnels for Layer 2 Services

When you configure Ethernet or bridged Ethernet layer 2 services over MPLS, you can use the svlan id command with the any keyword to create a stacked VLAN (S-VLAN) tunnel that uses a single interface to tunnel traffic from multiple VLANs across an MPLS network. The S-VLAN tunnel enables multiple VLANs, each configured with a different VLAN ID tag and a common S-VLAN ID, to share a common VC label while traversing an MPLS network.

You can use the svlan id command with the any keyword only with the mpls-relay command or the route interface command to configure layer 2 services over MPLS.

For more information about S-VLANs, see JUNOSe Physical Layer Configuration Guide, Chapter 5, Configuring Ethernet Interfaces.

To configure S-VLAN tunnels for Ethernet/VLAN layer 2 services over MPLS:

  1. Configure the Ethernet/VLAN interface.
  2. host1(config)#interface fastEthernet 8/1
    
    host1(config-if)#encapsulation vlan
    
    host1(config-if)#interface fastEthernet 8/1.1
    
    
    
  3. Create the S-VLAN tunnel and assign the S-VLAN Ethertype. For example, the following commands tunnel traffic from VLANs configured with an S-VLAN ID of 33 and any VLAN ID to the same destination across the MPLS network.
  4. host1(config-if)#svlan id 33 any
    
    host1(config-if)#svlan ethertype 8100
    
    
    
  5. Specify MPLS tunneling by using the appropriate command. For example:
  6. host1(config-if)#route interface tunnel mpls:tunnel3 45
    
    or
    
    host1(config-if)#mpls-relay 10.10.100.2 45
    
    
    
  7. Repeat these steps, using unique values to configure the S-VLAN tunnel and MPLS on the remote PE router.

For complete instructions on configuring S-VLANs see JUNOSe Physical Layer Configuration Guide, Chapter 5, Configuring Ethernet Interfaces.

Configuring Local Cross-Connects Between Ethernet/VLAN Interfaces

This section provides an example for configuring a local cross-connect that uses MPLS between two Ethernet/VLAN interfaces.

NOTE: You must use the mpls-relay command instead of the route interface command to configure a local cross-connect, regardless of the MPLS tunneling method used in the core network.


Figure 30 shows the interface stack that the router builds for this configuration.


Figure 30: Local Cross-Connect Between Ethernet/VLAN Interfaces

To configure the application shown in Figure 30:

  1. Configure a local IP address.

You can use any reachable local IP address. This example uses a loopback interface to provide the local IP address.

host1(config)#interface loopback 0
host1(config-if)#ip address 10.1.1.1 255.255.255.255
host1(config-if)#exit

  1. Configure the Ethernet/VLAN interface on one side of the local cross-connect.
  2. host1(config)#interface fastEthernet 9/1
    
    host1(config-if)#encapsulation vlan
    
    host1(config-if)#exit
    
    host1(config)#interface fastEthernet 9/1.1
    
    host1(config-if)#vlan id 10
    
    
    
  3. (Optional) If you are configuring a multiservice local cross-connect, assign an IP address and mask to the Ethernet/VLAN interface.
  4. host1(config-if)#ip address 10.1.2.3 255.255.255.0
    
    
    
  5. Configure MPLS tunneling on this side of the connection by issuing the mpls-relay command.

When you issue the mpls-relay command, you must use a reachable local IP address and the same VC ID value (4) on both sides of the connection.

host1(config-if)#mpls-relay 10.1.1.1 4
host1(config-if)#exit

  1. Configure the Ethernet/VLAN interface on the other side of the local cross-connect.
  2. host1(config)#interface fastEthernet 3/1
    
    host1(config-if)#encapsulation vlan
    
    host1(config-if)#exit
    
    host1(config)#interface fastEthernet 3/1.1
    
    host1(config-if)#vlan id 11
    
    
    
  3. (Optional) If you are configuring a multiservice local cross-connect, assign an IP address and mask to the Ethernet/VLAN interface.
  4. host1(config-if)#ip address 10.1.2.4 255.255.255.0
    
    
    
  5. Configure MPLS tunneling on this side of the connection by issuing the mpls-relay command.

You must use a reachable local IP address and the same VC ID value (4) specified in Step 4.

host1(config-if)#mpls-relay 10.1.1.1 4
host1(config-if)#exit

Configuring Local ATM Cross-Connects with AAL5 Encapsulation

To create a local cross-connect between two ATM 1483 subinterfaces on the same router, you create a loopback interface, configure your ATM PVCs, and then create an MPLS relay connection from the PVCs to the loopback interface. You do not need to configure any other MPLS commands.

The following commands create an ATM cross-connect between two ATM subinterfaces on the same router.

NOTE: Although this procedure uses AAL5 encapsulation to configure a local cross-connect between two ATM 1483 subinterfaces within the same router, you can also use AAL5 encapsulation when you configure an MPLS pseudowire (tunnel) connection between two ATM VCCs on different routers.


  1. Create a loopback interface. All local cross-connects can share the same loopback interface.
  2. host1(config)#interface loopback 0
    
    host1(config-if)#ip address 10.1.1.1 255.255.255.255
    
    host1(config)#exit
    
    
    
  3. Create an ATM 1483 subinterface and ATM PVC with aal5all encapsulation on the ingress interface.
  4. host1(config)#interface atm 2/0.1 
    
    host1(config-subif)#atm pvc 1 0 100 aal5all
    
    
    
  5. Create an MPLS relay connection to the loopback interface. Include the address of the loopback interface and a VC ID.
  6. host1(config-subif)#mpls-relay 10.1.1.1 2
    
    host1(config-subif)#exit
    
    
    
  7. Create an ATM 1483 subinterface and ATM PVC with aal5all encapsulation on the egress interface.
  8. host1(config)#interface atm 2/0.2
    
    host1(config-subif)#atm pvc 2 0 101 aal5all 
    
    
    
  9. Create an MPLS relay connection to the loopback interface. The VC ID must be the same on both sides of the connection.
  10. host1(config-subif)#mpls-relay 10.1.1.1 2 
    
    host1(config-subif)#exit 
    
    
    
  11. (Optional) Display your configuration.
  12. host1#show mpls cross-connects atm
    
                                                      Cate Peak
    
    Interface  VPI VCI Interface  VPI VCI VC-ID Encap gory Rate  Status
    
    ---------- --- --- ---------- --- --- ----- ----- ---- ---- --------
    
    ATM2/0.1     0 100 ATM2/0.2     0 101     2 AAL5  UBR     0 State UP
    
    1 local connection(s) found
    
    
    

Configuring an MPLS Pseudowire with VCC Cell Relay Encapsulation

The following commands create an ATM layer 2 services over MPLS pseudowire connection between two ATM 1483 subinterfaces on different routers. This procedure uses the aal0 encapsulation keyword for each ATM PVC to indicate that the router receive raw ATM cells on these circuits and forward the cells without performing AAL5 packet reassembly. The procedure also includes optional steps for configuring nondefault values for the ATM Martini cell packing timers and cell concatenation parameters.

NOTE: Although this procedure uses AAL0 encapsulation to configure an MPLS pseudowire (tunnel) connection between two ATM VCCs on different routers, you can also use AAL0 encapsulation when you configure a local cross-connect between two ATM 1483 subinterfaces within the same router.


To create an MPLS pseudowire connection with VCC cell relay encapsulation:

  1. (Optional) Configure values for the three ATM Martini cell packing timers on the ingress router to define the cell collection time threshold.
  2. host1(config)#atm mcpt-timers 1500 2500 3500
    
    
    
  3. Configure a loopback interface.
  4. host1(config)#interface loopback 0
    
    host1(config-if)#ip address 5.1.1.1 255.255.255.255
    
    host1(config)#exit
    
    
    
  5. Create an ATM 1483 subinterface and ATM PVC with aal0 encapsulation on the ingress interface.
  6. host1(config)#interface atm 2/0.100
    
    host1(config-subif)#atm pvc 100 0 100 aal0
    
    
    
  7. (Optional) Configure the following cell concatenation parameters for the ATM 1483 subinterface:
  1. Create an MPLS relay connection to the loopback interface on the egress router. The VC ID (1 in this example) must be the same on both sides of the connection.
  2. host1(config-subif)#mpls-relay 6.1.1.1 1
    
    host1(config-subif)#exit
    
    
    
  3. Repeat Steps 1 through 5 on the egress router, creating an MPLS relay connection to the loopback interface on the ingress router.

The values you configure for the ATM Martini cell packing timers and cell concatenation parameters need not be the same on the ingress and egress routers, although matching values are permitted. The virtual connection ID (VC ID) value in the mpls-relay command, however, must be the same on the ingress and egress routers.

host2(config)#atm mcpt-timers 1500 2500 3500
host2(config)#interface loopback 0
host2(config-if)#ip address 6.1.1.1 255.255.255.255
host2(config)#exit
host2(config)#interface atm 4/0.101
host2(config-subif)#atm pvc 101 0 101 aal0
host2(config-subif)#atm cell-packing 150 mcpt-timer 3
host2(config-subif)#mpls-relay 5.1.1.1 1
host2(config-subif)#exit

  1. (Optional) Use the appropriate show commands to verify your configuration.
  2. host1#show atm mcpt-timers
    
    ATM Martini cell aggregation timers:
    
            Timer1: 1500microseconds
    
            Timer2: 2500microseconds
    
            Timer3: 3500microseconds
    
    
    
    host1#show atm subinterface atm 2/0.100
    
                                     Circuit                           Interface
    
    Interface   ATM-Prot VCD VPI VCI  Type   Encap MTU      Status       Type
    
    ---------   -------- --- --- --- ------- ----- ---- -------------- ---------
    
    ATM 2/0.100 ATM/MPLS 100   0 100 PVC     AAL0  9180 lowerLayerDown Static
    
     
    
    Maximum number of cells per packet: 100
    
    Cell aggregation timeout timer:     2
    
    
    
    SNMP trap link-status: disabled
    
     
    
    InPackets:                0
    
    InBytes:                  0
    
    OutPackets:               0
    
    OutBytes:                 0
    
    InErrors:                 0
    
    OutErrors:                0
    
    InPacketDiscards:         0
    
    InPacketsUnknownProtocol: 0
    
    OutDiscards:              0
    
    1 interface(s) found
    
    
    
    host2#show atm subinterface atm 4/0.101
    
                                     Circuit                           Interface
    
    Interface   ATM-Prot VCD VPI VCI  Type   Encap MTU      Status       Type
    
    ---------   -------- --- --- --- ------- ----- ---- -------------- ---------
    
    ATM 4/0.101 ATM/MPLS 101   0 101 PVC     AAL0  9180 lowerLayerDown Static
    
    
    
    Maximum number of cells per packet: 150
    
    Cell aggregation timeout timer:     3
    
    
    
    SNMP trap link-status: disabled
    
    
    
    InPackets:                0
    
    InBytes:                  0
    
    OutPackets:               0
    
    OutBytes:                 0
    
    InErrors:                 0
    
    OutErrors:                0
    
    InPacketDiscards:         0
    
    InPacketsUnknownProtocol: 0
    
    OutDiscards:              0
    
    1 interface(s) found
    

Configuring HDLC Layer 2 Services

The following commands configure an HDLC layer 2 circuit over MPLS between an E-series router and a remote PE device.

To configure an HDLC layer 2 circuit over MPLS:

  1. Configure a serial or POS interface on the ingress router.
  2. host1(config)#interface serial 3/1:2/1
    
    
    

or

host1(config)#interface pos 4/0

  1. Use one of the following methods to create the HDLC layer 2 circuit over MPLS:

or

host1(config-if)#route interface tunnel mpls:tunnel-to-pe2 1

or

host1(config-if)#route interface tunnel mpls:tunnel-to-pe2 1 relay-format ppp

  1. (Optional) Attach an MPLS policy to the HDLC layer 2 circuit by using the mpls policy command.
  2. host1(config-if)#mpls policy input hdlc-policy
    
    
    

For more information about attaching policies to MPLS layer 2 circuits, see JUNOSe Policy Management Configuration Guide, Chapter 1, Policy Management Overview.

  1. Configure the serial or POS interface and MPLS on the remote PE device.

The interfaces at either end of the HDLC layer 2 circuit can be different types and have different speeds. For example, you can configure an HDLC layer 2 circuit between a serial interface on a T1 circuit and a POS interface on an OC3 circuit.

Configuring Local Cross-Connects for HDLC Layer 2 Services

You can also configure an HDLC layer 2 circuit in a local cross-connect configuration between serial or POS interfaces within the same router.

The procedure is basically the same for configuring an HDLC layer 2 interface between two PE routers and for a local cross-connect, with the following differences for local cross-connects:

For more information, see Local Cross-Connects.

Configuration Commands

The following command entries describe how to use the commands for configuring layer 2 over MPLS.

atm cell-packing

atm mcpt-timers

atm pvc

mpls policy

mpls-relay

mpls-relay disable

route interface


[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]