Enterasys Networks XSR CLI Router User Manual


 
BGP Configuration Commands
6-108 Configuring the Border Gateway Protocol
Syntax of the “no” Form
Thenoformremovesthe networkfromtheroutingtable:
no network network-number [mask network-mask]
Mode
Routerconfiguration:XSR(config-router)#
Example
Thefollowingexampleconfiguresanetworkwithandwithouttheoptionalmaskkeyword.Inthe
optionalmaskstatement,thenetworknumberrepresentsasubnetofclassBnetwork172.17.0.0.
AdefaultClass Cnetworkmaskisassumedforthe network192 .168.1.0intheconfigurat ion
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.
RedistributedroutescanhavetheirpathattributessetinBGPbythe
route-mapcommand.By
default,redistributedstaticrouteshavetheirorigincodesettoincompleteunlessotherwise
configuredby
route-map.
Syntax
redistribute {ospf | rip | static | connected} [metric metric-value | route-map
route-map-name]
Syntax of the “no” Form
Thenoformofthiscommandreturnstothe commanddefault:
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.