Configuring BGP Signaling for VPLS
This section describes one way to configure BGP signaling for VPLS, but does not provide complete details about configuring BGP and BGP/MPLS VPNs.
Table 51 lists the commands discussed in this section to configure BGP signaling for VPLS.
To configure BGP signaling for VPLS on the VE router:
- Enable the BGP routing protocol on the VE router and specify the local AS; that is, the AS to which this BGP speaker belongs.
host1(config)#router bgp 100The AS number identifies the VE router to other BGP routers.
- Configure the VE-to-VE BGP session by first adding an entry to the BGP neighbor table.
host1(config-router)#neighbor 10.4.4.4 remote-as 100- Use neighbor commands to specify the peers to which BGP advertises routes.
This example configures only the update-source and next-hop-self attributes. The update-source attribute allows the BGP session to use the IP address of a specific operational interface as the update source address for TCP connections. the next-hop-self attribute forces the BGP speaker to report itself as the next hop for an advertised route that it learned from a neighbor.
host1(config-router)#neighbor 10.4.4.4 update-source loopback 0host1(config-router)#neighbor 10.4.4.4 next-hop-self
- Create the L2VPN address family to configure the router to exchange layer 2 NLRI for all VPLS instances.
host1(config-router)#address-family l2vpn signaling- Activate the VE-to-VE session in the L2VPN address family by specifying neighbors that exchange routes from within the current address family.
host1(config-router-af)#neighbor 10.4.4.4 activate- Use neighbor commands to configure additional address family parameters for the session, then exit the address family.
This example configures only the next-hop-self attribute, forcing the BGP speaker to report itself as the next hop for an advertised route that it learned from a neighbor.
host1(config-router-af)#neighbor 10.4.4.4 next-hop-selfhost1(config-router-af)#exit-address-family
- Create the VPLS address family to configure the router to exchange layer 2 NLRI for each VPLS instance configured on the router.
You must issue the address-family vpls command separately for each VPLS instance configured on the router.
host1(config-router)#address-family vpls customer1host1(config-router-af)#exit-address-familyhost1(config-router)#address-family vpls customer2After you configure MPLS LSPs and BGP signaling, the router automatically generates a VPLS virtual core interface for each VPLS instance. The VPLS virtual core interface represents all of the MPLS tunnels from the router to the remote VE device.
- Configuration Tasks for VPLS with BGP Signaling
- address-family l2vpn command
- address-family vpls command
- exit-address-family command
- neighbor activate command
- neighbor next-hop-self command
- neighbor remote-as command
- router bgp command
- See Chapter 1, Configuring BGP Routing for information about configuring BGP.
- See Chapter 3, Configuring BGP-MPLS Applications for information about configuring BGP/MPLS VPNs.