To configure an IP prefix to advertise, use the network command. To remove the IP prefix to advertise, use the no form of this command.
network ip-addr | ip-prefix / length mask mask-num [ route-map name ]
no network ip-network | ip-prefix / length mask mask-num [ route-map name ]
ip-addr
|
IP network address to advertise; use the following format: A.B.C.D.
|
ip-prefix
/
length
|
IP prefix and the length of the IP prefix. Use the following format: A.B.C.D/length.
|
mask
mask-num
|
Configures the mask of the IP prefix to advertise in dotted 4-octet format.
|
route-map
name
|
(Optional) Specifies the name of the route map to modify attributes.
|
None
Neighbor address-family configuration mode
Router bgp configuration mode
Release
|
Modification
|
---|---|
5.0(3)N1(1)
|
This command was introduced.
|
The IP prefix to advertise is considered as a best path and advertisement to peers only if a route of equal or more specificity is present in the routing table.
This example shows how to configure an IP prefix to advertise:
Command
|
Description
|
---|---|
show ip prefix-list
|
Displays information about IP prefix lists.
|