Example: Configuring VPLS Multihoming (FEC 129)
This example shows how to configure virtual private LAN service (VPLS) multihoming. Multihoming allows a customer site to connect to multiple provider edge (PE) routers. A VPLS site multihomed to two or more PE routers provides redundant connectivity in the event of a PE router-to-CE device link failure or the failure of a PE router. The example demonstrates BGP-based multihoming support for FEC 129 VPLS (also known as LDP VPLS with BGP-based autodiscovery).
Requirements
This example has the following hardware and software requirements:
- One or more CE devices to represent a VPLS site.
- Two or more PE devices.
- Junos OS Release 12.3 or later running on the PE devices that are connected to the multihomed VPLS site.
Overview
BGP-based VPLS autodiscovery (FEC 129) enables each VPLS PE router to discover the other PE routers that are in the same VPLS domain. VPLS autodiscovery also automatically detects when PE routers are added or removed from the VPLS domain. You do not need to manually configure the VPLS and maintain the configuration when a PE router is added or deleted. VPLS autodiscovery uses BGP to discover the VPLS members and to set up and tear down pseudowires in the VPLS.
BGP multihoming enables you to connect a customer site to two or more PE routers to provide redundant connectivity while preventing the formation of Layer 2 loops in the service provider’s network. The redundant connectivity maintains the VPLS service and traffic forwarding to and from the multihomed site in the event of a PE router-to-CE device link failure, the failure of a PE router, or an MPLS reachability failure between the local PE router and a remote PE router. A redundant PE router can begin providing service to the customer site as soon as the failure is detected.
When a CE device connects to multiple PE routers, each of these routers advertises reachability for the multihomed site—routes that have the same site ID in the Layer 2 network layer reachability information (NLRI). The other PE routers in the network use a BGP path selection process to select only one of the advertising routers to which they send traffic destined for the CE device. This path selection process eliminates Layer 2 loops in the VPLS network.
Autodiscovery is not specifically related to multihoming. Autodiscovery is not required for multihoming to work. They are two separate features. That said, the meaning of FEC 129 is that VPLS does autodiscovery. So when you configure multihoming for FEC 129, you must also, by definition, configure autodiscovery (with the auto-discovery-only statement).
There are two places in the configuration where you can configure VPLS multihoming. One is for FEC 128, and the other is for FEC 129:
- For FEC 128—routing-instances instance-name protocols vpls site site-name multi-homing
- For FEC 129—routing-instances instance-name protocols vpls multi-homing
The following statements are used for configuring multihoming for FEC 129:
This example shows Device CE1 multihomed to Router PE1 and Router PE2. In addition, Device CE2 is single-homed to Router PE1. Device PE3 is the remote PE router, connected to Device CE3. Multihoming is not enabled on Device PE3. CLI Quick Configuration shows the configuration for all of the devices in Figure 1. The section Configuring Device PE1 has step-by-step instructions for configuring Device PE1.
Figure 1: Topology for FEC 129 Multihoming

