Importing routes into BGP4

Routes can be explicitly specified for advertisement by BGP.
With the exception of static network routes, the routes imported into BGP4 must first exist in the IPv4 unicast route table.
  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 neighbor remote-as command to specify the ASN in which the remote neighbor resides.
    device(config-bgp-router)# neighbor 10.2.2.2 remote-as 1001
  4. Enter the network command and specify a network/mask to import the specified prefix into the BGP4 database.
    device(config-bgp-router)# network 10.1.1.1/32

The following example imports the 10.1.1.1/32 prefix in to the BGP4 database for advertising.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# neighbor 10.2.2.2 remote-as 1001
device(config-bgp-router)# network 10.1.1.1/32