Configuring EBGP on a PE router

In this task, a CE is assigned as a BGP neighbor to the VRF VPN1 on a PE device. For an example of a full configuration required to exchange routes in an external BGP (EBGP) network, see the EBGP for route exchange task.
  1. On a PE device, enter the configure terminal command.
    device# configure terminal
  2. Enter the router bgp command to enable BGP routing.
    device(config)# router bgp
  3. Enter the address-family ipv4 unicast command to assign a VRF.
    device(config-bgp)# address-family ipv4 unicast vrf VPN1
  4. Enter the neighbor remote-as command to configure a BGP neighbor (a CE device) to the VRF.
    device(config-bgp-ipv4u-vrf)# neighbor 10.33.33.2 remote-as 2

The following example assigns a CE device as a BGP neighbor to the VRF VPN1 on a PE device.

device# configure terminal
device(config)# router bgp
device(config-bgp)# address-family ipv4 unicast vrf VPN1
device(config-bgp-ipv4u-vrf)# neighbor 10.33.33.2 remote-as 2