Chapter1StaticRouteConguration
CongurationCheck
Useshowcommandtovalidateconguration.
ValidatecongurationonS1:
S1(config)#showipprotocolroutingnetwork140.1.1.0
Protocolroutes:
statuscodes:*valid,>best,i-internal,s-stale
DestNextHopRoutePrfRouteMetricProtocol
*>140.1.1.0/2410.6.1.1810static
ValidatecongurationonS2:
S2(config)#showipprotocolroutingnetwork140.1.1.0
Protocolroutes:
statuscodes:*valid,>best,i-internal,s-stale
DestNextHopRoutePrfRouteMetricProtocol
*>140.1.1.0/2410.9.1.3910static
Iftherearemultiplepathstothesamedestination,aroutercanbeconguredwithmultiple
staticrouteswithdifferentadministrativedistances.However,routingtableonlydisplays
informationaboutroutewithminimumdistancebecausewhenrouterisinformedofmultiple
competitionsourcestoanetwork,routewithminimumadministrativedistancetakesthe
precedence.
Parameter<distance-metric>instaticroutecongurationcommandaboutIProutecanbe
usedtochangeadministrativedistancevalueofastaticroute.Supposingtherearetwo
differentroutesfromS1tonetworksection140.1.1.0/24,thecongurationisasfollows:
S1(config)#iproute140.1.1.0255.255.255.010.6.1.18
S1(config)#iproute140.1.1.0255.255.255.010.6.1.120
Abovecommandsareusedtoconguretwodifferentstaticroutesarrivingtothesame
networksegment.Therstcommanddoesnotcongureadministrativedistance,so
defaultvalue“1”isused.Thesecondcommandconguresadministrativedistanceof20.
Sinceadministrativedistanceoftherstrouteislessthanthatofthesecondroute,only
informationaboutrstrouteappearsinroutingtable.Thatis,theswitchsendspacketsto
destinationnetworksegment140.1.1.0/24throughnext-hopaddress10.6.1.18only.The
secondrouteappearsinroutingtableonlywhentherstroutefailsanddisappearsfrom
theroutingtable.Thetwostaticroutescannothavethesametagvalue,whichgotothe
samedestinationnetworkbuttheirnext-hopisdifferent.
UseshowcommandtoviewonS1:
S1(config)#showipprotocolroutingnetwork140.1.1.0
Protocolroutes:
statuscodes:*valid,>best,i-internal,s-stale
DestNextHopRoutePrfRouteMetricProtocol
1-7
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential