Configuring BGP Signaling for L2VPNs
This section describes one way to configure BGP signaling for L2VPNs, but does not provide complete details about configuring BGP and BGP/MPLS VPNs.
Table 72 lists the commands used in this section to configure BGP signaling for L2VPNs.
To configure BGP signaling for an L2VPN on the PE router:
The AS number identifies the PE router to other BGP routers.
host1(config)#router bgp 738
- 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 738host1(config-router)#neighbor 10.2.2.2 update-source loopback 0host1(config-router)#neighbor 10.2.2.2 next-hop-self- Create the L2VPN address family to configure the router to use BGP signaling to exchange layer 2 NLRI to peer PE routers for all L2VPN (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 L2VPN reachability information. Currently, you can omit the signaling keyword with no adverse effects.
host1(config-router)#address-family l2vpn signaling
- 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 activatehost1(config-router-af)#neighbor 10.2.2.2 next-hop-self- Exit the address family.
host1(config-router-af)#exit-address-family- Create the VPWS address family to configure the router to exchange layer 2 NLRI for each L2VPN instance configured on the router.
You must issue the address-family vpws command separately for each L2VPN instance configured on the router.
host1(config-router)#address-family vpws l2vpnAhost1(config-router)#address-family vpws l2vpnB
- Chapter 1, Configuring BGP Routing
- Chapter 3, Configuring BGP-MPLS Applications
- address-family l2vpn command
- address-family vpws command
- exit-address-family command
- neighbor activate command
- neighbor next-hop-self command
- neighbor remote-as command
- neighbor update-source command
- router bgp command