5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
1088
11-94 network (BGP Router Config)
This command configures BGP to advertise an address prefix.The prefix is only advertised if the common
routing table includes a non-BGP route with the same prefix. The route may be a connected route, a
static route, or a dynamic route from another routing protocol.
BGP accepts up to 64 networks per address family. The network command may specify a default route
(network 0.0.0.0 mask 0.0.0.0).
If a route map is configured to set attributes on the advertised routes,
match as-path
and
match
community
terms in the route map are ignored. A
match ip-address prefix-list
term is honored in this
context. If your route map includes such a match term, the network is only advertised if the prefix list
permits the network prefix. If there is no route map with the name given, the network is not advertised.
Use the
no
command to disable BGP from advertising an address prefix.
network prefix mask network-mask [route-map rm-name]
no network prefix mask network-mask [route-map rm-name]
Parameters
prefix
An IPv4 address Prefix in dotted notation.
mask network-mask
The network mask for the prefix in dotted quad notation (e.g.,
255.255.0.0).
route-map rm-name
(Optional) A route map can be used to set path attributes on the route.
Default
The default is Networks are not advertised.
Command Mode
•
BGP Router Config
•
IPv4 VRF Address Family Config
11-95 network (IPv6 Address Family Config)
This command identifies network IPv6 prefixes that BGP originates in route advertisements to its
neighbors. The prefix is only advertised if the common routing table includes a non-BGP route with the
same prefix. The route may be a connected route, a static route, or a dynamic route from another routing
protocol.
BGP accepts up to 64 networks per address family. The network command may specify a default route
(network 0.0.0.0 mask 0.0.0.0).
If a route map is configured to set attributes on the advertised routes, match as-path and match
community terms in the route map are ignored. A match ip-address prefix-list term is honored in this
context. If your route map includes such a match term, the network is only advertised if the prefix list
permits the network prefix. If there is no route map with the name given, the network is not advertised.
Use the
no
command to disable BGP from advertising an address prefix.