2025年路由器高級設(shè)置與配置實戰(zhàn)指南_第1頁
2025年路由器高級設(shè)置與配置實戰(zhàn)指南_第2頁
2025年路由器高級設(shè)置與配置實戰(zhàn)指南_第3頁
2025年路由器高級設(shè)置與配置實戰(zhàn)指南_第4頁
2025年路由器高級設(shè)置與配置實戰(zhàn)指南_第5頁
已閱讀5頁,還剩10頁未讀 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

沏尹士,皆

本科試驗匯報

計算機網(wǎng)絡(luò)基礎(chǔ)

課程名稱:

姓名:

計算機學院

學院:

軟件工程

系:

軟件工程

專業(yè):

學號:

陸魁軍

指導教師:

12月23日

浙江大學試驗匯報

課程名稱:計算機網(wǎng)絡(luò)基礎(chǔ)試驗類型:設(shè)計性試驗

試驗項目名稱:路由器接口及路由協(xié)議配置__________________________________________

學生姓名:專業(yè):軟件工程學號:

同組學生姓名:無指導老師:陸魁軍

試驗地點:曹西軟件學院機房試驗日期:―年11月23日開始

一、試驗?zāi)康暮鸵?guī)定:

熟悉掌握BOSON路由器仿真軟件的使用,并應(yīng)用該軟件進行路由器接口,靜態(tài)路由,動態(tài)路由協(xié)議

RIP配置,從而加深對路由器的多種接口類型以及路由行為的理解。

規(guī)定自行設(shè)計網(wǎng)絡(luò)拓撲構(gòu)造,并綜合運用靜態(tài)路由和動態(tài)踣由協(xié)議RIP、OSPF,實現(xiàn)網(wǎng)絡(luò)各部分的互

連,并能互相ping通。

二、試驗內(nèi)容和原理

1.配置ETHERNET接口

2.配置點到點接口(通過DCE電纜連接兩個路由器的WANII,模擬DDN線路):用HDLC3.幀格式。

3.配置點到點接口:用PPP幀格式。

4.嘗試配置命令I(lǐng)PSUBNET-ZERO(在講了第五章TheNETWORKLAYER的IPADDRESS及

SUBNET后再做)(模擬軟件ROUTERSIM不支持本命令.只有真實路由器才支持)

5.配置LOOPBACK接口(虛擬接口)

6.嘗試命令并觀當作果:SHOWINTERFACESERIAL0

7.嘗試命令并觀當作果:SHOWINTERFACEETHERNET0

8.用PING測試兩臺路由器連通性。

9.配置兩臺路由器的靜態(tài)路由:iproute命令。

iproute命令格式:iproutex.x.x.xy.y.y.yz.z.z.z

x.x.x.x--目的網(wǎng)絡(luò)的網(wǎng)絡(luò)地址y.y.y.y-一目的網(wǎng)絡(luò)的SUBNETMASKz.z.z.z-一去目的網(wǎng)絡(luò)的下一

種鄰居路由器IP地址(與本路由器宜.接鄰接的接口IP地址)

例如:iproute20.20.20.0255.255.255.040.40.40.1

通過鄰居路由器40.40.40.1可抵達目的網(wǎng)絡(luò)20.20.20.0

10.嘗試命令并觀當作果:showiproute

ll.fflPING測試連通性。

12.配置兩臺路由器的RIP協(xié)議。

13.用PING測試連通性。

14.嘗試命令并觀當作果:showiproute

15.嘗試命令并觀當作果:showipprotocols

以嘗試命令并觀當作果:debugiprip(軟件模擬器不支持,只有真實路由器才支持)

?日嘗試命令并現(xiàn)當作果:■油轉(zhuǎn)院-(軟件模擬器不支持,只有真實路由器才支持)

三、重要儀器設(shè)備

PC機,BosonRouterSimulator4.03軟件

四、操作措施與試驗環(huán)節(jié)

我使用老師FTP上下載的BosonRouterSimulator4.03軟件并且進行注冊。并且設(shè)置了如下的網(wǎng)絡(luò)拓

撲國。路由器使用的是2514-2E2S。一共有四臺路由器,三臺PC機。其中Route"與Routed以PPP幀格

式相連,其他都為HDLC。

1.配置ETHERNET接口

配置Routeri的ETHERNET接口(eO),配置的IP地址為11.11.11.1,子網(wǎng)掩碼為255.255.255.0

Router#configt

Router(config)^interfaceeO

Router(config-if)#ipaddress11.11.11.1255.255.255.0

Router(config-if)#noshutdown

%LINK-3-UPDOWN:InterfaceEthernetO,changedstatetoup

Router(config-if)#end

配置與Routerl連接的PC機的IP地址為11.11.11.也1,子網(wǎng)掩碼為255.255.255.0,默認網(wǎng)關(guān)為11.11.11.1

檢測PCI與Routeri的連通性

C:>ping11.11.11.1

Pinging11.11.11.1with32bytesofdata:

Replyfrom11.11.111:bytes=32time=60msTTL=241

R叩lyfrom11.11.111:bytes=32time=60msTTL=241

Replyfrom11.11.111:bytes=32time=60msTTL=241

Replyfrom11.11.111:bytes=32time=60msTTL=241

Replyfrom11.11.111:bytes=32time=60msTTL=241

Pingsstatisticsfor11.11.11.1:Packets:Sent==4,Received==4,Lost==0(0%

loss)r

ApproximateroundtriptimesinmiHi-seconds:

Minimum=50ms,Maximum=60ms,Average=55ms

2.配置點到點接口:用HDLC3幀格式

配置Router3和Rouier4的點到點接口,不過使用HDLC3幀格式。Rouier3的S0端口的IP地址為

23.23.23.1,子網(wǎng)掩碼為255.255.255.0o配置Router4的S1端口的IP地址23.23.23.2,子網(wǎng)掩碼為

255.255.255.0,對Router3設(shè)置時鐘頻率為56000.

Router#configt

Router(config)#interfacesO

Router(config-if)#ipaddress23.23.23.1255.255.255.0

Router(config-if)#noshutdown

%LINK-3-UPDOWN:InterfaceSerialO,changedstatetoup

Router(config-i£)#end

Router#confiat

Router(config)#interfacesi

Router(config-if)#ipaddress23.23.23.2255.255.255.0

Router(config-if)#noshutdown

%LINK-3-UPDOW14:InterfaceSeriall,changedstatetoup

Router(config-if)#end

對Router3設(shè)置時鐘頻率為56000

router3(config)#hostnamerouter3

router3(config)#interfacesO

router3(config-if)#clockrate56000

(config-if)#end

3.配置點到點接口:用PPP幀格式

配置Router1和Rouier3的點到點接口。配置Routeri的SO端口的IP地址為17.17.17.L子網(wǎng)掩碼為

255.255.255.0o配置Router3的S1端口的IP地址為17.17.17.2,子網(wǎng)掩碼250255.255.0

Router#configt

Router(config)#interfacesO

Router(config-if)#encapppp

Router(configif)#ipaddress17.17.17.1255.255.255.0

Router(config-if)#noshutdown

%LINK-3-UPDOV?,N:InterfaceSerialO,changedstatetoup

Router(config-if)#end

Router#configt

Router(config)#interfacesi

Router(config-if)#encapppp

Router(config-if)#ipaddress17.17.17.2255.255.255.0

Router(config-if)#noshutdown

%LINK-3-UPDOWN:InterfaceSeriall,changedstatetoup

Router(config-if)#end

測試這兩個路由器的連通性

Router#ping17.17.17.1

Typeescapesequencetoabort.

Sending5,100-byteICMPEchosto17.17.17.1,timeoutis2seconds:

Successrateis100percent(5/5)*round-tripmin/avg/max=1/2/4ms

4.嘗試配置命令I(lǐng)PSUBNET-ZERO

軟件不支持

Router#ipsubnet-zero

%Invalidinputdetectedat1A,marker.

5.配置LOOPBACK接口(虛擬接口)

配置Routeri的LOOPBACK接口。接口編號為0,IP地址為192.168.11.11,子網(wǎng)掩碼為255.255.255.0

Router#configuret

Router(config)#interfaceLoopback.0

Router(config-if)#ipaddress192.168.11.11255.255.255.0

Router(config-if)#end

6.嘗試命令并觀當作果:SHOWINTERFACESERIAL0

、outer#showinterfacessO

SerialOisupzlineprotocolisup

HardwareisHD64570

Internetaddressis.17.17.1/2個

MTU1500bytes,BW1544Kbit,DLY1000usee,rely255/255,load1/255

EncapsulationPPP|loopback.notset,keepaliveset(10sec)

Lastinput00:00:00,output00:00:00,outputhangnever

Lastclearingofshowinterfacecountersnever

Queueingstrategy:fifo

Outputqueue0/40,0drops;inputqueue0/75,0drops

5minuteinputrate1000bits/sec,2packets/sec

5minuteoutputrate1000bits/sec,2packets/sec

0packetsinput,0bytes,0nobuffer

Received0broadcasts,0runts,0giants,0throttles

0inputerrors,0CRC,0frame,0overrun,0ignored,0abort

0inputpacketswithdribbleconditiondetected

0packetsoutput,0bytes,0underruns

0outputerrors,0collisions,0interfaceresets

0babbles,0latecollision,0deferred

0lostcarrier,0nocarrier

0outputbufferfailures,0outputbuffersswappedout

7.嘗試命令并觀當作果:SHOWINTERFACEETHERNET0

Router#showinterfaceseO

Ethernet。isup,lineprotocolisup|

HardwareisLance,addressis000C.9952.8180(bia000C.9952.8180)

Internetaddressis.工工.IT.1/24"|

MTU1500bytes,BW10000Rbit,DLY1000usee,rely255/255,load1/255

EncapsulationARPAZloopbacknotset,keepaliveset(10sec)

ARPtype:ARPA,ARPTimeout04:00:00

Lastinput00:00:00,output00:00:00,outputhangnever

Lastclearingofshowinterfacecountersnever

Queueingstrategy:fifo

Outputqueue0/40,0drops;inputqueue0/75,0drops

5minuteinputrate1000bits/sec,2packets/sec

5minuteoutputrate1000bits/sea,2packets/sec

0packetsinput,0bytes,0nobuffer

Received0broadcasts,0runts,0giants,0throttles

0inputerrors,0CRC,0frame,0overrun,0ignored,0abort

0inputpacketswithdribbleconditiondetected

0packetsoutput,0bytes,0underruns

0outputerrors,0collisions,0interfaceresets

0babbles,0latecollision,0deferred

0lostcarrier,0nocarrier

0outputbufferfailures,0outputbuffersswappedout

8.用PING測試兩臺路由器連通性

測試Router3到Router4的連通性

Router#ping23.23.23.1

Typeescapesequencetoabort.

Sending5,100-byteICMPEchosto23.23.23.1,timeoutis2seconds:

itiii

Successrateis100percent(5/5),round-tripmin/avg/max=1/2/4ms

9.配置兩臺路由器的靜態(tài)路由:iproute命令

配置Routeri和Router3的靜態(tài)路由表

Router#configt

Router(config)#|iproute13.13.13.0255.255.255.017.17.17.2

Router(config)#iproute23.23.23.0255.255.255.017.17.17.2

Router(config)#iproute18.18.18.0255.255.255.017.17.17.2

Router(config)#iproute12.12.12,0255.255.255.017.17.17.2

Router(config)Mend

Router#configt

Router(conflg)#lproute11.11.11.0255.255.255.017.17.17.1

Router(config)#iproute18.18.18.0255.255.255.023.23.23.2

Router(config)#iproute12.12.12.0255.255.255.023.23.23.2

對于Routeri來說,假如要一種數(shù)據(jù)包要抵達13.13.13.0網(wǎng)段,子網(wǎng)掩碼為255.255.255.0,根據(jù)網(wǎng)絡(luò)

拓撲圖,我們懂得該數(shù)據(jù)包的下一跳應(yīng)當為17.17.17.2的路由器IP地址,Routed同理。

10.嘗試命令并觀當作果:showiproute

Router1的路由表

Router#showiprpute

%Invalidinputdetectedat,A*marker.

Router#showiproute

Codes:C-connected,S-static,I-IGRP,R-RIPrM-mobile,B-BGP

D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea

El-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

i-IS-IS,LI-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefault

U-per-userstaticroute

Gatewayoflastresortisnotset

C11.11.11.0/24isdirectlyconnected,11.11.11.1

C17.17.17.0/24isdirectlyconnected,17.17.17.1

C192.168.11.0/24isdirectlyconnected,192.168.11.11

13.13.13.0/24[1/0]via17.17.17.2

23.23.23.0/24[1/0]via17.17.17.2

18.18.18.0/24[1/0]via17.17.17.2

12.12.12.0/24[1/0]via17.17.17.2

Router3的路由表

Router#showiproute

Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRPexternal,O-OSP?rIA-OSPFinterarea

El-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

i-IS-IS,LI-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefault

U-per-userstaticroute

Gatewayoflastresortisnotset

c1717.17.0/24isdirectlyconnected,17.17.17.2

c2323.23.0/24isdirectlyconnected,23.23.23.1

s1111.11.0/24[1/0]via17.17.17.1

s1818.18.0/24[1/0]via23.23.23.2

s1212.12.0/24[1/0]via23.23.23.2

c1313.13.0/24isdirectlyconnected,13.13.13.1

11.用PING測試連通性

我們測試從PCI到PC3的連通性

我們在PCI中輸入下圖所示信息

J:>ipconfig

sonDOS1.0IPConfiguration

thernetadapterLocalAreaConnection:

Connection-sp>ecificDNSSuffix.:boson.com

IPAddress..................................................:11.11.11.111

SubnetMask.............................................:255.255.255.0

DefaultGateway.........................:11.11.11.1

PleaseusewinipcfgtoconfiguretheIPAddress

C:>ping13.13.13.133

Pinging13.13.13.133with32bytesofdata:

Replyfrom13.13.13.133:time=60msTTL-241

by32

Replyfrom13.13.13.133:bytime=60msTTL=241

Replyfrom13.13.13.133:bytime=60msTTL=241

Replyfrom13.13.13.133:bytime=60msTTL=241

by

Replyfrom13.13.13.133:time=60msTTL=241

Pingstatisticsfor13.13.13.133:Packets:Sent=4,Received=4,Lost=0(0%loss),

ApproximateroundtriptimesinmiHi-seconds:

Minimum-50ms,Maximum-60ms,Average"55ms

12.配置兩臺路由器的RIP協(xié)議

配置Routeri的RIP協(xié)議

Router#2onfigt

Router(config)#routerrip

Router(config-router)#network11.11.11.0

Router(config-router)#network17.17.17.0

Router(config-router)#end

雖然題目中只是兩臺,我還是依次配置了Router2、Routed、Router4的RIP協(xié)議

Router2

Router#configt

Router(config)#routerrip

Router(config-router)#network18.18.18.0

Router(config-router)#network12.12.12.0

Router(config-router)#end

Router3

Router#contigt

Router(config)#routerrip

Router(config-router)#network.17.17.17.0

Router(config-router)#network.23.23.23.0

Router(config-router)#network13.13.13.0

Router(config-router)#end

Rouler4

Router#configt

Router(config)#routerrip

Router(config-router)#network23.23.23.0

Router(config-router)#network18.18.18.0

Router(config-router)#end

13.用PING測試連通性

同第11問,我們繼續(xù)測試PCI到PC3的連通性,下圖為成果

C:>ping13.13.13.133

Pinging13.13.13.133with32bytesofdata:

Replyfrom13.13.13.133:bytes=32time=60msTTL=241

Replyfrom13.13.13.133:bytes=32time=60msTTL-241

Replyfrom13.13.13.133:bytes=32time=60msTTL=241

Replyfrom13.13.13.133:bytes=32time=60msTTL=241

Replyfrom13.13.13.133:bytes=32time=60msTTL-241

Pingstatisticsfor13.13.13.133:Packets:Sent=4,Received=4,Lost=0(0%loss),

皿proximateroundtriptimesinmiHi-seconds:

Minimum=50ms,Maximum=60ms,Average=55ms

14.嘗試命令并觀當作果:showiproute

對Router4查看iproute

Router#showiproute

Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea

El-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

i-IS-IS,LI-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefault

U-per-userstaticroute

Gatewayoflastresortisnotset

C23.23.23.0/24isdirectlyconnected,23.23.23.2

C18.18.18.0/24isdirectlyconnected,IB.18.18.2

R17.1717.0/24[120/1]via23.23.23.1,00:04:16,Seriall

R13.1313.0/24[120/1]via23.23.23.1,00:01:32,Seriall

R12.1212.0/24[120/1]via18.18.18.1,00:08:37,SerialO

15.嘗試命令并觀當作果:showipprotocols

Router#showipprotocols

RoutingProtocolis"rip”

Sendingupdatesevery30seconds,nextduein26seconds

Invalidafter180seconds,holddown180,flushedafter240

Outgoingupdatefilterlistforallinterfacesis

Incomingupdatefilterlistforallinterfacesis

Redistributing:|rip|

Defaultversioncontrol:sendversion1,receiveanyversion

InterfaceSendRecvKey-chain

SerialO112

Seriall112

RoutingforNetworks:

23.0.0.0

18.0.0.0

RoutingInformationSources:

23.23.23.212000:00:03

23.23.23.212000:00:03

18.18.18.212000:00:03

Distance:(defaultis120)

16.嘗試命令并觀當作果:debugiprip

軟件不支持

Router#debugiprip

%Invalidinputdetectedat1A,marker.

17.嘗試命令并觀當作果:passiveinterface

軟件不支持

Router#passiveinterface

%Invalidinputdetectedat,A*marker.

五、試驗數(shù)據(jù)記錄和處理

詳見第四部分的操作措施與試驗環(huán)節(jié)

六、試驗成果與分析

1.上述截圖中所用命令分別的涵義

命令作用

enable表達由顧客模式進入特權(quán)模式

configt表達進入全局配置模式

hostname***修改路由器的名字

interface端口名進入路由器對應(yīng)的接口

interfaceloopback值設(shè)置loopback

clockrate頻率設(shè)置路由器時鐘頻率

ipaddressIP地址子網(wǎng)掩碼設(shè)置路由器接口的IP地址以及子網(wǎng)掩碼

encapppp表達設(shè)置PPP連接,一般默認為HDLC連接

noshutdown表達啟用接口

showinterface端口名查看一種接口的信息

copyrunning-configstartup-config保留配置信息

showrunning-config查看路由器的配置信息

iproutex.x.x.xy.y.y.yz.z.z.zx.x.x.x—目的網(wǎng)絡(luò)的地址

y.y.y.y一目的網(wǎng)絡(luò)的子網(wǎng)掩碼

Z.Z.Z.Z一去目的網(wǎng)絡(luò)的下一跳IP地址

showiproute查看路由表的信息

routerrip啟用RIP協(xié)議

networkx.x.x.x指定將要使用RIP的網(wǎng)絡(luò)

showipprotocols查看RIP路由公告詳細信息

2.配置ETHERNET接口

在配置PC機的IP地址時,要注意與相連路由器的網(wǎng)段號保持一致。由于我設(shè)置的路由器的IP地址

為11.1L1L1,子網(wǎng)掩碼為255.255255.0,因此相連的主機前三位必須為11.11.11。默認網(wǎng)關(guān)直接使用路由

器的IP地址就行了。

3.配置點到點接口:用HDLC3.幀格式

假如不特地闡明,Boson默認使用的就是HDLC的幀格式,在設(shè)置【P地址時,必須要保持網(wǎng)段號一

致,否則則無法ping通。設(shè)置好IP之后一定要使用“noshutdown”命令將路由器的接口啟動

4.配置點到點接口:用PPP幀格式

需要使用encapppp命令表達設(shè)置的PPP幀格式

5.配置LOOPBACK接口(虛擬接口)

loopback接口即回環(huán)接口,是路由器上的虛擬接口。只要踣由器沒有關(guān)閉,回環(huán)接口就一直處在活動

狀態(tài)。該接口會被自動激活,且永遠處在叩狀態(tài),因此不需要執(zhí)行額外的激活命令

6.嘗試命令并觀當作果:SHOWINTERFACESERIAL0

(outer種showinterfacessO

SerialOisup,lineprotocolisup

HardwareisHD64570

Internetaddressis17.17.17.1/24

MTU1500bytes,BW1544Rbit,DLY1000usee,rely255/255,load1/255

EncapsulationPPP|loopbacknotset,keepaliveset(10sec)

Lastinput00:00:00,output00:00:00,outputhangnever

Lastclearingofshowinterfacecountersnever

Queueingstrategy:fifo

Outputqueue0/40,0drops;inputqueue0/75,0drops

5minuteinputrate1C00bits/sec,2packets/sec

5minuteoutputrate1000bits/sec,2packets/sec

0packetsinput,0bytes,0nobuffer

Received0broadcasts,0runts,0giants,0throttles

0inputerrors,0CRC,0frame,0overrun,0ignored,0abort

0inputpacketswithdribbleconditiondetected

0packetsoutput,0bytes,0underruns

0outputerrors,0collisions,0interfaceresets

0babbles,0latecollision,0deferred

0lostcarrier,0nocarrier

0outputbufferfailures,0outputbuffersswappedout

輸出信息表明該接口已經(jīng)激活,且IP為17.17.17.1,子網(wǎng)掩碼為25.255.255.0,采用的是PPP幀格式

7.嘗試命令并觀當作果:SHOWINTERFACEETHERNET0

與上面類似,就不再贅述

8.用PING測試兩臺路由器連通性

從圖中我們可以看到發(fā)出去的5個包所有收到,因此兩臺路由器是連通的

9.配置兩臺路由器的靜態(tài)路由:iproute命令

Router#confiat

Router(config)#|iproute13.13.13.0255.255.255.017.17.173

Router(config)#iproute23.23.23.0255.255.255.017.17.17.2

Router(config)#iproute18.18.18.0255.255.255.017.17.17.2

Router(config)#iproute12.12.12,0255.255.255.017.17.17.2

Router(config)#end

上圖紅色框的部分,表達假如該路由器收到了一種包,這個包的目的網(wǎng)絡(luò)是13.13.13.0,子網(wǎng)掩碼為

Router#showiproute

Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea

El-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

i-IS-IS,LI-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefault

U-per-userstaticroute

Gatewayoflastresortisnotset

C171717.0/24isdirectlyconnected,17.17.17.2

C232323.0/24isdirectlyconnected,23.23.23.1

111111.0/24[1/0]via17.17.17.1

181818.0/24[1/0]via23.23.23.2

121212.0/24[1/0]via23.23.23.2

13.0/24isdirectlyconnected,13.13.13.1

255.255.255.0,那么,這個路由器需要將這個包轉(zhuǎn)給17.17.17.2的路由器

10.嘗試命令并觀當作果:showiproute

這張圖中的紅色框部分,是剛剛通過靜態(tài)配置路由IP得到的。前面的“s”表達這是靜態(tài)路由,背面表

達目的網(wǎng)段,子網(wǎng)掩碼,以及下?跳的鄰居路由

11.用PING測試連通性

RX0-P3E0

我們測試PC1到PC2的連通性。由于我們配置了靜態(tài)路由,因此PC1發(fā)出的包抵達Routeri之后會進

行判斷,發(fā)現(xiàn)目的地址為PC3,于是將這個包轉(zhuǎn)交給Router3,然后再由Routcr3發(fā)送給PC3

因此PC1和PC3在配置了靜態(tài)路由之后是可以通過這兩個路由器連通

12.配置兩臺路由器的RIP協(xié)議

Router#oonfigt

Router(config)#routerrip

Router(config-router)#network11.11.11.0

Router(config-router)#network17.17.17.0

Router(config-router)#end

上圖紅框表達路由器相連的兩個網(wǎng)段都是用rRIP協(xié)議

13.嘗試命令并觀當作果:showiproute

Ront:ftr#showiprent:。

Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRPexternal,O-OSPFZIA-OSPFinterarea

El-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

i-IS-IS,LI-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefault

U-per-userstaticroute

Gatewayoflastresortisnotset

C23.23.23.0/24isdirectlyconnected,23.23.23.2

C18.18.18.0/24isdirectlyconnected,IB.18.18.2

R171717.0/24[120/1]via23.23.23.1,D0:04:16rSeriall

R131313.0/24(120/1]via23.23.23.1,00:01:32,Seriall

R121212.0/24[120/1]via18.18.18.1,00:08:37,SerialO

在上圖紅框中,我們可以看到由RIP協(xié)議配置的路由表前面的字母都為“R”,不一樣于靜態(tài)路由的“S”。

并且RIP協(xié)議是動態(tài)路由,他會限據(jù)目的網(wǎng)絡(luò)自動算出下一跳的位置。

14.嘗試命令并觀當作果:showipprotocols

Router#showipprotocols

RoutingProtocolis“rip”

Sendingupdatesevery30secondst,nextduein26seconds

Invalidafter180seconds,holddown180,flushedafter240

Outgoingupdat

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論