network

Configures the device to advertise a network.

network network/mask [ backdoor | route-map map-name | weight num ]
no network network/mask [ backdoor | route-map map-name | weight num ]

No network is advertised.

network/mask
Network and mask in CIDR notation.
backdoor
Changes administrative distance of the route to this network from the EBGP administrative distance (the default is 20) to the local BGP4 weight (the default is 200), tagging the route as a backdoor route.
route-map map-name
Specifies a route map with which to set or change BGP4 attributes for the network to be advertised.
weightnum
Specifies a weight to be added to routes to this network. Range is 0 through 65535. The default is 0.

BGP configuration mode

BGP address-family IPv6 unicast configuration mode

BGP address-family IPv4 unicast VRF configuration mode

BGP address-family IPv6 unicast VRF configuration mode

When this command is entered in BGP global configuration mode, it applies only to the IPv4 address family. Use this command in BGP address-family IPv6 unicast configuration mode for BGP4+ configurations.

The following example imports the IPv4 network 10.11.12.12/30 into the route map "myroutemap".


device# configure terminal
device(config)# router bgp
device(config-bgp-router)# network 10.11.12.13/30 route-map myroutemap 

The following example imports the IPv6 prefix 2001:db8::/32 into the BGP4+ database and sets a weight of 300.


device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# network 2001:db8::/32 weight 300 
Release version Command history
8.0.30 Support was added for the BGP address-family IPv6 unicast VRF configuration mode.