Step 1 |
enable
|
Enables privileged EXEC mode.
|
Step 2 |
configure
terminal
Device# configure terminal
|
Enters global configuration mode.
|
Step 3 |
l2vpn vfi context
name
Device(config)# l2vpn vfi context vfi1
|
Establishes a L2VPN virtual forwarding interface (VFI) between two or more separate networks and enters Layer 2 VFI configuration
mode.
|
Step 4 |
vpn id
vpn-id
Device(config-vfi)# vpn id 100
|
Configures a VPN ID for the VPLS domain.
|
Step 5 |
autodiscovery bgp signaling {bgp |
ldp } [template
template-name]
Device(config-vfi)# autodiscovery bgp signaling bgp
|
Enables BGP signaling and discovery or LDP signaling and enters L2VPN VFI autodiscovery configuration mode.
Note
|
For the VPLS BGP Signaling feature use the
autodiscovery bgp signaling bgp command.
|
|
Step 6 |
ve id
ve-id
Device(config-vfi-autodiscovery)# ve id 1001
|
Specifies the VPLS endpoint (VE) device ID value. The VE ID identifies a VFI within a VPLS service. The VE device ID value
is from 1 to 16384.
|
Step 7 |
ve range
ve-range
Device(config-vfi-autodiscovery)# ve range 12
|
Specifies the VE device ID range value. The VE range overrides the minimum size of VE blocks. The default minimum size is
10. Any configured VE range must be higher than 10.
|
Step 8 |
exit
Device(config-vfi-autodiscovery)# exit
|
Exits L2VPN VFI autodiscovery configuration mode and enters L2VPN VFI configuration mode.
|
Step 9 |
exit
|
Exits L2VPN VFI configuration mode and enters global configuration mode.
|
Step 10 |
router bgp
autonomous-system-number
Device(config)# router bgp 100
|
Enters router configuration mode to create or configure a BGP routing process.
|
Step 11 |
bgp graceful-restart
Device(config-router)# bgp graceful-restart
|
Enables the BGP graceful restart capability and BGP nonstop forwarding (NSF) awareness.
|
Step 12 |
neighbor
ip-address
remote-as
autonomous-system-number
Device(config-router)# neighbor 10.10.10.1 remote-as 100
|
Configures peering with a BGP neighbor in the specified autonomous system.
|
Step 13 |
address-family l2vpn [vpls ]
Device(config-router)# address-family l2vpn vpls
|
Specifies the L2VPN address family and enters address family configuration mode.
In this example, an L2VPN VPLS address family session is created.
|
Step 14 |
neighbor
ip-address
activate
Device(config-router-af)# neighbor 10.10.10.1 activate
|
Enables the neighbor to exchange information for the L2VPN VPLS address family with the local device.
|
Step 15 |
neighbor
ip-address
send-community [both |
standard |
extended ]
Device(config-router-af)# neighbor 10.10.10.1 send-community extended
|
Specifies that a communities attribute should be sent to a BGP neighbor.
|
Step 16 |
neighbor
ip-address
suppress-signaling-protocol ldp
Device(config-router-af)# neighbor 10.10.10.1 suppress-signaling-protocol ldp
|
Suppresses LDP signaling and enables BGP signaling.
|
Step 17 |
end
Device(config-router-af)# end
|
Exits address family configuration mode and returns to privileged EXEC mode.
|
Step 18 |
show bgp l2vpn vpls {all |
rd
route-distinguisher}
Device# show bgp l2vpn vpls all
|
(Optional) Displays information about the L2VPN VPLS address family.
|