network

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 ]

Syntax Description

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.

Command Default

None

Command Modes

Neighbor address-family configuration mode
Router bgp configuration mode

Command History

Release
Modification
5.0(3)N1(1)
This command was introduced.

Usage Guidelines

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.

Examples

This example shows how to configure an IP prefix to advertise:

switch(config-router-af)# network 2.2.2.2 mask 3.3.3.3 route-map test
switch(config-router-af)#
 

Related Commands

Command
Description
show ip prefix-list
Displays information about IP prefix lists.