Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring LDP-Based H-VPLS Using a Single Mesh Group to Terminate the Layer 2 Circuits

This example shows how to configure a single mesh group to terminate the Layer 2 circuits into an LDP-based VPLS. This is one type of hierarchical virtual private LAN service (H-VPLS) configuration possible in the Juniper Networks implementation. For information about the alternate type of configuration see Example: Configuring BGP-Based H-VPLS Using Different Mesh Groups for Each Spoke Router.

This example provides step-by-step configuration instructions and also provides steps for verifying and troubleshooting the configuration.

This example is organized into the following sections:

Requirements

This example uses the following hardware components:

  • Four MX Series 5G Universal Routing Platforms for Routers PE1, PE2, PE3, and PE4

  • Two M Series Multiservice Edge Routers for Routers CE4 and PE5

  • Two EX Series Ethernet Switches for Devices CE1 and CE2

  • Two T Series Core Routers for Routers P1 and the route reflector

Overview and Topology

Figure 1 shows the physical topology used in this example.

Figure 1: Physical Topology of H-VPLS using a Single Mesh GroupPhysical Topology of H-VPLS using a Single Mesh Group

In Figure 1:

  • Local switching is used to switch traffic between Layer 2 circuit pseudowires from the different spoke PE routers.

  • The spoke PE routers are configured with the same virtual circuit ID and VPLS ID pair in a mesh group.

  • The spoke PE routers are configured in an LDP-signaled VPLS routing instance.

  • The layer 2 circuits are terminated into the LDP-based VPLS.

Configuration

To configure a single mesh group to terminate the Layer 2 circuits into an LDP-based VPLS, perform the following tasks:

Configuring the Spoke PE Routers

Step-by-Step Procedure

Configure a single mesh group to terminate all the Layer 2 circuit pseudowires and enable local switching between the pseudowires.

  1. On Router PE1, configure the Layer 2 circuit by including the l2circuit statement at the [edit protocols] hierarchy level. Include the neighbor statement and specify the IPv4 address of the hub PE router. Also configure the logical interface by including the interface statement and specify the interface connected to Router CE1.

    Configure the virtual circuit ID by including the virtual-circuit-id statement and specifying 100 as the ID value at the [edit protocols l2circuit neighbor 192.0.2.5 interface ge-1/0/0.0] hierarchy level.

    Configure the backup neighbor by including the backup-neighbor statement and specifying the IPv4 address of the backup hub PE router. Router PE3 is the backup neighbor in this example. Also include the standby statement at the [edit protocols l2circuit neighbor 192.0.2.5 interface ge-1/0/0.0 backup-neighbor 192.0.2.3] hierarchy level.

  2. On Router PE2, configure the Layer 2 circuit by including the l2circuit statement at the [edit protocols] hierarchy level. Include the neighbor statement and specify the IPv4 address of the hub PE router. Configure the logical interface by including the interface statement and specifying the interface connected to Router CE2.

    Configure the virtual circuit ID by including the virtual-circuit-id statement and specifying 100 as the ID value at the [edit protocols l2circuit neighbor 192.0.2.5 interface ge-1/0/2.0] hierarchy level. Include the encapsulation statement and specify ethernet as the type.

    Configure the backup neighbor by including the backup-neighbor statement and specifying the IPv4 address of the backup hub PE router. Router PE3 is the backup neighbor in this example. Also include the standby statement at the [edit protocols l2circuit neighbor 192.0.2.5 interface ge-1/0/0.0 backup-neighbor 192.0.2.3] hierarchy level.

  3. On Router PE4, configure the Layer 2 circuit by including the l2circuit statement at the [edit protocols] hierarchy level. Include the neighbor statement and specify the IPv4 address of the hub PE router. Configure the logical interface by including the interface statement and specify the interface connected to Router CE4.

    Configure the virtual circuit ID by including the virtual-circuit-id statement and specifying 100 as the ID value at the [edit protocols l2circuit neighbor 192.0.2.5 interface ge-1/2/0.0] hierarchy level.

    Configure the backup neighbor by including the backup-neighbor statement and specifying the IPv4 address of the backup hub PE router. Router PE3 is the backup neighbor in this example. Also include the standby statement at the [edit protocols l2circuit neighbor 192.0.2.5 interface ge-1/2/0.0 backup-neighbor 192.0.2.3] hierarchy level.

Configuring the Hub PE Router

Step-by-Step Procedure

Configure a single mesh group to terminate all the Layer 2 circuit pseudowires and enable local switching between the pseudowires.

  1. On Router PE3, configure the Gigabit Ethernet interface connected to Router CE3 by including the encapsulation statement and specifying the ethernet-vpls option. Also configure the logical interface by including the family statement and specifying the vpls option.

  2. On Router PE3, configure the logical loopback interface by including the family statement and specifying the inet option. Include the address statement and specify the IPv4 address for the interface.

  3. On Router PE3, configure the LDP-based VPLS routing instance by including the instance-type statement at the [edit routing-instances H-VPLS] hierarchy level and specifying the vpls option. Include the interface statement and specify the Gigabit Ethernet interface connected to Router CE3.

    Configure the VPLS protocol by including the vpls statement at the [edit routing-instances H-VPLS protocols] hierarchy level. Include the no-tunnel-services statement to enable the router to use an LSI interface.

  4. On Router PE3, configure the mesh group by including the mesh-group statement at the [edit routing-instances H-VPLS protocols vpls] hierarchy level and specifying L2-Circuits as the name of the group. Include the vpls-id statement and specify 100 as the ID value. Include the local-switching statement to enable the router to switch traffic between the pseudowires.

    For each neighbor in the mesh group, include the neighbor statement and specify the IPv4 address of the spoke PE router.

Verification

Step-by-Step Procedure

  1. On Router PE5, use the show ldp neighbor command to verify that LDP sessions have been created to each of the spoke PE routers.

  2. On Router PE5, use the show vpls connections extensive command to verify that the mesh group neighbor session is Up, that inbound and outbound labels have been assigned, that the VPLS ID is correct, and that the virtual tunnel interface is being used.