BGP Configuration Commands
network-mask
Syntax of the "no" Form
The no form removes the network from the routing table:
no network network-number [mask network-mask]
Mode
Router configuration:
Example
The following example configures a network with and without the optional mask keyword. In the
optional mask statement, the network‐number represents a subnet of class B network 172.17.0.0.
A default Class C network mask is assumed for the network 192.168.1.0 in the configuration
statement without the optional parameters.
XSR(config)#router bgp 100
XSR(config-router)#network 172.17.151.0 mask 255.255.255.0
XSR(config-router)#network 192.168.1.0
redistribute
This command redistributes routes from a protocol into the BGP. Redistributed routes can be
learned from dynamic routing (OSPF, RIP), static routes, and connected routes.
Redistributed routes can have their path attributes set in BGP by the
default, redistributed static routes have their origin code set to incomplete unless otherwise
configured by
Syntax
redistribute {ospf | rip | static | connected} [metric metric-value | route-map
route-map-name]
ospf
rip
static
connected
metric-value
route-map-name
Syntax of the "no" Form
The no form of this command returns to the command default:
no redistribute {ospf | rip | static | connected}
6-108 Configuring the Border Gateway Protocol
The mask associated with the network‐number for which the BGP
process routes. It is specified when the network‐number represents a
subnet as opposed to a classful network.
XSR(config-router)#
route-map
.
OSFP routes.
RIP routes.
Static routes.
Connected routes.
Metric for redistributed routes. Range: 0‐4294967295.
Route map applied to redistributed routes, ranging from 1 to 199.
route-map
command. By