autodiscovery bgp
To enable BGP autodiscovery for the L2VPN service, use the autodiscovery bgp command in the vfi configuration mode for VPLS and mp2mp configuration mode for VPWS. To disable BGP autodiscovery, use the no form of this command.
autodiscovery bgp
Syntax Description
This command has no keywords or arguments.
Command Default
None.
Command Modes
VFI configuration mode and mp2mp configuration mode
Command History
Release |
Modification |
---|---|
Release 6.3.1 |
This command was introduced. |
Usage Guidelines
No specific guidelines impact the use of this command.
Task ID
Task ID |
Operations |
---|---|
l2vpn |
read, write |
Examples
The following example shows how to enable bgp autodiscovery for VPLS:
Router# configure
Router(config)# l2vpn
Router(config-l2vpn)# bridge group EGroup
Router(config-l2vpn-bg)# bridge-domain eastdomain
Router(config-l2vpn-bg-bd)# vfi eastvfi
Router(config-l2vpn-bg-bd-vfi)# autodiscovery bgp
The following example shows how to enable bgp autodiscovery for VPWS:
Router# configure
Router(config)# l2vpn
Router(config-l2vpn)# xconnect group WGroup
Router(config-l2vpn-xc)# mp2mp westside
Router(config-l2vpn-xc-mp2mp)# vpn-id 100
Router(config-l2vpn-xc-mp2mp)# l2-encapsulation vlan
Router(config-l2vpn-xc-mp2mp)# autodiscovery bgp