protocols bgp <asn> address-family ipv4-unicast network <ipv4net> <action>
Specifies a network to be advertised by the BGP routing process.
- asn
- The number for the AS in which this router resides. The numbers range from 1 through 4294967294. The subrange, 64512 through 65534, is reserved for private AS.
- ipv4net
- Multi-node. An IPv4 network in the format ip-address/prefix.
You can advertise to multiple networks by creating multiple network configuration nodes.
- backdoor
- Indicates that this network is reachable by a backdoor route. A backdoor network is considered to be like a local network, but is not advertised.
- map-name
- Specifies a configured route map to be used when advertising the network.
Configuration mode
protocols {
bgp asn {
address-family {
ipv4-unicast {
network ipv4net {
backdoor
route-map map-name
}
}
}
}
}
Use the set form of this command to advertise networks to BGP neighbors.
Use the delete form of this command to remove a network from the list of networks to be announced by BGP.
Use the show form of this command to view BGP network advertising configuration settings.
The inverse mask for the source field is applied to the prefix before the comparison with the source. The inverse mask for the destination field is applied to the net mask of the prefix before the comparison with the net mask as specified in the destination field.
Effectively, the prefix must match the source with application of inverse mask of the source field. And the net mask for the prefix must match the destination with application of inverse mask of the destination field.