- L2VPN Protocol-Based CLIs
- Any Transport over MPLS
- L2VPN Interworking
- L2VPN Pseudowire Preferential Forwarding
- L2VPN Multisegment Pseudowires
- MPLS Quality of Service
- QoS Policy Support for L2VPN ATM PVPs
- MPLS Pseudowire Status Signaling
- L2VPN VPLS Inter-AS Option B
- AToM Static Pseudowire Provisioning
- MPLS MTU Command Changes
- L2VPN Pseudowire Redundancy
- L2VPN Pseudowire Switching
- VPLS MAC Address Withdrawal
- Hot Standby Pseudowire Support for ATM and TDM Access Circuits
- Configuring Virtual Private LAN Services
- Routed Pseudo-Wire and Routed VPLS
- VPLS Autodiscovery BGP Based
- QoS Policies for VFI Pseudowires
- VPLS BGP Signaling L2VPN Inter-AS Option B
- Loop-Free Alternate Fast Reroute with L2VPN
- Feature Information for
- Prerequisites for VPLS Autodiscovery BGP Based
- Restrictions for VPLS Autodiscovery BGP Based
- Information About VPLS Autodiscovery BGP Based
- How to Configure VPLS Autodiscovery BGP Based
- Configuration Examples for VPLS Autodiscovery BGP Based
- Additional References
- Feature Information for VPLS Autodiscovery BGP Based
VPLS Autodiscovery BGP Based
VPLS Autodiscovery enables Virtual Private LAN Service (VPLS) provider edge (PE) devices to discover other PE devices that are part of the same VPLS domain. VPLS Autodiscovery also automatically detects when PE devices are added to or removed from a VPLS domain. As a result, with VPLS Autodiscovery enabled, you no longer need to manually configure a VPLS domain and maintain the configuration when a PE device is added or deleted. VPLS Autodiscovery uses the Border Gateway Protocol (BGP) to discover VPLS members and set up and tear down pseudowires in a VPLS domain.
This module describes how to configure BGP-based VPLS Autodiscovery.
- Feature Information for
- Prerequisites for VPLS Autodiscovery BGP Based
- Restrictions for VPLS Autodiscovery BGP Based
- Information About VPLS Autodiscovery BGP Based
- How to Configure VPLS Autodiscovery BGP Based
- Configuration Examples for VPLS Autodiscovery BGP Based
- Additional References
- Feature Information for VPLS Autodiscovery BGP Based
Feature Information for
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Feature Name |
Releases |
Feature Information |
---|---|---|
Prerequisites for VPLS Autodiscovery BGP Based
Before configuring VPLS Autodiscovery, if you are using a Cisco 7600 series router, perform the Cisco 7600 router-specific tasks listed in the section called “Virtual Private LAN Services on the Optical Service Modules” in the Cisco 7600 Series Router IOS Software Configuration Guide.
Restrictions for VPLS Autodiscovery BGP Based
- Virtual Private LAN Service (VPLS) Autodiscovery supports only IPv4 addresses.
- VPLS Autodiscovery uses Forwarding Equivalence Class (FEC) 129 to convey endpoint information. Manually configured pseudowires use FEC 128.
- VPLS Autodiscovery is not supported with Layer 2 Tunnel Protocol Version 3 (L2TPv3).
- You can configure both autodiscovered and manually configured pseudowires in a single virtual forwarding instance (VFI). However, you cannot configure different pseudowires on the same peer PE device.
- After enabling VPLS Autodiscovery, if you manually configure a neighbor by using the neighbor command and both peers are in autodiscovery mode, each peer will receive discovery data for that VPLS. To prevent peers from receiving data for the VPLS domain, manually configure route target (RT) values.
- If you manually configure multiple pseudowires and target different IP addresses on the same PE device for each pseudowire, do not use the same virtual circuit (VC) ID to identify pseudowires that terminate at the same PE device.
- If you manually configure a neighbor on one PE device, you cannot configure the same pseudowire in the other direction by using autodiscovery on another PE device.
- Tunnel selection is not supported with autodiscovered neighbors.
- Up to 16 RTs are supported per VFI.
- The same RT is not allowed in multiple VFIs on the same PE device.
- The Border Gateway Protocol (BGP) autodiscovery process does not support dynamic, hierarchical VPLS. User-facing PE (U-PE) devices cannot discover network-facing PE (N-PE) devices, and N-PE devices cannot discover U-PE devices.
- Pseudowires for autodiscovered neighbors have split horizon enabled. (A split horizon is enabled by default on all interfaces. A split horizon blocks route information from being advertised by a device, irrespective of the interface from which the information originates.) Therefore, manually configure pseudowires for hierarchical VPLS. Ensure that U-PE devices do not participate in BGP autodiscovery for these pseudowires.
- Do not disable split horizon on autodiscovered neighbors. Split horizon is required with VPLS Autodiscovery.
- The provisioned peer address must be a /32 address bound to the peer’s Label Distribution Protocol (LDP) router ID.
- A peer PE device must be able to access the IP address that is used as the local LDP router ID. Even if the IP address is not used in the xconnect command on the peer PE device, the IP address must be reachable.
Information About VPLS Autodiscovery BGP Based
- How VPLS Works
- How the VPLS Autodiscovery BGP Based Feature Works
- How Enabling VPLS Autodiscovery Differs from Manually Configuring VPLS
- show Commands Affected by VPLS Autodiscovery BGP Based
- BGP VPLS Autodiscovery Support on a Route Reflector
How VPLS Works
Virtual Private LAN Service (VPLS) allows Multiprotocol Label Switching (MPLS) networks to provide multipoint Ethernet LAN services, also known as Transparent LAN Services (TLS). All customer sites in a VPLS appear to be on the same LAN, even though these sites might be in different geographic locations.
How the VPLS Autodiscovery BGP Based Feature Works
VPLS Autodiscovery enables each Virtual Private LAN Service (VPLS) provider edge (PE) device to discover other PE devices that are part of the same VPLS domain. VPLS Autodiscovery also tracks PE devices when they are added to or removed from a VPLS domain. Autodiscovery and signaling functions use the Border Gateway Protocol (BGP) to find and track PE devices.
BGP uses the Layer 2 VPN (L2VPN) Routing Information Base (RIB) to store endpoint provisioning information, which is updated each time any Layer 2 virtual forwarding instance (VFI) is configured. The prefix and path information is stored in the L2VPN database, which allows BGP to make decisions about the best path. When BGP distributes the endpoint provisioning information in an update message to all its BGP neighbors, this endpoint information is used to configure a pseudowire mesh to support L2VPN-based services.
The BGP autodiscovery mechanism facilitates the configuration of L2VPN services, which are an integral part of the VPLS feature. VPLS enables flexibility in deploying services by connecting geographically dispersed sites as a large LAN over high-speed Ethernet in a robust and scalable IP Multiprotocol Label Switching (MPLS) network. For more information about BGP and the L2VPN address family in relation to VPLS Autodiscovery, see the following chapters in the IP Routing: BGP Configuration Guide:
How Enabling VPLS Autodiscovery Differs from Manually Configuring VPLS
With VPLS Autodiscovery enabled, you no longer need to manually set up Virtual Private LAN Service (VPLS). The commands that you use to set up VPLS Autodiscovery are similar to those that you use to manually configure VPLS, as shown in the table below. VPLS Autodiscovery uses neighbor commands in L2VPN address family mode to distribute endpoint information to configure a pseudowire.
Manual Configuration of VPLS |
VPLS Autodiscovery BGP Based |
---|---|
l2 vfi vpls1 manual vpn id 100 neighbor 10.10.10.1 encapsulation mpls neighbor 10.10.10.0 encapsulation mpls exit |
l2 vfi vpls1 autodiscovery vpn id 100 exit router bgp 1 no bgp default ipv4-unicast bgp log-neighbor-changes bgp update-delay 1 neighbor 10.1.1.2 remote-as 1 neighbor 10.1.1.2 update-source Loopback1 . . . address-family l2vpn vpls neighbor 10.1.1.2 activate neighbor 10.1.1.2 send-community extended exit-address-family |
Configure VPLS Autodiscovery by using the l2 vfi autodiscovery command. This command allows a virtual forwarding instance (VFI) to learn and advertise pseudowire endpoints. As a result, you no longer need to enter the neighbor command in L2 VFI configuration mode.
However, the neighbor command is still supported with VPLS Autodiscovery in L2 VFI configuration mode. You can use the neighbor command to allow PE devices that do not participate in the autodiscovery process to join the VPLS domain. You can also use the neighbor command with PE devices that have been configured using the Tunnel Selection feature. In addition, you can use the neighbor command in hierarchical VPLS configurations that have user-facing PE (U-PE) devices that do not participate in the autodiscovery process and have split-horizon forwarding disabled.
show Commands Affected by VPLS Autodiscovery BGP Based
The following show commands were enhanced for VPLS Autodiscovery:
- The show mpls l2transport vc detail command was updated to include Forwarding Equivalence Class (FEC) 129 signaling information for autodiscovered Virtual Private LAN Service (VPLS) pseudowires.
- The show vfi command was enhanced to display information related to autodiscovered virtual forwarding instances (VFIs). The new output includes the VPLS ID, the route distinguisher (RD), the route target (RT), and router IDs of discovered peers.
- The show xconnect command was updated with the rib keyword to provide Routing Information Base (RIB) information about pseudowires.
BGP VPLS Autodiscovery Support on a Route Reflector
By default, routes received from an internal BGP (iBGP) peer are not sent to another iBGP peer unless a full mesh configuration is formed between all BGP devices within an autonomous system (AS). This results in scalability issues. Using Border Gateway Protocol (BGP) route reflectors leads to much higher levels of scalability. Configuring a route reflector allows a device to advertise or reflect the iBGP learned routes to other iBGP speakers.
Virtual Private LAN Service (VPLS) Autodiscovery supports BGP route reflectors. A BGP route reflector can be used to reflect BGP VPLS prefixes without VPLS being explicitly configured on the route reflector.
A route reflector does not participate in autodiscovery; that is, no pseudowires are set up between the route reflector and the PE devices. A route reflector reflects VPLS prefixes to other PE devices so that these PE devices do not need to have a full mesh of BGP sessions. The network administrator configures only the BGP VPLS address family on a route reflector. For an example configuration of VPLS Autodiscovery support on a route reflector, see the “Example: BGP VPLS Autodiscovery Support on Route Reflector” section.
How to Configure VPLS Autodiscovery BGP Based
- Enabling VPLS Autodiscovery BGP Based
- Configuring BGP to Enable VPLS Autodiscovery
- Customizing the VPLS Autodiscovery Settings
Enabling VPLS Autodiscovery BGP Based
Perform this task to enable Virtual Private LAN Service (VPLS) PE devices to discover other PE devices that are part of the same VPLS domain.
1.
enable
2.
configure
terminal
3.
l2
vfi
vfi-name
autodiscovery
4.
vpn
id
vpn-id
5.
end
DETAILED STEPS
Configuring BGP to Enable VPLS Autodiscovery
The Border Gateway Protocol (BGP) Layer 2 VPN (L2VPN) address family supports a separate L2VPN Routing Information Base (RIB) that contains endpoint provisioning information for Virtual Private LAN Service (VPLS) Autodiscovery. BGP learns the endpoint provisioning information from the L2VPN database, which is updated each time a Layer 2 virtual forwarding instance (VFI) is configured. When BGP distributes the endpoint provisioning information in an update message to all its BGP neighbors, the endpoint information is used to configure a pseudowire mesh to support L2VPN-based services.
1.
enable
2.
configure
terminal
3.
router
bgp
autonomous-system-number
4.
no
bgp
default
ipv4-unicast
5.
bgp
log-neighbor-changes
6.
neighbor
{ip-address
|
peer-group-name}
remote-as
autonomous-system-number
7.
neighbor
{ip-address
|
peer-group-name}
update-source
interface-type
interface-number
8. Repeat Steps 6 and 7 to configure other BGP neighbors.
9.
address-family
l2vpn
[vpls]
10.
neighbor
{ip-address |
peer-group-name}
activate
11.
neighbor
{ip-address |
peer-group-name}
send-community {both |
standard |
extended}
12. Repeat Steps 10 and 11 to activate other BGP neighbors under an L2VPN address family.
13.
exit-address-family
14.
end
15.
show
vfi
16.
show
ip
bgp
l2vpn
vpls
{all |
rd
route-distinguisher}
DETAILED STEPS
Customizing the VPLS Autodiscovery Settings
Several commands allow you to customize the Virtual Private LAN Service (VPLS) environment. You can specify identifiers for the VPLS domain, the route distinguisher (RD), the route target (RT), and the provider edge (PE) device. Perform this task to customize these identifiers.
1.
enable
2.
configure
terminal
3.
l2
vfi
vfi-name
autodiscovery
4.
vpn
id
vpn-id
5.
vpls-id
{autonomous-system-number:nn |
ip-address:nn}
6.
rd
{autonomous-system-number:nn |
ip-address:nn}
7.
route-target
[import |
export |
both] {autonomous-system-number:nn |
ip-address:nn}
8.
auto-route-target
9.
end
DETAILED STEPS
Command or Action | Purpose | |
---|---|---|
Step 1 |
enable
Example: Device> enable |
Enables privileged EXEC mode. |
Step 2 |
configure
terminal
Example: Device# configure terminal |
Enters global configuration mode. |
Step 3 |
l2
vfi
vfi-name
autodiscovery
Example: Device(config)# l2 vfi vpls1 autodiscovery |
Enables VPLS Autodiscovery on the PE device and enters Layer 2 VFI configuration mode. |
Step 4 |
vpn
id
vpn-id
Example: Device(config-vfi)# vpn id 10 |
Configures a VPN ID for the VPLS domain. |
Step 5 |
vpls-id
{autonomous-system-number:nn |
ip-address:nn}
Example: Device(config-vfi)# vpls-id 5:300 |
(Optional) Assigns an identifier to the VPLS domain.
|
Step 6 |
rd
{autonomous-system-number:nn |
ip-address:nn}
Example: Device(config-vfi)# rd 2:3 |
(Optional) Specifies the RD to distribute endpoint information.
|
Step 7 |
route-target
[import |
export |
both] {autonomous-system-number:nn |
ip-address:nn}
Example: Device(config-vfi)# route-target 600:2222 |
(Optional) Specifies the RT.
|
Step 8 |
auto-route-target
Example: Device(config-vfi)# auto-route-target |
(Optional) Enables the automatic generation of a RT. |
Step 9 |
end
Example: Device(config-vfi)# end |
Exits L2 VFI configuration mode and returns to privileged EXEC mode. |
Configuration Examples for VPLS Autodiscovery BGP Based
The following examples show the configuration of a network that uses VPLS Autodiscovery:
- Example: Configuring BGP to Enable VPLS Autodiscovery
- Example: BGP VPLS Autodiscovery Support on Route Reflector
Example: Configuring BGP to Enable VPLS Autodiscovery
PE1
l2 router-id 10.1.1.1 l2 vfi auto autodiscovery vpn id 100 ! pseudowire-class mpls encapsulation mpls ! interface Loopback1 ip address 10.1.1.1 255.255.255.255 ! interface GigabitEthernet 0/0/1 description Backbone interface ip address 192.168.0.1 255.255.255.0 mpls ip ! router ospf 1 log-adjacency-changes network 10.1.1.0 0.0.0.255 area 0 network 172.16.0.0 0.0.0.255 area 0 ! router bgp 1 no bgp default ipv4-unicast bgp log-neighbor-changes bgp update-delay 1 neighbor 10.1.1.2 remote-as 1 neighbor 10.1.1.2 update-source Loopback1 neighbor 10.1.1.3 remote-as 1 neighbor 10.1.1.3 update-source Loopback1 ! address-family ipv4 no synchronization no auto-summary exit-address-family ! address-family l2vpn vpls neighbor 10.1.1.2 activate neighbor 10.1.1.2 send-community extended neighbor 10.1.1.3 activate neighbor 10.1.1.3 send-community extended exit-address-family
PE2
l2 router-id 10.1.1.2 l2 vfi auto autodiscovery vpn id 100 ! pseudowire-class mpls encapsulation mpls ! interface Loopback1 ip address 10.1.1.2 255.255.255.255 ! interface GigabitEthernet 0/0/1 description Backbone interface ip address 192.168.0.2 255.255.255.0 mpls ip ! router ospf 1 log-adjacency-changes network 10.1.1.0 0.0.0.255 area 0 network 172.16.0.0 0.0.0.255 area 0 ! router bgp 1 no bgp default ipv4-unicast bgp log-neighbor-changes bgp update-delay 1 neighbor 10.1.1.1 remote-as 1 neighbor 10.1.1.1 update-source Loopback1 neighbor 10.1.1.3 remote-as 1 neighbor 10.1.1.3 update-source Loopback1 ! address-family ipv4 no synchronization no auto-summary exit-address-family ! address-family l2vpn vpls neighbor 10.1.1.1 activate neighbor 10.1.1.1 send-community extended neighbor 10.1.1.3 activate neighbor 10.1.1.3 send-community extended exit-address-family
PE3
l2 router-id 10.1.1.3 l2 vfi auto autodiscovery vpn id 100 ! pseudowire-class mpls encapsulation mpls ! interface Loopback1 ip address 10.1.1.3 255.255.255.255 ! interface GigabitEthernet 0/0/1 description Backbone interface ip address 192.168.0.3 255.255.255.0 mpls ip ! router ospf 1 log-adjacency-changes network 10.1.1.0 0.0.0.255 area 0 network 172.16.0.0 0.0.0.255 area 0 ! router bgp 1 no bgp default ipv4-unicast bgp log-neighbor-changes bgp update-delay 1 neighbor 10.1.1.1 remote-as 1 neighbor 10.1.1.1 update-source Loopback1 neighbor 10.1.1.2 remote-as 1 neighbor 10.1.1.2 update-source Loopback1 ! address-family ipv4 no synchronization no auto-summary exit-address-family ! address-family l2vpn vpls neighbor 10.1.1.1 activate neighbor 10.1.1.1 send-community extended neighbor 10.1.1.2 activate neighbor 10.1.1.2 send-community extended exit-address-family
Example: BGP VPLS Autodiscovery Support on Route Reflector
In the following example, a host named PE-RR (indicating Provider Edge-Route Reflector) is configured as a route reflector that is capable of reflecting Virtual Private LAN Service (VPLS) prefixes. The VPLS address family is configured using the address-family l2vpn vpls command.
hostname PE-RR ! router bgp 1 bgp router-id 10.1.1.3 no bgp default route-target filter bgp log-neighbor-changes neighbor iBGP-PEERS peer-group neighbor iBGP-PEERS remote-as 1 neighbor iBGP-PEERS update-source Loopback1 neighbor 10.1.1.1 peer-group iBGP-PEERS neighbor 10.1.1.2 peer-group iBGP-PEERS ! address-family l2vpn vpls neighbor iBGP-PEERS send-community extended neighbor iBGP-PEERS route-reflector-client neighbor 10.1.1.1 peer-group iBGP-PEERS neighbor 10.1.1.2 peer-group iBGP-PEERS exit-address-family
Additional References
Related Documents
Related Topic |
Document Title |
---|---|
Cisco IOS commands |
|
MPLS commands |
Standards and RFCs
Standard and RFC |
Title |
---|---|
draft-ietf-l2vpn-signaling-08.txt |
Provisioning, Autodiscovery, and Signaling in L2VPNs |
draft-ietf-l2vpn-vpls-bgp-08.8 |
Virtual Private LAN Service (VPLS) Using BGP for Autodiscovery and Signaling |
draft-ietf-mpls-lsp-ping-03.txt |
Detecting MPLS Data Plane Failures |
draft-ietf-pwe3-vccv-01.txt |
Pseudo-Wire (PW) Virtual Circuit Connection Verification (VCCV) |
RFC 3916 |
Requirements for Pseudo-wire Emulation Edge-to-Edge (PWE3) |
RFC 3981 |
Pseudo Wire Emulation Edge-to-Edge Architecture |
RFC 6074 |
Provisioning, Auto-Discovery, and Signaling in Layer 2 Virtual Private Networks (L2VPNs) |
RFC 4761 |
Virtual Private LAN Service (VPLS) Using BGP for Auto-Discovery and Signaling |
MIBs
MIB |
MIBs Link |
---|---|
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: |
Technical Assistance
Description |
Link |
---|---|
The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies. Access to most tools on the Cisco Support website requires a Cisco.com user ID and password. If you have a valid service contract but do not have a user ID or password, you can register on Cisco.com. |
Feature Information for VPLS Autodiscovery BGP Based
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Feature Name |
Releases |
Feature Information |
---|---|---|
VPLS Autodiscovery BGP Based |
Cisco IOS XE Release 3.7S Cisco IOS Release 15.1(1)SY |
VPLS Autodiscovery enables each Virtual Private LAN Service (VPLS) provider edge (PE) device to discover other PE devices that are part of the same VPLS domain. |