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 81 lists the commands discussed in this section to configure BGP signaling for VPLS.
Table 81: Commands to Configure BGP Signaling for VPLS
|
address-family l2vpn |
neighbor next-hop-self |
|
address-family vpls |
neighbor remote-as |
|
exit-address-family |
neighbor send-community |
|
ip router-id |
neighbor update-source |
|
neighbor activate |
router bgp |
To configure BGP signaling for VPLS on the PE router:
- host1(config)#router bgp 100
The AS number identifies the PE router to other BGP routers.
- host1(config-router)#neighbor 10.4.4.4 remote-as
100
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 0
- host1(config-router)#neighbor 10.4.4.4 next-hop-self
- host1(config-router)#address-family l2vpn
signaling
- host1(config-router-af)#neighbor 10.4.4.4
activate
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-self
- host1(config-router-af)#exit-address-family
You must issue the address-family vpls command separately for each VPLS instance configured on the router.
- host1(config-router)#address-family vpls customer1
- host1(config-router-af)#exit-address-family
- host1(config-router)#address-family vpls customer2
After 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.