Configuring a PE Router to Provide BGP VPN Services
To configure a PE router to provide BGP VPN services:
- Configure PE-to-PE LSPs.
See Configuring MPLS, for information about configuring LSPs.
- Enable BGP routing.host1:vr1(config)#router bgp 100
- (Optional) Disable automatic route-target filtering.host1:vr1(config-router)#no bgp default route-target filter
- Configure PE-to-PE BGP sessions.
- Create the PE-to-PE session.host1:vr1(config)#router bgp 100 host1:vr1(config-router)#neighbor 192.168.1.158 remote-as 100
- Create the VPN-IPv4 address family.host1:vr1(config-router)#address-family vpnv4
- Activate the PE-to-PE session in the VPN-IPv4 address
family.host1:vr1(config-router-af)#neighbor 192.168.1.158 activate host1:vr1(config-router-af)#exit-address-family
- (Optional) Enable the BGP speaker to check the reachability
of indirect next hops when selecting the best VPN-IPv4 route to a
prefix. host1:pe1(config-router-af)#check-vpn-next-hops
- Create the PE-to-PE session.
- Configure PE-to-CE BGP sessions.
- Enable and configure BGP:host1:vr1(config)#router bgp 100
See Configuring BGP Routing , for more information about configuring BGP.
- Specify the IPv4 unicast address family for each VRF:host1:vr1(config-router)#address-family ipv4 unicast vrf vrfA
- Configure the method of route advertisement by doing one
of the following:
- Use neighbor commands to specify
peers to which BGP advertises the routes:host1:vr1(config-router)#neighbor 10.12.13.0 remote-as 200
- Use network commands or the redistribute static command to make BGP advertise static
routes to customers.host1:vr1(config-router)#network 10.3.0.0 mask 255.255.0.0 host1:vr1(config-router)#redistribute static
- Use redistribute commands to
make BGP advertise IGP routes to customers.host1:vr1(config-router)#redistribute ospf
- Use neighbor commands to specify
peers to which BGP advertises the routes:
- Enable and configure BGP:
- (Optional) Configure an AS override.
See Example: Using a Single AS Number for All CE Sites for examples.
- (Optional) Force the BGP speaker to accept routes that
have the speaker’s AS number in its AS path. host1:vr1(config-router)#bgp enforce-first-as
Related Documentation
- Creating Multicast VPNs in JunosE Multicast Routing Configuration Guide
- router bgp
- neighbor
- redistribute
Hide Navigation Pane
Show Navigation Pane
SHA1