ZXR105900ESeriesCongurationGuide(IPv4Routing)
DestNextHopRoutePrfRouteMetricProtocol
*>0.0.0.0/010.6.1.1810static
Here,ifthenexthopisconguredasnullinterface,therouteisblackholeroute.
CongurationonS1:
S1(config)#iproute0.0.0.00.0.0.0null1
ViewS1routingtablebyshowcommand:
S1#showipprotocolrouting
Protocolroutes:
statuscodes:*valid,>best,i-internal,s-stale
DestNextHopRoutePrfRouteMetricProtocol
*>0.0.0.0/00.0.0.010static
Defaultrouteisnotalwaysastaticroute.Italsocanberoutesofotherprotocols,such
asBorderGatewayProtocol(BGP),RoutingInformationProtocol(RIP)andsoon.When
defaultrouteisusedinroutingprotocolconguration,defaultroutevarieswithrouting
protocols.
IfdefaultrouteisconguredonarouterwhereRIPruns,theRIPwilladvertisethedefault
routetoitsneighbor,andevenrouteredistributionisnotneededinRIPdomain.
ForBGPprotocol,arouterwheretheBGPrunswillnotinjectthedefaultrouteintoits
neighborautomatically.ForBGPtosendthedefaultroutetoBGPdomain,thecommand
default-information-originatehastobeusedrst,andthenredistributedefaultroute.
1-10
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential