CHANGE
RouterBco
figi
terfaceloopback0RouterBco
figifAug22030336RouterB7LINEPROTOCOLI
terfaceLoopback0cha
gedstatetoUPRouterBco
figifipaddress101112552552550RouterBco
figifexitRouterBco
figRouterBco
figi
terfaceloopback1RouterBco
figifAug22030403RouterB7LINEPROTOCOLI
terfaceLoopback1cha
gedstatetoUPRouterBco
figifipaddress102212552552550RouterBco
figifexit第二步:配置静态路由
RouterAco
figiproute10110255255255019216812!设置到子网10110的静态路由,采用下一跳的方式
RouterAco
figiproute102202552552550s40!设置到子网10220的静态路由,采用出站端口的方式
RouterBco
figiproute1721610255255255019216811RouterBco
figiproute17216202552552550s40第三步:查看路由表和接口配置
CHANGECHANGE
fRouterAshowiprouteCodesCco
ectedSstaticRRIPBBGPOOSPFIAOSPFi
terareaN1OSPFNSSAexter
altype1N2OSPFNSSAexter
altype2E1OSPFexter
altype1E2OSPFexter
altype2iISISL1ISISlevel1L2ISISlevel2iaISISi
terareaca
didatedefaultGatewayoflastresortis
osetS101102410via19216812S1022024isdirectlyco
ectedserial40C172161024isdirectlyco
ectedLoopback0C172161132islocalhostC172162024isdirectlyco
ectedLoopback1C172162132islocalhostC1921681024isdirectlyco
ectedserial40C1921681132islocalhost
!可以看到以下一跳方式配置的静态路由和以出站端口方式配置的静态路由,在路由表中的显示方式是不一样的
RouterAshowi
terfacesserial40I
dexdec1hex1
serial40isUPli
eprotocolisUPHardwareisI
fi
eo
DSCC4PEB20534H10serialI
terfaceaddressis1921681124MTU1500bytesBW2000KbitE
capsulatio
protocolisHDLCloopback
otsetKeepalivei
tervalis10secsetCarrierdelayis2secRXloadis1Txloadis1Queuei
gstrategyWFQ11421118carriertra
sitio
sV35DCEcableDCDupDSRupDTRupRTSupCTSup5mi
utesi
putrate19bitssec0packetssec5mi
utesoutputrate19bitssec0packetssec95packetsi
put4134bytes0
obuffer1droppedReceived69broadcasts0ru
ts0gia
ts0i
puterrors0CRC0frame0overru
0abort94packetsoutput4118bytes0u
derru
s0dropped0outputerrors0collisio
s0i
terfaceresetsRouterBshowiprouteCodesCco
ectedSstaticRRIPBBGPOOSPFIAOSPFi
terareaN1OSPFNSSAexter
altype1N2OSPFNSSAexter
altype2E1OSPFexter
altype1E2OSPFexter
altype2iISISL1ISISlevel1L2ISISlevel2iaISISi
terareaca
didatedefaultGatewayoflastresortis
osetC1011024isdirectlyco
ectedLoopback0C1011132islocalhostC1022024isdirectlyco
ectedr