Configure a Static BGP4 Network

BGP can advertise a stable route that does not need to exist in routing table.

About this task

This task configures a static network and sets the administrative distance.

Procedure

  1. Access global configuration mode.
    device# configure terminal
  2. Access BGP configuration mode.
    device(config)# router bgp
  3. Specify the autonomous system in which your device resides.
    device(config-bgp-router)# local-as 1000
  4. Access IPv4 address family configuration mode.
    device(config-bgp-router)# address-family ipv4 unicast
  5. Configure a static network and set an administrative distance.
    device(config-bgp-ipv4u)# static-network 10.11.12.0/32 distance 300
    This example configures 10.11.12.0/32 as a static network and sets an administrative distance of 300.

Example

The following example summarizes the commands in this procedure.
device# configure terminal
device(config)# router bgp
device(config-bgp-router)# local-as 1000
device(config-bgp-router)# address-family ipv4 unicast
device(config-bgp-ipv4u)# static-network 10.11.12.0/32 distance 300