# Configuring BGP Signaling for VPWS

To configure BGP signaling for an VPWS L2VPN on the PE router:

1. Enable the BGP routing process on the PE router in the specified local AS.

   The AS number identifies the PE router to other BGP routers.

   host1(config)#router bgp 738
2. Configure the PE-to-PE BGP session. Use neighbor commands to specify the PE router peers to which BGP advertises routes and to configure additional BGP attributes.
   host1(config-router)#neighbor 10.2.2.2 remote-as 738 host1(config-router)#neighbor 10.2.2.2 update-source loopback 0 host1(config-router)#neighbor 10.2.2.2 next-hop-self
3. Create the L2VPN address family to configure the router to use BGP signaling to exchange layer 2 NLRI to peer PE routers for all VPWS instances.

   Optionally, you can use the signaling

   keyword with the

   address-family command when you configure the L2VPN address family to specify BGP signaling of VPWS reachability information. Currently, you can omit the signaling

   keyword with no adverse effects.

   host1(config-router)#address-family l2vpn signaling
4. Activate the neighbors with which routes of the L2VPN address family are exchanged for this PE-to-PE BGP session. Use the bgp dampening command and BGP neighbor commands to configure additional address family parameters for the session. No other commands are supported in this address family.
   host1(config-router-af)#neighbor 10.2.2.2 activate host1(config-router-af)#neighbor 10.2.2.2 next-hop-self
5. Exit the address family.
   host1(config-router-af)#exit-address-family
6. Create the VPWS address family to configure the router to exchange layer 2 NLRI for each VPWS instance configured on the router.

   You must issue the address-family vpws command separately for each VPWS instance configured on the router.

   host1(config-router)#address-family vpws l2vpnA host1(config-router)#address-family vpws l2vpnB

#### Related Documentation

- Configuring BGP Routing
- Configuring BGP-MPLS Applications
- address-family l2vpn
- address-family vpws
- exit-address-family
- neighbor activate
- neighbor next-hop-self
- neighbor remote-as
- neighbor update-source
- router bgp