This task configures a static network and sets the administrative distance.
-
Access global configuration
mode.
device# configure terminal
-
Access BGP configuration mode.
device(config)# router bgp
-
Specify the autonomous system in which your device resides.
device(config-bgp-router)# local-as 1000
-
Access IPv4 address family
configuration mode.
device(config-bgp-router)# address-family ipv4 unicast
-
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.
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