To configure a PE router to provide BGP VPN services:
See Configuring MPLS, for information about configuring LSPs.
- host1:vr1(config)#router bgp 100
- host1:vr1(config-router)#no bgp default route-target
filter
- host1:vr1(config)#router bgp 100
- host1:vr1(config-router)#neighbor 192.168.1.158
remote-as 100
- host1:vr1(config-router)#address-family vpnv4
- host1:vr1(config-router-af)#neighbor 192.168.1.158
activate
- host1:vr1(config-router-af)#exit-address-family
- host1:pe1(config-router-af)#check-vpn-next-hops
- host1:vr1(config)#router bgp 100
See Configuring BGP Routing , for more information about configuring BGP.
- host1:vr1(config-router)#address-family ipv4
unicast vrf vrfA
- host1:vr1(config-router)#neighbor 10.12.13.0
remote-as 200
- host1:vr1(config-router)#network 10.3.0.0
mask 255.255.0.0
- host1:vr1(config-router)#redistribute static
- host1:vr1(config-router)#redistribute ospf
See Using a Single AS Number for All CE Sites for examples.
- host1:vr1(config-router)#bgp enforce-first-as