ON THIS PAGE
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.

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.
- Enable VLAN tagging on the VPLS interface.content_copy zoom_out_map[edit interfaces fe-0/0/3]user@host# set vlan-tagging
- Configure the VLAN ID on the logical interface.content_copy zoom_out_map[edit interfaces fe-0/0/3 unit 0]user@host# set vlan-id 600
- Configure the VPLS family on the logical interface.content_copy zoom_out_map[edit interfaces fe-0/0/3 unit 0]user@host# set family inet address 10.11.3.1/24
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:
- Configure the hostname for the PE1 device.content_copy zoom_out_map[edit ]user@host# set system host-name PE1
- Configure VPLS VLAN encapsulation on the VPLS PE1 device.content_copy zoom_out_map[edit interfaces]user@host# set fe-0/0/3 description "CE1 on PE1"user@host# set fe-0/0/3 vlan-tagginguser@host# set fe-0/0/3 encapsulation vlan-vplsuser@host# set fe-0/0/3 unit 0 encapsulation vlan-vplsuser@host# set fe-0/0/3 unit 0 vlan-id 600user@host# set fe-0/0/3 unit 0 family vpls
- Configure the routing interface on the VPLS PE1 device.content_copy zoom_out_map[edit interfaces]user@host# set fe-0/0/5 vlan-tagginguser@host# set fe-0/0/5 unit 37 vlan-id 37user@host# set fe-0/0/5 unit 37 family inet address 172.28.2.133/30user@host# set fe-0/0/5 unit 37 family mplsuser@host# set lo0 unit 0 family inet address 172.28.1.2/32Note
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.
- Configure the routing options on the VPLS PE1 device.content_copy zoom_out_map[edit routing-options]user@host# set router-id 172.28.1.2user@host# set autonomous-system 65512
- Configure RSVP on the VPLS PE1 device.content_copy zoom_out_map[edit protocols]user@host# set rsvp interface fe-0/0/5.37
- Configure MPLS on the VPLS PE1 device.content_copy zoom_out_map[edit protocols]user@host# set mpls label-switched-path pe1-to-pe2 to 172.28.1.1user@host# set mpls interface fe-0/0/5.37user@host# set mpls interface lo0.0
- Configure BGP on the VPLS PE1 device.content_copy zoom_out_map[edit protocols]user@host# set bgp group vpls-peering type internaluser@host# set bgp group vpls-peering local-address 172.28.1.2user@host# set bgp group vpls-peering family l2vpn signalinguser@host# set bgp group vpls-peering neighbor 172.28.1.1
- (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.
content_copy zoom_out_map[edit protocols]user@host# set ospf area 0.0.0.0 interface lo0.0 passiveuser@host# set ospf area 0.0.0.0 interface fe-0/0/5.37 - Create a VPLS routing instance.content_copy zoom_out_map[edit ]user@host# set routing-instances vpls-instance
- Configure a VPLS routing instance.content_copy zoom_out_map[edit routing-instances vpls-instance]user@host# set description "Routing instance from VPLS routing"user@host# set instance-type vplsuser@host# set interface fe-0/0/3.0user@host# set route-distinguisher 172.28.1.2:1user@host# set vrf-target target:65512:1user@host# set protocols vpls site-range 10user@host# set protocols vpls no-tunnel-services site site10 automatic-site-id
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:
- Configure the hostname for the device.content_copy zoom_out_map[edit ]user@host# set system host-name PE2
- Configure VPLS VLAN encapsulation on the VPLS PE2 device.content_copy zoom_out_map[edit interfaces]user@host# set fe-0/0/3 description "CE2 on PE2"user@host# set fe-0/0/3 vlan-tagginguser@host# set fe-0/0/3 encapsulation vlan-vplsuser@host# set fe-0/0/3 unit 0 encapsulation vlan-vplsuser@host# set fe-0/0/3 unit 0 vlan-id 600user@host# set fe-0/0/3 unit 0 family vpls
- Configure the routing interface on the VPLS PE2 device.content_copy zoom_out_map[edit interfaces]user@host# set fe-0/0/5 vlan-tagginguser@host# set fe-0/0/5 unit 37 vlan-id 37user@host# set fe-0/0/5 unit 37 family inet address 172.28.2.133/30user@host# set fe-0/0/5 unit 37 family mplsuser@host# set lo0 unit 0 family inet address 172.28.1.1/32Note
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.
- Configure the routing options on the VPLS PE2 device.content_copy zoom_out_map[edit routing-options]user@host# set router-id 172.28.1.1user@host# set autonomous-system 65512
- Configure RSVP on the VPLS PE2 device.content_copy zoom_out_map[edit protocols]user@host# set rsvp interface fe-0/0/5.37
- Configure MPLS on the VPLS PE2 device.content_copy zoom_out_map[edit protocols]user@host# set mpls label-switched-path pe2-to-pe1 to 172.28.1.2user@host# set mpls interface fe-0/0/5.37user@host# set mpls interface lo0.0
- Configure BGP on the VPLS PE2 device.content_copy zoom_out_map[edit protocols]user@host# set bgp group vpls-peering type internaluser@host# set bgp group vpls-peering local-address 172.28.1.1user@host# set bgp group vpls-peering family l2vpn signalinguser@host# set bgp group vpls-peering neighbor 172.28.1.2
- (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.
content_copy zoom_out_map[edit protocols]user@host# set ospf area 0.0.0.0 interface lo0.0 passiveuser@host# set ospf area 0.0.0.0 interface fe-0/0/5.37 - Create a VPLS routing instance.content_copy zoom_out_map[edit ]user@host# set routing-instances vpls-instance
- Configure a VPLS routing instance.content_copy zoom_out_map[edit routing-instances vpls-instance]user@host# set description "Routing instance for VPLS routing"user@host# set instance-type vplsuser@host# set interface fe-0/0/3.0user@host# set route-distinguisher 172.28.1.1:1user@host# set vrf-target target:65512:1user@host# set protocols vpls site-range 10user@host# set protocols vpls no-tunnel-services site site11 automatic-site-id
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.
- Enable VLAN tagging on the VPLS interface.content_copy zoom_out_map[edit interfaces fe-0/0/3]user@host# set vlan-tagging
- Configure the VLAN ID on the logical interface.content_copy zoom_out_map[edit interfaces fe-0/0/3 unit 0]user@host# set vlan-id 600
- Configure the VPLS family on the logical interface.content_copy zoom_out_map[edit interfaces fe-0/0/3 unit 0]user@host# set family inet address 10.11.3.2/24
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.
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.