Chapter1
StaticRouteConguration
TableofContents
StaticRouteOverview................................................................................................1-1
ConguringaStaticRoute..........................................................................................1-2
MaintainingStaticRoute.............................................................................................1-4
StaticRouteCongurationExamples.........................................................................
1-6
1.1StaticRouteOverview
Staticrouteistheroutinginformationthatisdesignatedbynetworkadministratortothe
routingtablebymeansofcommands.Unlikeadynamicroute,itdoesnotsetuprouting
tableaccordingtoroutingalgorithm.Indynamicrouteconguration,routinginformation
oftheentireInternetmustbesenttoarouter.Therouterishardtoholdtheload.Inthis
time,staticroutescanbeusedtosolvetheproblem.Sometimes,usestaticroutewith
lesscongurationtoavoidusingdynamicroute.However,inaroutingenvironmentwhere
therearemultipleroutersandpaths,itisverycomplicatedtocongurestaticroutes.
Togenerateastaticunicastroutingtable,networkadministratorhastobefamiliarwiththe
networktopologyandcongureitaccordingtotheactualroutingrequirements.Inthisway,
theroutingactioncanbecontrolledaccuratelyinnetwork.Thestaticroutingtableneeds
tobereconguredintimeifthenetworktopologyischanged.
Staticrouteisdifferentfromotherdynamicroutingprotocol.Staticrouteconguration
doesnotrequirethatconguretherelatedprotocoldataoninterfaces.Itonlyneedsto
checkthevalidityofstaticrouteparametersconguredbyusers,butwhetherstaticroute
congurationtakeseffectisstilldecidedbythestatechangingofthecorrespondingegress
interface.
ThefollowingcontentisaroutingtableofZXR105900E.Here,theadministratordistance
ofstaticrouteis1.
ZXR10#showipprotocolrouting
Protocolroutes:
statuscodes:*valid,>best,i-internal,s-stale
DestNextHopRoutePrfRouteMetricProtocol
*>0.0.0.0/00.0.0.02548special
*>2.2.2.2/322.2.2.200connected
*>120.2.2.0/24120.2.2.210static
*>120.2.2.2/32120.2.2.200connected
*>255.255.255.255/320.0.0.02540special
1-1
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential