268
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
network
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-addr | ip-prefix/length mask mask-num [route-map name]
Syntax Description
Command Default None
Command Modes Neighbor address-family configuration mode
Router bgp configuration mode
Command History
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.
This command requires the LAN Enterprise Services license.
Examples This example shows how to configure an IP prefix to advertise:
switch# configure terminal
switch(config)# router bgp 64496
switch(config-router)# address-family ipv4 unicast
switch(config-router-af)# network 2.2.2.2 mask 3.3.3.3 route-map test
switch(config-router-af)#
Related Commands
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.
Release Modification
5.0(3)A1(1) This command was introduced.
Command Description
address-family (BGP
router)
Enters the address family mode and configures submode commands for the
Border Gateway Protocol (BGP).