BGP Configuration Commands
6-108 Configuring the Border Gateway Protocol
Syntax of the “no” Form
Thenoformremovesthenetworkfromtheroutingtable:
no network network-number [mask network-mask]
Mode
Routerconfiguration:XSR(config-router)#
Example
Thefollowingexampleconfiguresanetworkwithandwithouttheoptionalmaskkeyword.Inthe
optionalmaskstatement,thenetworknumberrepresentsasubnetofclassBnetwork172.17.0.0.
AdefaultClass Cnetworkmaskisassumedforthenetwork192.168.1.0intheconfiguration
statementwithouttheoptionalparameters.
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

ThiscommandredistributesroutesfromaprotocolintotheBGP.Redistributedroutescanbe
learnedfromdynamicrouting(OSPF,RIP),staticroutes,andconnectedroutes.
RedistributedroutescanhavetheirpathattributessetinBGPbytheroute-mapcommand.By
default,redistributedstaticrouteshavetheirorigincodesettoincompleteunlessotherwise
configuredbyroute-map.
Syntax
redistribute {ospf | rip | static | connected} [metric metric-value | route-map
route-map-name]
Syntax of the “no” Form
Thenoformofthiscommandreturnstothecommanddefault:
no redistribute {ospf | rip | static | connected}
network-mask ThemaskassociatedwiththenetworknumberforwhichtheBGP
processroutes.Itisspecifiedwhenthenetworknumberrepresentsa
subnetasopposedtoaclassfulnetwork.
ospf OSFProutes.
rip RIProutes.
static Staticroutes.
connected Connectedroutes.
metric-value Metricforredistributedroutes.Range:04294967295.
route-map-name Routemapappliedtoredistributedroutes,rangingfrom1to199.