There are currently two IETF standards for the provisioning of Virtual Private LAN Services (VPLS). RFC 4762, Virtual Private LAN Service (VPLS) Using Label Distribution Protocol (LDP) Signaling, describes Label Distribution Protocol (LDP) VPLS, where VPLS pseudowires are signaled using LDP between VPLS Provider Edge (PE) routers, either configured manually or auto-discovered using BGP.
RFC 4761, Virtual Private LAN Service (VPLS) Using BGP for Auto-Discovery and Signaling, describes the use of Border Gateway Protocol (BGP) for both the auto-discovery of VPLS PEs and signaling of pseudowires between such PEs.
The network topology is displayed in Figure 36. The configuration uses seven 7750/7450/7710 Service Router (SR) nodes located in the same Autonomous System (AS). There are three Provider Edge (PE) routers, and RR-1 will act as a Route Reflector (RR) for the AS. The PE routers are all VPLS-aware, the Provider (P) routers are VPLS unaware and do not take part in the BGP process.
configure router bgp
group internal
family l2vpn
type internal
peer-as 65536
neighbor 192.0.2.20
exit
exit
no shutdown
exit
configure router bgp
cluster 1.1.1.1
group rr-internal
family l2-vpn
type internal
peer-as 65536
neighbor 192.0.2.1
exit
neighbor 192.0.2.2
exit
neighbor 192.0.2.3
exit
exit
no shutdown
exit
*A:PE-1# show router bgp neighbor 192.0.2.20
===============================================================================
BGP Neighbor
===============================================================================
-------------------------------------------------------------------------------
Peer : 192.0.2.20
Group : internal
-------------------------------------------------------------------------------
Peer AS : 65536 Peer Port : 179
Peer Address : 192.0.2.20
Local AS : 65536 Local Port : 50622
Local Address : 192.0.2.1
Peer Type : Internal
State : Established Last State : Active
Last Event : recvKeepAlive
Last Error : Unrecognized Error
Local Family : L2-VPN
Remote Family : L2-VPN
Hold Time : 90 Keep Alive : 30
Min Hold Time : 0
Active Hold Time : 90 Active Keep Alive : 30
Cluster Id : None
Preference : 170 Num of Update Flaps : 17
Recd. Paths : 27
IPv4 Recd. Prefixes : 0 IPv4 Active Prefixes : 0
IPv4 Suppressed Pfxs : 0 VPN-IPv4 Suppr. Pfxs : 0
VPN-IPv4 Recd. Pfxs : 0 VPN-IPv4 Active Pfxs : 0
Mc IPv4 Recd. Pfxs. : 0 Mc IPv4 Active Pfxs. : 0
Mc IPv4 Suppr. Pfxs : 0 IPv6 Suppressed Pfxs : 0
IPv6 Recd. Prefixes : 0 IPv6 Active Prefixes : 0
VPN-IPv6 Recd. Pfxs : 0 VPN-IPv6 Active Pfxs : 0
VPN-IPv6 Suppr. Pfxs : 0
Mc IPv6 Recd. Pfxs. : 0 Mc IPv6 Active Pfxs. : 0
Mc IPv6 Suppr. Pfxs : 0 L2-VPN Suppr. Pfxs : 0
L2-VPN Recd. Pfxs : 21 L2-VPN Active Pfxs : 14
MVPN-IPv4 Suppr. Pfxs: 0 MVPN-IPv4 Recd. Pfxs : 0
MVPN-IPv4 Active Pfxs: 0 MDT-SAFI Suppr. Pfxs : 0
MDT-SAFI Recd. Pfxs : 0 MDT-SAFI Active Pfxs : 0
Flow-IPv4 Suppr. Pfxs: 0 Flow-IPv4 Recd. Pfxs : 0
Flow-IPv4 Active Pfxs: 0 Rte-Tgt Suppr. Pfxs : 0
Rte-Tgt Recd. Pfxs : 0 Rte-Tgt Active Pfxs : 0
Backup IPv4 Pfxs : 0 Backup IPv6 Pfxs : 0
Mc Vpn Ipv4 Recd. Pf*: 0 Mc Vpn Ipv4 Active P*: 0
Backup Vpn IPv4 Pfxs : 0 Backup Vpn IPv6 Pfxs : 0
Input Queue : 0 Output Queue : 0
i/p Messages : 142 o/p Messages : 104
i/p Octets : 7224 o/p Octets : 2731
i/p Updates : 49 o/p Updates : 11
MVPN-IPv6 Suppr. Pfxs: 0 MVPN-IPv6 Recd. Pfxs : 0
MVPN-IPv6 Active Pfxs: 0
Flow-IPv6 Suppr. Pfxs: 0 Flow-IPv6 Recd. Pfxs : 0
Flow-IPv6 Active Pfxs: 0
Evpn Suppr. Pfxs : 0 Evpn Recd. Pfxs : 0
Evpn Active Pfxs : 0
TTL Security : Disabled Min TTL Value : n/a
Graceful Restart : Disabled Stale Routes Time : n/a
Restart Time : n/a
Advertise Inactive : Disabled Peer Tracking : Disabled
Advertise Label : None
Auth key chain : n/a
Disable Cap Nego : Disabled Bfd Enabled : Disabled
Flowspec Validate : Disabled Default Route Tgt : Disabled
Aigp Metric : Disabled Split Horizon : Disabled
Damp Peer Oscillatio*: Disabled Update Errors : 0
GR Notification : Disabled Fault Tolerance : Disabled
Rem Idle Hold Time : 00h00m00s
Next-Hop Unchanged : None
L2 VPN Cisco Interop : Disabled
Local Capability : RtRefresh MPBGP 4byte ASN
Remote Capability : RtRefresh MPBGP 4byte ASN
Local AddPath Capabi*: Disabled
Remote AddPath Capab*: Send - None
: Receive - None
Import Policy : None Specified / Inherited
Export Policy : None Specified / Inherited
-------------------------------------------------------------------------------
Neighbors : 1
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:PE-1#
A:RR-1# show router bgp summary
===============================================================================
BGP Router ID:192.0.2.20 AS:65536 Local AS:65536
===============================================================================
BGP Admin State : Up BGP Oper State : Up
Total Peer Groups : 1 Total Peers : 3
Total BGP Paths : 28 Total Path Memory : 5376
Total IPv4 Remote Rts : 0 Total IPv4 Rem. Active Rts : 0
Total McIPv4 Remote Rts : 0 Total McIPv4 Rem. Active Rts: 0
Total McIPv6 Remote Rts : 0 Total McIPv6 Rem. Active Rts: 0
Total IPv6 Remote Rts : 0 Total IPv6 Rem. Active Rts : 0
Total IPv4 Backup Rts : 0 Total IPv6 Backup Rts : 0
Total Supressed Rts : 0 Total Hist. Rts : 0
Total Decay Rts : 0
Total VPN Peer Groups : 0 Total VPN Peers : 0
Total VPN Local Rts : 0
Total VPN-IPv4 Rem. Rts : 0 Total VPN-IPv4 Rem. Act. Rts: 0
Total VPN-IPv6 Rem. Rts : 0 Total VPN-IPv6 Rem. Act. Rts: 0
Total VPN-IPv4 Bkup Rts : 0 Total VPN-IPv6 Bkup Rts : 0
Total VPN Supp. Rts : 0 Total VPN Hist. Rts : 0
Total VPN Decay Rts : 0
Total L2-VPN Rem. Rts : 24 Total L2VPN Rem. Act. Rts : 0
Total MVPN-IPv4 Rem Rts : 0 Total MVPN-IPv4 Rem Act Rts : 0
Total MDT-SAFI Rem Rts : 0 Total MDT-SAFI Rem Act Rts : 0
Total MSPW Rem Rts : 0 Total MSPW Rem Act Rts : 0
Total RouteTgt Rem Rts : 0 Total RouteTgt Rem Act Rts : 0
Total McVpnIPv4 Rem Rts : 0 Total McVpnIPv4 Rem Act Rts : 0
Total MVPN-IPv6 Rem Rts : 0 Total MVPN-IPv6 Rem Act Rts : 0
Total EVPN Rem Rts : 0 Total EVPN Rem Act Rts : 0
Total FlowIpv4 Rem Rts : 0 Total FlowIpv4 Rem Act Rts : 0
Total FlowIpv6 Rem Rts : 0 Total FlowIpv6 Rem Act Rts : 0
===============================================================================
BGP Summary
===============================================================================
Neighbor
AS PktRcvd InQ Up/Down State|Rcv/Act/Sent (Addr Family)
PktSent OutQ
-------------------------------------------------------------------------------
192.0.2.1
65536 169 0 00h45m51s 7/0/24 (L2VPN)
148 0
192.0.2.2
65536 167 0 00h25m28s 10/0/24 (L2VPN)
86 0
192.0.2.3
65536 167 0 01h16m16s 7/0/24 (L2VPN)
213 0
-------------------------------------------------------------------------------
A:RR-1#
A:PE-1# configure router mpls
interface "system"
exit
interface "int-PE-1-P-1"
exit
interface "int-PE-1-PE-2"
exit
path "loose"
no shutdown
exit
lsp "LSP-PE-1-PE-2"
to 192.0.2.2
primary "loose"
exit
no shutdown
exit
lsp "LSP-PE-1-PE-3"
to 192.0.2.3
primary "loose"
exit
no shutdown
exit
no shutdown
A:PE-1# configure router ldp
interface-parameters
interface "int-PE-1-P-1"
exit
interface "int-PE-1-PE-2"
exit
exit
targeted-session
exit
no shutdown
A:PE-1# configure service
pw-template 1 create
split-horizon-group "vpls-shg"
exit
exit
*A:PE-1# configure service pw-template
[no] controlword
force-vlan-vc-forwarding
vc-type {ether | vlan}
•
|
The force-vlan-vc-forwarding command will add a tag (equivalent to vc-type vlan) and will allow for customer QoS transparency (dot1p+DE bits).
|
A:PE-1# configure service sdp 33 mpls create
description "from-192.0.2.1-id-33"
far-end 192.0.2.2
lsp "LSP-PE-1-PE-2"
signaling bgp
keep-alive
shutdown
exit
no shutdown
Note that the signaling bgp parameter is required for BGP-VPLS to be able to use this SDP. Conversely, SDPs that are bound to RSVP-based LSPs with signaling set to the default value of
tldp will not be used as SDPs within BGP-VPLS.
Figure 37 shows a VPLS instance where SDPs are auto-provisioned. In this case, the transport tunnels are LDP signaled.
A:PE-1# configure service vpls 1 customer 1 create
bgp
route-distinguisher 65536:1
route-target export target:65536:1 import target:65536:1
pw-template-bind 1
exit
bgp-vpls
max-ve-id 10
ve-name PE-1
ve-id 1
exit
no shutdown
exit
stp
shutdown
exit
sap 1/1/4:1.0 create
exit
no shutdown
exit
The bgp context specifies parameters which are valid for all of the VPLS BGP applications, such as BGP-multi-homing, BGP-auto-discovery as well as BGP-VPLS.
Within the bgp context, parameters are configured that are used by neighboring PEs to determine membership of a given VPLS instance, such as the auto-discovery of PEs containing the same VPLS instance; the route-distinguisher is configured, along with the route target extended communities.
Also within the bgp-vpls context, the signaling parameters are configured. These determine the service labels required for the data plane of the VPLS instance.
pw-template template-id [split-horizon-group
groupname] [import-rt
import-rt-value (up to 5 max)]
If the policy has changed and allow-service-impact is true, then the old binding is removed and it is re-added with the new template.
The max-ve-id value determines the range of the ve-id value that can be configured. If a PE receives a BGP-VPLS update containing a ve-id with a greater value than the configured
max-ve-id, then the update is dropped and no service labels are installed for this ve-id.
The max-ve-id command also checks the locally-configured ve-id, and prevents a higher value from being used.
For ve-id ≤ 8, a label will be allocated from this block.
Table 3 shows how the choice of ve-ids can affect the number of label blocks allocated, and hence the number of labels:
The max-ve-id must be configured first, and determines the maximum value of the ve-id that can be configured within the PE. The ve-id value cannot be higher than this within the PE configuration, ve-id <= max-ve-id. Similarly, if the ve-id within a received NLRI is higher than the
max-ve-id value, it will not be accepted as valid consequently the max-ve-id configured on all PEs must be greater than or equal to any ve-id used in the VPLS.
Executing the shutdown command triggers an MP-UNREACH-NLRI from the PE to all BGP peers
The no shutdown command triggers an MP-REACH-NLRI to the same peers.
A:PE-2# configure service
pw-template 1 create
split-horizon-group "vpls-shg"
exit
exit
vpls 1 customer 1 create
bgp
route-distinguisher 65536:1
route-target export target:65536:1 import target:65536:1
pw-template-binding 1
exit
exit
bgp-vpls
max-ve-id 10
ve-name PE-2
ve-id 2
exit
no shutdown
exit
stp
shutdown
exit
service-name "VPLS service-174 PE-2 (192.0.2.2)"
sap 1/1/4:1.0 create
exit
no shutdown
exit
Note that the max-ve-id value is set to 10 to allow an increase in the number of PEs that could be a part of this VPLS instance.
A:PE-3# configure service
pw-template 1 create
split-horizon-group "vpls-shg"
exit
exit
vpls 1 customer 1 create
bgp
route-distinguisher 65536:1
route-target export target:65536:1 import target:65536:1
pw-template-binding 1
exit
exit
bgp-vpls
max-ve-id 10
ve-name PE-3
ve-id 3
exit
no shutdown
exit
stp
shutdown
exit
sap 1/1/4:1.0 create
exit
no shutdown
exit
*A:PE-1# show service id 1 bgp-vpls
===============================================================================
BGP VPLS Information
===============================================================================
Max Ve Id : 10 Admin State : Enabled
VE Name : PE-1 VE Id : 1
PW Tmpl used : 1
===============================================================================
*A:PE-1#
*A:PE-1# show service id 1 base
===============================================================================
Service Basic Information
===============================================================================
Service Id : 1 Vpn Id : 0
Service Type : VPLS
Name : VPLS service-174 PE-1 (192.0.2.1)
Description : (Not Specified)
Customer Id : 1 Creation Origin : manual
Last Status Change: 06/03/2014 14:36:59
Last Mgmt Change : 06/03/2014 14:58:26
Admin State : Up Oper State : Up
MTU : 1514 Def. Mesh VC Id : 1
SAP Count : 1 SDP Bind Count : 2
Snd Flush on Fail : Disabled Host Conn Verify : Disabled
Propagate MacFlush: Disabled Per Svc Hashing : Disabled
Allow IP Intf Bind: Disabled
Def. Gateway IP : None
Def. Gateway MAC : None
Temp Flood Time : Disabled Temp Flood : Inactive
Temp Flood Chg Cnt: 0
-------------------------------------------------------------------------------
Service Access & Destination Points
-------------------------------------------------------------------------------
Identifier Type AdmMTU OprMTU Adm Opr
-------------------------------------------------------------------------------
sap:1/1/4:1.0 qinq 1522 1522 Up Up
sdp:17401:4294967274 SB(192.0.2.2) BgpVpls 0 1556 Up Up
sdp:17404:4294967286 SB(192.0.2.3) BgpVpls 0 1556 Up Up
===============================================================================
*A:PE-1#
*A:PE-1# show service id 1 sdp
===============================================================================
Services: Service Destination Points
===============================================================================
SdpId Type Far End addr Adm Opr I.Lbl E.Lbl
-------------------------------------------------------------------------------
17401:4294967274 Bgp* 192.0.2.2 Up Up 131064 131063
17404:4294967286 Bgp* 192.0.2.3 Up Up 131065 131063
-------------------------------------------------------------------------------
Number of SDPs : 2
-------------------------------------------------------------------------------
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:PE-1#
DEBUG #2001 Base Peer 1: 192.0.2.20
"Peer 1: 192.0.2.20: UPDATE
Peer 1: 192.0.2.20 - Send BGP UPDATE:
Withdrawn Length = 0
Total Path Attr Length = 72
Flag: 0x40 Type: 1 Len: 1 Origin: 0
Flag: 0x40 Type: 2 Len: 0 AS Path:
Flag: 0x80 Type: 4 Len: 4 MED: 0
Flag: 0x40 Type: 5 Len: 4 Local Preference: 100
Flag: 0xc0 Type: 16 Len: 16 Extended Community:
target:65536:1
l2-vpn:Encap=19: Flags=none: MTU=1514
Flag: 0x90 Type: 14 Len: 28 Multiprotocol Reachable NLRI:
Address Family L2VPN
NextHop len 4 NextHop 192.0.2.1
[VPLS] veid: 1, vbo: 1, vbs: 8, label-base: 131063, RD 65536:1
DEBUG #2001 Base Peer 1: 192.0.2.20
"Peer 1: 192.0.2.20: UPDATE
Peer 1: 192.0.2.20 - Send BGP UPDATE:
Withdrawn Length = 0
Total Path Attr Length = 72
Flag: 0x40 Type: 1 Len: 1 Origin: 0
Flag: 0x40 Type: 2 Len: 0 AS Path:
Flag: 0x80 Type: 4 Len: 4 MED: 0
Flag: 0x40 Type: 5 Len: 4 Local Preference: 100
Flag: 0xc0 Type: 16 Len: 16 Extended Community:
target:65536:1
l2-vpn:Encap=19: Flags=D: MTU=1514
Flag: 0x90 Type: 14 Len: 28 Multiprotocol Reachable NLRI:
Address Family L2VPN
NextHop len 4 NextHop 192.0.2.1
[VPLS] veid: 1, vbo: 1, vbs: 8, label-base: 131063, RD 65536:1
*A:PE-1# show router bgp routes l2-vpn rd 65536:1 hunt
.. snipped ..
-------------------------------------------------------------------------------
RIB Out Entries
-------------------------------------------------------------------------------
Route Type : VPLS
Route Dist. : 65536:1
VeId : 1 Block Size : 8
Base Offset : 1 Label Base : 131063
Nexthop : 192.0.2.1
To : 192.0.2.20
Res. Nexthop : n/a
Local Pref. : 100 Interface Name : NotAvailable
Aggregator AS : None Aggregator : None
Atomic Aggr. : Not Atomic MED : 0
AIGP Metric : None
Connector : None
Community : target:65536:1
l2-vpn/vrf-imp:Encap=19: Flags=none: MTU=1514: PREF=0
Cluster : No Cluster Members
Originator Id : None Peer Router Id : 192.0.2.20
Origin : IGP
AS-Path : No As-Path
Neighbor-AS : N/A
-------------------------------------------------------------------------------
Routes : 4
===============================================================================
*A:PE-1#
*A:PE-2# show router bgp routes l2-vpn rd 65536:1
===============================================================================
BGP Router ID:192.0.2.2 AS:65536 Local AS:65536
===============================================================================
Legend -
Status codes : u - used, s - suppressed, h - history, d - decayed, * - valid
Origin codes : i - IGP, e - EGP, ? - incomplete, > - best, b - backup
===============================================================================
BGP L2VPN Routes
===============================================================================
Flag RouteType Prefix MED
RD SiteId Label
Nexthop VeId BlockSize LocalPref
As-Path BaseOffset vplsLabelBa
se
-------------------------------------------------------------------------------
u*>i VPLS - - 0
65536:1 - -
192.0.2.1 1 8 100
No As-Path 1 131063
i VPLS - - 0
65536:1 - -
192.0.2.2 2 8 100
No As-Path 1 131063
u*>i VPLS - - 0
65536:1 - -
192.0.2.3 3 8 100
No As-Path 1 131063
-------------------------------------------------------------------------------
Routes : 3
===============================================================================
*A:PE-2#
*A:PE-2# show service id 1 sdp
===============================================================================
Services: Service Destination Points
===============================================================================
SdpId Type Far End addr Adm Opr I.Lbl E.Lbl
-------------------------------------------------------------------------------
17406:4294967287 Bgp* 192.0.2.3 Up Up 131065 131064
17407:4294967294 Bgp* 192.0.2.1 Up Up 131063 131064
-------------------------------------------------------------------------------
Number of SDPs : 2
-------------------------------------------------------------------------------
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:PE-2#
A:PE-3# show router bgp routes l2-vpn rd 65536:1
===============================================================================
BGP Router ID:192.0.2.3 AS:65536 Local AS:65536
===============================================================================
Legend -
Status codes : u - used, s - suppressed, h - history, d - decayed, * - valid
Origin codes : i - IGP, e - EGP, ? - incomplete, > - best, b - backup
===============================================================================
BGP L2VPN Routes
===============================================================================
Flag RouteType Prefix MED
RD SiteId Label
Nexthop VeId BlockSize LocalPref
As-Path BaseOffset vplsLabelBa
se
-------------------------------------------------------------------------------
u*>i VPLS - - 0
65536:1 - -
192.0.2.1 1 8 100
No As-Path 1 131063
u*>i VPLS - - 0
65536:1 - -
192.0.2.2 2 8 100
No As-Path 1 131063
i VPLS - - 0
65536:1 - -
192.0.2.3 3 8 100
No As-Path 1 131063
-------------------------------------------------------------------------------
Routes : 3
===============================================================================
A:PE-3#
*A:PE-3# show service id 1 sdp
===============================================================================
Services: Service Destination Points
===============================================================================
SdpId Type Far End addr Adm Opr I.Lbl E.Lbl
-------------------------------------------------------------------------------
17399:4294967268 Bgp* 192.0.2.2 Up Up 131064 131065
17403:4294967281 Bgp* 192.0.2.1 Up Up 131063 131065
-------------------------------------------------------------------------------
Number of SDPs : 2
-------------------------------------------------------------------------------
===============================================================================
* indicates that the corresponding row element may have been truncated.
A:PE-3#
*A:PE-2# show service id 1 base
===============================================================================
Service Basic Information
===============================================================================
Service Id : 1 Vpn Id : 0
Service Type : VPLS
Name : VPLS service-174 PE-2 (192.0.2.2)
Description : (Not Specified)
Customer Id : 1 Creation Origin : manual
Last Status Change: 06/03/2014 14:57:28
Last Mgmt Change : 06/03/2014 14:58:20
Admin State : Up Oper State : Up
MTU : 1514 Def. Mesh VC Id : 1
SAP Count : 1 SDP Bind Count : 2
Snd Flush on Fail : Disabled Host Conn Verify : Disabled
Propagate MacFlush: Disabled Per Svc Hashing : Disabled
Allow IP Intf Bind: Disabled
Def. Gateway IP : None
Def. Gateway MAC : None
Temp Flood Time : Disabled Temp Flood : Inactive
Temp Flood Chg Cnt: 0
-------------------------------------------------------------------------------
Service Access & Destination Points
-------------------------------------------------------------------------------
Identifier Type AdmMTU OprMTU Adm Opr
-------------------------------------------------------------------------------
sap:1/1/4:1.0 qinq 1522 1522 Up Up
sdp:17406:4294967287 SB(192.0.2.3) BgpVpls 0 1556 Up Up
sdp:17407:4294967294 SB(192.0.2.1) BgpVpls 0 1556 Up Up
===============================================================================
*A:PE-2#
*A:PE-2# show router bgp routes l2-vpn rd 65536:1 hunt
.. snipped ..
-------------------------------------------------------------------------------
RIB Out Entries
-------------------------------------------------------------------------------
Route Type : VPLS
Route Dist. : 65536:1
VeId : 2 Block Size : 8
Base Offset : 1 Label Base : 131063
Nexthop : 192.0.2.2
To : 192.0.2.20
Res. Nexthop : n/a
Local Pref. : 100 Interface Name : NotAvailable
Aggregator AS : None Aggregator : None
Atomic Aggr. : Not Atomic MED : 0
AIGP Metric : None
Connector : None
Community : target:65536:1
l2-vpn/vrf-imp:Encap=19: Flags=none: MTU=1514: PREF=0
Cluster : No Cluster Members
Originator Id : None Peer Router Id : 192.0.2.20
Origin : IGP
AS-Path : No As-Path
Neighbor-AS : N/A
-------------------------------------------------------------------------------
Routes : 4
===============================================================================
*A:PE-2#
*A:PE-1# show service id 1 sdp
===============================================================================
Services: Service Destination Points
===============================================================================
SdpId Type Far End addr Adm Opr I.Lbl E.Lbl
-------------------------------------------------------------------------------
17401:4294967274 Bgp* 192.0.2.2 Up Up 131064 131063
17404:4294967286 Bgp* 192.0.2.3 Up Up 131065 131063
-------------------------------------------------------------------------------
Number of SDPs : 2
-------------------------------------------------------------------------------
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:PE-1#
A:PE-3# show service id 1 sdp
===============================================================================
Services: Service Destination Points
===============================================================================
SdpId Type Far End addr Adm Opr I.Lbl E.Lbl
-------------------------------------------------------------------------------
17399:4294967268 Bgp* 192.0.2.2 Up Up 131064 131065
17403:4294967281 Bgp* 192.0.2.1 Up Up 131063 131065
-------------------------------------------------------------------------------
Number of SDPs : 2
-------------------------------------------------------------------------------
===============================================================================
* indicates that the corresponding row element may have been truncated.
A:PE-3#
A:PE-3# show service id 1 base
===============================================================================
Service Basic Information
===============================================================================
Service Id : 1 Vpn Id : 0
Service Type : VPLS
Name : VPLS service-174 PE-3 (192.0.2.3)
Description : (Not Specified)
Customer Id : 1 Creation Origin : manual
Last Status Change: 06/03/2014 14:06:18
Last Mgmt Change : 06/03/2014 14:58:30
Admin State : Up Oper State : Up
MTU : 1514 Def. Mesh VC Id : 1
SAP Count : 1 SDP Bind Count : 2
Snd Flush on Fail : Disabled Host Conn Verify : Disabled
Propagate MacFlush: Disabled Per Svc Hashing : Disabled
Allow IP Intf Bind: Disabled
Def. Gateway IP : None
Def. Gateway MAC : None
Temp Flood Time : Disabled Temp Flood : Inactive
Temp Flood Chg Cnt: 0
-------------------------------------------------------------------------------
Service Access & Destination Points
-------------------------------------------------------------------------------
Identifier Type AdmMTU OprMTU Adm Opr
-------------------------------------------------------------------------------
sap:1/1/4:1.0 qinq 1522 1522 Up Up
sdp:17399:4294967268 SB(192.0.2.2) BgpVpls 0 1556 Up Up
sdp:17403:4294967281 SB(192.0.2.1) BgpVpls 0 1556 Up Up
===============================================================================
A:PE-3#
A:PE-3# show service id 1 sdp
===============================================================================
Services: Service Destination Points
===============================================================================
SdpId Type Far End addr Adm Opr I.Lbl E.Lbl
-------------------------------------------------------------------------------
17399:4294967268 Bgp* 192.0.2.2 Up Up 131064 131065
17403:4294967281 Bgp* 192.0.2.1 Up Up 131063 131065
-------------------------------------------------------------------------------
Number of SDPs : 2
-------------------------------------------------------------------------------
===============================================================================
* indicates that the corresponding row element may have been truncated.
A:PE-3#
*A:PE-1# show service id 1 sdp
===============================================================================
Services: Service Destination Points
===============================================================================
SdpId Type Far End addr Adm Opr I.Lbl E.Lbl
-------------------------------------------------------------------------------
17401:4294967274 Bgp* 192.0.2.2 Up Up 131064 131063
17404:4294967286 Bgp* 192.0.2.3 Up Up 131065 131063
-------------------------------------------------------------------------------
Number of SDPs : 2
-------------------------------------------------------------------------------
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:PE-1#
*A:PE-2# show service id 1 sdp
===============================================================================
Services: Service Destination Points
===============================================================================
SdpId Type Far End addr Adm Opr I.Lbl E.Lbl
-------------------------------------------------------------------------------
17406:4294967287 Bgp* 192.0.2.3 Up Up 131065 131064
17407:4294967294 Bgp* 192.0.2.1 Up Up 131063 131064
-------------------------------------------------------------------------------
Number of SDPs : 2
-------------------------------------------------------------------------------
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:PE-2#
Figure 38 shows an example of a VPLS instance where SDPs are pre-provisioned with LDP signalled transport tunnels.
configure service
sdp 33 mpls create
description "from-192.0.2.1-id-33"
far-end 192.0.2.2
lsp "LSP-PE-1-PE-2"
signaling bgp
keep-alive
shutdown
exit
no shutdown
exit
sdp 42 mpls create
description "from-192.0.2.1-id-42"
far-end 192.0.2.3
lsp "LSP-PE-1-PE-3"
signaling bgp
keep-alive
shutdown
exit
no shutdown
exit
exit
configure service
sdp 40 mpls create
far-end 192.0.2.1
lsp "LSP-PE-2-PE-1"
signaling bgp
keep-alive
shutdown
exit
no shutdown
exit
sdp 41 mpls create
far-end 192.0.2.3
lsp "LSP-PE-2-PE-3"
signaling bgp
keep-alive
shutdown
exit
no shutdown
exit
exit
configure service
sdp 38 mpls create
description "from-192.0.2.3-id-38"
far-end 192.0.2.1
lsp "LSP-PE-3-PE-1"
signaling bgp
keep-alive
shutdown
exit
collect-stats
no shutdown
exit
sdp 39 mpls create
description "from-192.0.2.3-id-39"
far-end 192.0.2.2
lsp "LSP-PE-3-PE-2"
signaling bgp
keep-alive
shutdown
exit
collect-stats
no shutdown
exit
exit
*A:PE-3>config service sdp 64 mpls create
far-end 192.0.2.2
signaling bgp
keep-alive
shutdown
exit
no shutdown
A:PE-1# configure service
pw-template 3 use-provisioned-sdp create
split-horizon-group "vpls-shg"
exit
exit
*A:PE-1# configure service vpls 2 customer 1 create
bgp
route-distinguisher 65536:2
route-target export target:65536:2 import target:65536:2
pw-template-binding 3
exit
exit
bgp-vpls
max-ve-id 100
ve-name PE-1
ve-id 1
exit
no shutdown
exit
stp
shutdown
exit
sap 1/1/4:2.0 create
exit
no shutdown
exit
A:PE-2# configure service vpls 2
bgp
route-distinguisher 65536:2
route-target export target:65536:2 import target:65536:2
pw-template-binding 3
exit
exit
bgp-vpls
max-ve-id 100
ve-name PE-2
ve-id 20
exit
no shutdown
exit
stp
shutdown
exit
sap 1/1/4:2.0 create
exit
no shutdown
A:PE-3# configure service vpls 2
bgp
route-distinguisher 65536:2
route-target export target:65536:2 import target:65536:2
pw-template-binding 3
exit
exit
bgp-vpls
max-ve-id 100
ve-name PE-3
ve-id 3
exit
no shutdown
exit
stp
shutdown
exit
sap 1/1/4:2.0 create
exit
no shutdown
*A:PE-2# show service id 2 base
===============================================================================
Service Basic Information
===============================================================================
Service Id : 2 Vpn Id : 0
Service Type : VPLS
Name : (Not Specified)
Description : (Not Specified)
Customer Id : 1 Creation Origin : manual
Last Status Change: 06/03/2014 14:57:28
Last Mgmt Change : 06/03/2014 14:58:52
Admin State : Up Oper State : Up
MTU : 1514 Def. Mesh VC Id : 2
SAP Count : 1 SDP Bind Count : 2
Snd Flush on Fail : Disabled Host Conn Verify : Disabled
Propagate MacFlush: Disabled Per Svc Hashing : Disabled
Allow IP Intf Bind: Disabled
Def. Gateway IP : None
Def. Gateway MAC : None
Temp Flood Time : Disabled Temp Flood : Inactive
Temp Flood Chg Cnt: 0
-------------------------------------------------------------------------------
Service Access & Destination Points
-------------------------------------------------------------------------------
Identifier Type AdmMTU OprMTU Adm Opr
-------------------------------------------------------------------------------
sap:1/1/4:2.0 qinq 1522 1522 Up Up
sdp:40:4294967285 S(192.0.2.1) BgpVpls 0 1556 Up Up
sdp:41:4294967284 S(192.0.2.3) BgpVpls 0 1556 Up Up
===============================================================================
*A:PE-2#
*A:PE-2# show service id 2 base
===============================================================================
Service Basic Information
===============================================================================
Service Id : 2 Vpn Id : 0
Service Type : VPLS
Name : (Not Specified)
Description : (Not Specified)
Customer Id : 1 Creation Origin : manual
Last Status Change: 06/03/2014 14:57:28
Last Mgmt Change : 06/03/2014 14:58:52
Admin State : Up Oper State : Up
MTU : 1514 Def. Mesh VC Id : 2
SAP Count : 1 SDP Bind Count : 2
Snd Flush on Fail : Disabled Host Conn Verify : Disabled
Propagate MacFlush: Disabled Per Svc Hashing : Disabled
Allow IP Intf Bind: Disabled
Def. Gateway IP : None
Def. Gateway MAC : None
Temp Flood Time : Disabled Temp Flood : Inactive
Temp Flood Chg Cnt: 0
-------------------------------------------------------------------------------
Service Access & Destination Points
-------------------------------------------------------------------------------
Identifier Type AdmMTU OprMTU Adm Opr
-------------------------------------------------------------------------------
sap:1/1/4:2.0 qinq 1522 1522 Up Up
sdp:40:4294967285 S(192.0.2.1) BgpVpls 0 1556 Up Up
sdp:41:4294967284 S(192.0.2.3) BgpVpls 0 1556 Up Up
===============================================================================
*A:PE-2#
A:PE-3# show service id 2 base
===============================================================================
Service Basic Information
===============================================================================
Service Id : 2 Vpn Id : 0
Service Type : VPLS
Name : (Not Specified)
Description : (Not Specified)
Customer Id : 1 Creation Origin : manual
Last Status Change: 06/03/2014 14:06:18
Last Mgmt Change : 06/03/2014 14:58:57
Admin State : Up Oper State : Up
MTU : 1514 Def. Mesh VC Id : 2
SAP Count : 1 SDP Bind Count : 2
Snd Flush on Fail : Disabled Host Conn Verify : Disabled
Propagate MacFlush: Disabled Per Svc Hashing : Disabled
Allow IP Intf Bind: Disabled
Def. Gateway IP : None
Def. Gateway MAC : None
Temp Flood Time : Disabled Temp Flood : Inactive
Temp Flood Chg Cnt: 0
-------------------------------------------------------------------------------
Service Access & Destination Points
-------------------------------------------------------------------------------
Identifier Type AdmMTU OprMTU Adm Opr
-------------------------------------------------------------------------------
sap:1/1/4:2.0 qinq 1522 1522 Up Up
sdp:38:4294967282 S(192.0.2.1) BgpVpls 0 1556 Up Up
sdp:39:4294967266 S(192.0.2.2) BgpVpls 0 1556 Up Up
===============================================================================
A:PE-3#
*A:PE-1# show router bgp routes l2-vpn rd 65536:2 hunt
===============================================================================
BGP Router ID:192.0.2.1 AS:65536 Local AS:65536
===============================================================================
Legend -
Status codes : u - used, s - suppressed, h - history, d - decayed, * - valid
Origin codes : i - IGP, e - EGP, ? - incomplete, > - best, b - backup
===============================================================================
BGP L2VPN Routes
===============================================================================
.. snipped ..
-------------------------------------------------------------------------------
RIB Out Entries
-------------------------------------------------------------------------------
Route Type : VPLS
Route Dist. : 65536:2
VeId : 1 Block Size : 8
Base Offset : 1 Label Base : 131055
Nexthop : 192.0.2.1
To : 192.0.2.20
Res. Nexthop : n/a
Local Pref. : 100 Interface Name : NotAvailable
Aggregator AS : None Aggregator : None
Atomic Aggr. : Not Atomic MED : 0
AIGP Metric : None
Connector : None
Community : target:65536:2
l2-vpn/vrf-imp:Encap=19: Flags=none: MTU=1514: PREF=0
Cluster : No Cluster Members
Originator Id : None Peer Router Id : 192.0.2.20
Origin : IGP
AS-Path : No As-Path
Neighbor-AS : N/A
Route Type : VPLS
Route Dist. : 65536:2
VeId : 1 Block Size : 8
Base Offset : 17 Label Base : 131028
Nexthop : 192.0.2.1
To : 192.0.2.20
Res. Nexthop : n/a
Local Pref. : 100 Interface Name : NotAvailable
Aggregator AS : None Aggregator : None
Atomic Aggr. : Not Atomic MED : 0
AIGP Metric : None
Connector : None
Community : target:65536:2
l2-vpn/vrf-imp:Encap=19: Flags=none: MTU=1514: PREF=0
Cluster : No Cluster Members
Originator Id : None Peer Router Id : 192.0.2.20
Origin : IGP
AS-Path : No As-Path
Neighbor-AS : N/A
-------------------------------------------------------------------------------
Routes : 8
===============================================================================
*A:PE-1#
Update 1: LB = 131055, VBS = 8, VBO = 1
VBO ≤ ve-id for ve-id = 20 is TRUE
ve-id < (VBO+VBS) for ve-id = 20 is FALSE.
PE-2 cannot choose a label from this block.
Update 2: LB = 131028, VBS = 8, VBO = 17
VBO ≤ ve-id for ve-id = 20 is TRUE
ve-id < (VBO+VBS) for ve-id = 20 is TRUE.
PE-2 chooses label 131028 + 20 - 17 = 131031 (LB + veid - VBO)
*A:PE-2# show service id 2 sdp
===============================================================================
Services: Service Destination Points
===============================================================================
SdpId Type Far End addr Adm Opr I.Lbl E.Lbl
-------------------------------------------------------------------------------
40:4294967285 Bgp* 192.0.2.1 Up Up 131020 131031
41:4294967284 Bgp* 192.0.2.3 Up Up 131022 131031
-------------------------------------------------------------------------------
Number of SDPs : 2
-------------------------------------------------------------------------------
===============================================================================
* indicates that the corresponding row element may have been truncated.
*A:PE-2#
Update 1: LB = 131055, VBS = 8, VBO = 1
VBO ≤ ve-id for ve-id = 3 is TRUE
ve-id < (VBO+VBS) for ve-id = 3 is TRUE.
PE-3 chooses label 131055 + 3 - 1 = 131057 (LB + veid - VBO)
Update 2: LB = 131028, VBS = 8, VBO = 17
VBO ≤ ve-id for ve-id = 3 is FALSE
ve-id < (VBO+VBS) for ve-id = 3 is FALSE.
PE-3 cannot choose a label from this block.
A:PE-3# show service id 2 sdp
===============================================================================
Services: Service Destination Points
===============================================================================
SdpId Type Far End addr Adm Opr I.Lbl E.Lbl
-------------------------------------------------------------------------------
38:4294967282 Bgp* 192.0.2.1 Up Up 131055 131057
39:4294967266 Bgp* 192.0.2.2 Up Up 131031 131022
-------------------------------------------------------------------------------
Number of SDPs : 2
-------------------------------------------------------------------------------
===============================================================================
* indicates that the corresponding row element may have been truncated.
A:PE-3#
*A:PE-1# show router mpls label 32 131071 in-use
=================================================================
MPLS Labels from 32 to 131071 (In-use)
=================================================================
Label Label Type Label Owner
-----------------------------------------------------------------
131024 dynamic TLDP
131025 dynamic TLDP
131026 dynamic TLDP
131027 dynamic TLDP
131028 dynamic BGP
131029 dynamic BGP
131030 dynamic BGP
131031 dynamic BGP
131032 dynamic BGP
131033 dynamic BGP
131034 dynamic BGP
131035 dynamic BGP
131036 dynamic TLDP
131037 dynamic TLDP
131038 dynamic TLDP
131039 dynamic RSVP
131040 dynamic RSVP
131041 dynamic TLDP
131042 dynamic ILDP
131043 dynamic ILDP
131044 dynamic ILDP
131045 dynamic ILDP
131046 dynamic ILDP
131047 dynamic BGP
131048 dynamic BGP
131049 dynamic BGP
131050 dynamic BGP
131051 dynamic BGP
131052 dynamic BGP
131053 dynamic BGP
131054 dynamic BGP
131055 dynamic BGP
131056 dynamic BGP
131057 dynamic BGP
131058 dynamic BGP
131059 dynamic BGP
131060 dynamic BGP
131061 dynamic BGP
131062 dynamic BGP
131063 dynamic BGP
131064 dynamic BGP
131065 dynamic BGP
131066 dynamic BGP
131067 dynamic BGP
131068 dynamic BGP
131069 dynamic BGP
131070 dynamic BGP
131071 dynamic ILDP
-----------------------------------------------------------------
In-use labels (Owner: All) in specified range : 48
In-use labels in entire range : 48
=================================================================
*A:PE-1#