Configuration
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, and then copy and paste the commands into the CLI at the [edit] hierarchy level.
Device PE1
Device PE2
Device PE3
Device CE1
Device CE2
Device CE3
Device P
Configuring Device PE1
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
To configure Device PE1:
- Configure the interfaces.
Configure family mpls on the provider-facing interfaces. Configure family vpls on the customer-facing interfaces.
[edit interfaces]user@PE1# set ge-0/3/3 encapsulation ethernet-vplsuser@PE1# set ge-0/3/3 unit 0 description PE1-to-CE2user@PE1# set ge-0/3/3 unit 0 family vpls
user@PE1# set ge-0/3/1 encapsulation ethernet-vplsuser@PE1# set ge-0/3/1 unit 0 description PE1-to-CE1user@PE1# set ge-0/3/1 unit 0 family vpls
user@PE1# set ge-1/2/0 unit 1 description PE1-to-Puser@PE1# set ge-1/2/0 unit 1 family inet address 10.1.1.1/30user@PE1# set ge-1/2/0 unit 1 family mpls
user@PE1# set ge-1/2/1 unit 5 description PE1-to-PE2user@PE1# set ge-1/2/1 unit 5 family inet address 10.1.1.5/30user@PE1# set ge-1/2/1 unit 5 family mpls
user@PE1# set lo0 unit 2 family inet address 1.1.1.2/32 - Configure the interior gateway protocol (IGP) and signaling
protocols on the provider-facing interfaces.
The traffic-engineering statement enables OSPF to advertise the label-switched path (LSP) metric in summary link-state advertisements (LSAs).
[edit protocols]user@PE1# set ldp interface ge-1/2/0.1user@PE1# set ldp interface ge-1/2/1.5user@PE1# set ldp interface lo0.2
user@PE1# set mpls interface ge-1/2/0.1user@PE1# set mpls interface ge-1/2/1.5
user@PE1# set ospf traffic-engineeringuser@PE1# set ospf area 0.0.0.0 interface ge-1/2/0.1user@PE1# set ospf area 0.0.0.0 interface ge-1/2/1.5user@PE1# set ospf area 0.0.0.0 interface lo0.2 passive - Configure BGP.
The auto-discovery-only statement notifies the routing process (rpd) to expect autodiscovery-related NLRI messages so that information can be deciphered and used by LDP and VPLS. The auto-discovery-only statement must be configured on all PE routers in a VPLS. If you configure route reflection, the auto-discovery-only statement is also required on provider (P) routers that act as the route reflector in supporting FEC 129-related updates.
For interoperation scenarios in which a PE router must support both types of NLRI (FEC 128 and FEC 129), this example also includes the signaling statement.
[edit protocols bgp]user@PE1# set local-address 1.1.1.2user@PE1# set group pe-pe type internaluser@PE1# set group pe-pe family l2vpn auto-discovery-onlyuser@PE1# set group pe-pe family l2vpn signalinguser@PE1# set group pe-pe neighbor 1.1.1.3user@PE1# set group pe-pe neighbor 1.1.1.4user@PE1# set group pe-pe neighbor 1.1.1.5 - Configure the routing instance.
Both CE-facing interfaces are included in the routing instance. Only the multihomed interface is included in the multihoming site.
As a convention, the route distinguisher is composed of Device PE1’s loopback interface address and the multihoming site identifier.
[edit routing-instances green]user@PE1# set instance-type vplsuser@PE1# set interface ge-0/3/1.0user@PE1# set interface ge-0/3/3.0user@PE1# set route-distinguisher 1.1.1.2:1user@PE1# set l2vpn-id l2vpn-id:100:100user@PE1# set vrf-target target:100:100user@PE1# set protocols vpls no-tunnel-servicesuser@PE1# set protocols vpls multi-homing site test identifier 1user@PE1# set protocols vpls multi-homing site test interface ge-0/3/1.0 - (Optional) Configure bidirectional forwarding detection
(BFD) for FEC 129 VPLS.[edit routing-instances green]user@PE1# set protocols vpls oam ping-interval 600user@PE1# set protocols vpls oam bfd-liveness-detection minimum-interval 200
- Configure the autonomous system (AS) number and router
ID.[edit routing-options]user@PE1# set router-id 1.1.1.2user@PE1# set autonomous-system 100
Results
From configuration mode, confirm your configuration by entering the show interfaces, show protocols, show routing-instances, and show routing-options commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.
If you are done configuring the device, enter commit from configuration mode.
Verification
Confirm that the configuration is working properly.
- Verifying That Multihoming Is Operational
- Checking the Multihoming Routes
- Checking the BFD Sessions
- Pinging the Remote PE Router in the VPLS Domain
Verifying That Multihoming Is Operational
Purpose
Verify that multihoming is operational.
Action
From operational mode, enter the show vpls connections extensive command.
user@PE1> show vpls connections extensiveLayer-2 VPN connections:
Legend for connection status (St)
EI -- encapsulation invalid NC -- interface encapsulation not CCC/TCC/VPLS
EM -- encapsulation mismatch WE -- interface and instance encaps not same
VC-Dn -- Virtual circuit down NP -- interface hardware not present
CM -- control-word mismatch -> -- only outbound connection is up
CN -- circuit not provisioned <- -- only inbound connection is up
OR -- out of range Up -- operational
OL -- no outgoing label Dn -- down
LD -- local site signaled down CF -- call admission control failure
RD -- remote site signaled down SC -- local and remote site ID collision
LN -- local site not designated LM -- local site ID not minimum designated
RN -- remote site not designated RM -- remote site ID not minimum designated
XX -- unknown connection status IL -- no incoming label
MM -- MTU mismatch MI -- Mesh-Group ID not available
BK -- Backup connection ST -- Standby connection
PF -- Profile parse failure PB -- Profile busy
RS -- remote site standby SN -- Static Neighbor
LB -- Local site not best-site RB -- Remote site not best-site
VM -- VLAN ID mismatch
Legend for interface status
Up -- operational
Dn -- down
Instance: green
L2vpn-id: 100:100
Local-id: 1.1.1.2
Number of local interfaces: 2
Number of local interfaces up: 2
ge-0/3/1.0
ge-0/3/3.0
lsi.101711873 Intf - vpls green local-id 1.1.1.2 remote-id 1.1.1.4 neighbor 1.1.1.4
Remote-id Type St Time last up # Up trans
1.1.1.4 rmt Up Jan 31 13:49:52 2012 1
Remote PE: 1.1.1.4, Negotiated control-word: No
Incoming label: 262146, Outgoing label: 262146
Local interface: lsi.101711873, Status: Up, Encapsulation: ETHERNET
Description: Intf - vpls green local-id 1.1.1.2 remote-id 1.1.1.4 neighbor 1.1.1.4
Connection History:
Jan 31 13:49:52 2012 status update timer
Jan 31 13:49:52 2012 PE route changed
Jan 31 13:49:52 2012 Out lbl Update 262146
Jan 31 13:49:52 2012 In lbl Update 262146
Jan 31 13:49:52 2012 loc intf up lsi.101711873
Multi-home:
Local-site Id Pref State
test 1 100 Up
Number of interfaces: 1
Number of interfaces up: 1
ge-0/3/1.0
Received multi-homing advertisements:
Remote-PE Pref flag Description
1.1.1.4 100 0x0 Meaning
The output shows the status of multihoming for routing instance green.
Checking the Multihoming Routes
Purpose
Verify that the expected routes are identified as multihoming.
Action
From operational mode, enter the show route table bgp.l2vpn.0 and show route table green.l2vpn.0 commands.
user@PE1> show route table bgp.l2vpn.0bgp.l2vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.4:100:1.1.1.4/96 AD
*[BGP/170] 1d 03:10:45, localpref 100, from 1.1.1.4
AS path: I, validation-state: unverified
> via ge-1/2/1.5
1.1.1.4:100:1:0/96 MH
*[BGP/170] 1d 03:10:45, localpref 100, from 1.1.1.4
AS path: I, validation-state: unverified
> via ge-1/2/1.5user@PE1> show route table green.l2vpn.0green.l2vpn.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.2:100:1.1.1.2/96 AD
*[VPLS/170] 1d 03:11:03, metric2 1
Indirect
1.1.1.4:100:1.1.1.4/96 AD
*[BGP/170] 1d 03:11:02, localpref 100, from 1.1.1.4
AS path: I, validation-state: unverified
> via ge-1/2/1.5
1.1.1.2:100:1:0/96 MH
*[VPLS/170] 1d 03:11:03, metric2 1
Indirect
1.1.1.4:100:1:0/96 MH
*[BGP/170] 1d 03:11:02, localpref 100, from 1.1.1.4
AS path: I, validation-state: unverified
> via ge-1/2/1.5
1.1.1.4:NoCtrlWord:5:100:100:1.1.1.2:1.1.1.4/176
*[VPLS/7] 1d 03:11:02, metric2 1
> via ge-1/2/1.5
1.1.1.4:NoCtrlWord:5:100:100:1.1.1.4:1.1.1.2/176
*[LDP/9] 1d 03:11:02
DiscardMeaning
MH in the output indicates a multihoming route. AD indicates autodiscovery.
Checking the BFD Sessions
Purpose
Verify that the BFD session status is operational.
Action
From operational mode, enter the show bfd session command.
user@PE1> show bfd sessionDetect Transmit Address State Interface Time Interval Multiplier 127.0.0.1 Up ge-1/2/1.5 0.600 0.200 3 127.0.0.1 Up ge-1/2/0.1 0.600 0.200 3 2 sessions, 2 clients Cumulative transmit rate 10.0 pps, cumulative receive rate 10.0 pps
Meaning
Up in the State field indicates that BFD is working.
Pinging the Remote PE Router in the VPLS Domain
Purpose
Check the operability of the MPLS Layer 2 virtual private network (VPN) connection.
Action
From operational mode, enter the ping mpls l2vpn command with the fec129 option.
user@PE1> ping mpls l2vpn fec129 instance green
remote-id 1.1.1.5 remote-pe-address 1.1.1.5!!!!! --- lsping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss
Meaning
The output shows that the ping operation is successful, meaning that the LSP for a FEC 129 Layer 2 VPN connection is reachable.

