Cisco Cisco ASR 5700

Page of 8994
  BGP Configuration Mode Commands 
network  ▀   
 
Command Line Interface Reference, StarOS Release 17  ▄  
 
   
1659 
network 
Specifies a network to announce via BGP. 
Product
 
All 
Privilege
 
Security Administrator, Administrator 
Mode
 
Exec > Global Configuration > Context Configuration > BGP Configuration 
configure > context context_name > router bgp as_number
 
Entering the above command sequence results in the following prompt: 
[context_name]host_name(config-bgp)# 
Syntax
 
[ no ] network ip_address/mask [ route-map map_name ] 
no
 
Delete the specified network from the configuration for the BGP router. 
ip_address/mask
 
Specifies the IP address and netmask bits for the network to announce via BGP. 
ip_address
 is a network 
IPv4 address in dotted-decimal notation and 
mask
 is the number of subnet bits, representing a subnet mask in 
CIDR shorthand. These must be entered in the dotted-decimal notation/subnet bits format (for example, 
10.1.1.1/24). 
[ route-map
 
map_name ]
 
Filter routes through the specified route map before announcing the network. 
map_name
 is the name of the 
route-map to use specified as an alphanumeric string of 1 through 79 characters. 
Usage 
Use this command to specify a network to announce via BGP. 
Example
 
The following command announces the network 
192.168.0.0
 with a netmask of 
16
 via BGP: 
network 192.168.0.0/16 
The following command removes the network from the BGP router configuration: 
no network 192.168.0.0/16