Configuring BGP4 neighbors

BGP4 neighbors can be configured using this procedure.
  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router bgp command to enable BGP routing.
    device(config)# router bgp
  3. Enter the local-as command to configure the autonomous system number (ASN) in which your device resides.
    device(config-bgp-router)# local-as 1000
  4. Enter the neighbor remote-as command, and specify an IP address, to specify the ASN in which the remote neighbor resides.
    device(config-bgp-router)# neighbor 10.1.1.1 remote-as 1001

The following example configures a BGP4 neighbor.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# local-as 1000
device(config-bgp-router)# neighbor 10.1.1.1 remote-as 1001