Chapter1StaticRouteConguration
ParameterDescription
<vrf-name>ItisusedtocongurestaticrouteofthedesignatedVRF.
ThelengthofVRFnamerangesfrom1to32characters.
<prefix>NetworkIPPrexofdestinationaddress,indotteddecimal
notation
<net-mask>Networkmaskofdestinationaddress,indotteddecimal
notation
<nexthopaddress>IPaddressofthenexthop,indotteddecimalnotation
[global]Privatenetworkroutecancongurethenexthopofpublic
network,onlywhenthenexthopofprivatenetworkis
congured,itcanbecongured.
<interface-name>Nameoftheusedinterface
[metric<metric>]Metricvalueofroute,range:0-255,thedefaultvalueis0
<distance-metric>Managementdistance,rangingfrom1to255
CongurationExample
Figure1-1IndirectStaticRouteNextHopCongurationExample
AsshowinFigure1-1,S2advertises20.20.20.0/24toS1.Thestaticrouteto30.2.0.0/16
canbeconguredonS1,thenexthopis20.20.20.2.
ThecongurationofstaticrouteonS1:
S1(config)#iproute30.2.0.0255.255.0.020.20.20.2
ViewroutetableonS1:
ZXR10(config)#showipprotocolrouting
Protocolroutes:
statuscodes:*valid,>best,i-internal,s-stale
DestNextHopRoutePrfRouteMetricProtocol
*>10.10.10.0/2410.10.10.100connected
*10.10.10.0/2410.10.10.01101ospf
*>10.10.10.1/3210.10.10.100connected
*>20.20.20.0/2410.10.10.21102ospf
*>30.2.0.0/1610.10.10.210static
1-3
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential