L2VPN Autodiscovery and Signaling Commands

This section describes the commands used to configure L2VPN Autodiscovery and Signaling feature.

For detailed information about concepts and configuration, see the Configure L2VPN Autodiscovery and Signaling chapter in the L2VPN and Ethernet Services Configuration Guide for Cisco NCS 5000 Series Routers.

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

signaling-protocol

To enable the preferred signaling protocol for the VFI, use the signaling-protocol command in the BGP autodiscovery mode. To return to the default value, use the no form of this command.

signaling-protocol {bgp | ldp}

Syntax Description

bgp

Enables BGP protocol signaling.

ldp

Enables LDP protocol signaling.

Command Default

LDP signaling is enabled.

Command Modes

BGP autodiscovery configuration

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

This example shows how to enable the preferred signaling-protocol 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
Router(config-l2vpn-bg-bd-vfi-ad)#route-target 100:20
Router(config-l2vpn-bg-bd-vfi-ad)#signaling-protocol bgp

This example shows how to enable the preferred signaling-protocol 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
Router(config-l2vpn-xc-mp2mp-ad)# route-target 2.2.2.2:100
Router(config-l2vpn-xc-mp2mp-ad)# signaling-protocol ldp