Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Example: Configuring VPLS with BGP Signaling

 

This example shows how to configure VPLS with BGP signaling between two devices.

Requirements

Before you begin, see Understanding Selective Stateless Packet-Based Services .

Overview

This example shows a minimum configuration for PE devices and CE devices to create a VPLS network with BGP signaling. The topology consists of two PE devices and two CE devices. In this example, you configure a VPLS routing instance vpls-instance between two PE devices, PE1 and PE2. You also configure the CE1 and CE2 devices that use Ethernet-based interfaces to connect VLAN 600 to their local PE devices. On the CE1 device, configure the Fast Ethernet interface that connects to the PE1 device. The VLAN identifier and IP address must match those of the CE2 device.

Figure 1 shows the topology used in this example.

Figure 1: Configuring VPLS with BGP Signaling
Configuring VPLS with BGP
Signaling

Configuration

Configuring the CE1 Device

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode.

  1. Enable VLAN tagging on the VPLS interface.
  2. Configure the VLAN ID on the logical interface.
  3. Configure the VPLS family on the logical interface.

Results

From configuration mode, confirm your configuration by entering the show interfaces command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

If you are done configuring the device, enter commit from configuration mode.

Configuring the PE1 Device

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode.

To configure PE1:

  1. Configure the hostname for the PE1 device.
  2. Configure VPLS VLAN encapsulation on the VPLS PE1 device.
  3. Configure the routing interface on the VPLS PE1 device.
    Note

    For this example, it is optional to configure VLAN tagging. Remove the VLAN tagging configuration on the physical interfaces if you do not plan to configure VLAN tagging.

  4. Configure the routing options on the VPLS PE1 device.
  5. Configure RSVP on the VPLS PE1 device.
  6. Configure MPLS on the VPLS PE1 device.
  7. Configure BGP on the VPLS PE1 device.
  8. (Optional) Configure OSPF on the VPLS PE1 device.Note

    For this example, it is optional to configure OFPF. You must configure OSPF only in cases where two PE devices are not connected directly.

  9. Create a VPLS routing instance.
  10. Configure a VPLS routing instance.

Results

From configuration mode, confirm your configuration by entering the show command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

If you are done configuring the device, enter commit from configuration mode.

Configuring the PE2 Device

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode.

To configure PE2:

  1. Configure the hostname for the device.
  2. Configure VPLS VLAN encapsulation on the VPLS PE2 device.
  3. Configure the routing interface on the VPLS PE2 device.
    Note

    For this example, it is optional to configure VLAN tagging. Remove the VLAN tagging configuration on the physical interfaces if you do not plan to configure VLAN tagging.

  4. Configure the routing options on the VPLS PE2 device.
  5. Configure RSVP on the VPLS PE2 device.
  6. Configure MPLS on the VPLS PE2 device.
  7. Configure BGP on the VPLS PE2 device.
  8. (Optional) Configure OSPF on the VPLS PE2 device.Note

    For this example, it is optional to configure OFPF. You must configure OSPF only in cases where two PE devices are not connected directly.

  9. Create a VPLS routing instance.
  10. Configure a VPLS routing instance.

Results

From configuration mode, confirm your configuration by entering the show command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

If you are done configuring the device, enter commit from configuration mode.

Configuring the CE2 Device

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode.

  1. Enable VLAN tagging on the VPLS interface.
  2. Configure the VLAN ID on the logical interface.
  3. Configure the VPLS family on the logical interface.

Results

From configuration mode, confirm your configuration by entering the show interfaces command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

If you are done configuring the device, enter commit from configuration mode.

Note

If VLAN trunking is not needed between the CE devices, remove the configuration on VLAN tagging on the interfaces connecting the CE and PE devices. Also, use ethernet-VPLS-encapsulation instead of vlan-vpls on the CE facing interfaces of the PE devices.

Verification

Confirm that the configuration is working properly.

Verifying Interfaces

Purpose

Verify that the interfaces are configured correctly.

Action

From operational mode, enter the show interfaces terse command.

Verifying Routing Information

Purpose

Verify that the routing information is configured correctly.

Action

From operational mode, enter the following commands:

  • show route forwarding-table family mpls

  • show route forwarding-table family vpls (destination | extensive | matching | table)

  • show route instance (detail)

Verifying VPLS Information

Purpose

Verify that the VPLS is configured correctly.

Action

From operational mode, enter the following commands:

  • show system statistics vpls

  • show vpls connections

  • show vpls statistics

Verifying Automatic Site Identifier Generation

Purpose

Verify that the automatic site identifier has been generated.

Action

From operational mode, enter the show vpls connections command.