The following task shows the steps required for enabling BGP on a CE device and assigning a PE device as a BGP neighbor. For an example of a full configuration required to exchange routes in an external BGP (EBGP) network, see the EBGP for route exchange task.
-
On a CE device, enter the
configure terminal command.
device# configure terminal
-
Enter the
router bgp command to enable BGP routing.
device(config)# router bgp
-
Enter the
local-as command to configure the AS number.
device(config-bgp)# local-as 2
-
Configure a PE BGP neighbor using the
neighbor remote-as command.
device(config-bgp)# neighbor 10.33.33.3 remote-as 1
Example
The following example enables BGP on a CE and assigns a PE as a BGP neighbor.
device# configure terminal
device(config)# router bgp
device(config-bgp)# local-as 2
device(config-bgp)# neighbor 10.33.33.3 remote-as 1