Table 115 on page 597 lists the commands discussed in this section to configure BGP
signaling for VPLS.
Table 115: Commands to Configure BGP Signaling for VPLS
neighbor next-hop-selfaddress-family l2vpn
neighbor remote-asaddress-family vpls
neighbor send-communityexit-address-family
neighbor update-sourceip router-id
router bgpneighbor activate
To configure BGP signaling for VPLS on the PE router:
1. Enable the BGP routing protocol on the PE router and specify the local AS; that is,
the AS to which this BGP speaker belongs.
host1(config)#router bgp 100
The AS number identifies the PE router to other BGP routers.
2. Configure the PE-to-PE BGP session by first adding an entry to the BGP neighbor
table.
host1(config-router)#neighbor 10.4.4.4 remote-as 100
3. 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 0
host1(config-router)#neighbor 10.4.4.4 next-hop-self
4. 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
5. Activate the PE-to-PE 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
6. 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-self
host1(config-router-af)#exit-address-family
597Copyright © 2010, Juniper Networks, Inc.
Chapter 12: Configuring VPLS