默认路由和RIP路由的配置.docx

上传人:b****4 文档编号:4675496 上传时间:2023-05-07 格式:DOCX 页数:15 大小:342.64KB
下载 相关 举报
默认路由和RIP路由的配置.docx_第1页
第1页 / 共15页
默认路由和RIP路由的配置.docx_第2页
第2页 / 共15页
默认路由和RIP路由的配置.docx_第3页
第3页 / 共15页
默认路由和RIP路由的配置.docx_第4页
第4页 / 共15页
默认路由和RIP路由的配置.docx_第5页
第5页 / 共15页
默认路由和RIP路由的配置.docx_第6页
第6页 / 共15页
默认路由和RIP路由的配置.docx_第7页
第7页 / 共15页
默认路由和RIP路由的配置.docx_第8页
第8页 / 共15页
默认路由和RIP路由的配置.docx_第9页
第9页 / 共15页
默认路由和RIP路由的配置.docx_第10页
第10页 / 共15页
默认路由和RIP路由的配置.docx_第11页
第11页 / 共15页
默认路由和RIP路由的配置.docx_第12页
第12页 / 共15页
默认路由和RIP路由的配置.docx_第13页
第13页 / 共15页
默认路由和RIP路由的配置.docx_第14页
第14页 / 共15页
默认路由和RIP路由的配置.docx_第15页
第15页 / 共15页
亲,该文档总共15页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

默认路由和RIP路由的配置.docx

《默认路由和RIP路由的配置.docx》由会员分享,可在线阅读,更多相关《默认路由和RIP路由的配置.docx(15页珍藏版)》请在冰点文库上搜索。

默认路由和RIP路由的配置.docx

默认路由和RIP路由的配置

实验二默认路由和RIP路由的配置

1.具体配置拓扑图

其中

Router0

Router1

Router2

2.配置过程

⑴准备工作

先配置Router0,Router1和Router2的基本信息,注意Router1作为DCE提供时钟频率

Router0

Router>en

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hostr0

r0(config)#intfa0/0

r0(config-if)#ipaddress192.168.3.1255.255.255.0

r0(config-if)#noshut

%LINK-5-CHANGED:

InterfaceFastEthernet0/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

r0(config-if)#ints0/0

r0(config-if)#ipaddress192.168.1.1255.255.255.0

r0(config-if)#noshut

%LINK-5-CHANGED:

InterfaceSerial0/0,changedstatetodown

r0(config-if)#end

r0#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

r0#copyrunstart

Destinationfilename[startup-config]?

Buildingconfiguration...

[OK]

r0#

 

Router1

Router>en

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hostr1

r1(config)#intfa0/0

r1(config-if)#ipaddress192.168.1.2255.255.255.0

r1(config-if)#ipaddress192.168.4.1255.255.255.0

r1(config-if)#noshut

%LINK-5-CHANGED:

InterfaceFastEthernet0/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

r1(config-if)#ints0/0

r1(config-if)#ipaddress192.168.1.2255.255.255.0

r1(config-if)#clockrate64000

r1(config-if)#noshut

%LINK-5-CHANGED:

InterfaceSerial0/0,changedstatetoup

r1(config-if)#ints0/1

r1(config-if)#ipaddress192.168.2.1255.255.255.0

r1(config-if)#clockrate64000

r1(config-if)#noshut

%LINK-5-CHANGED:

InterfaceSerial0/1,changedstatetodown

r1(config-if)#end

r1#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

r1#copyrunstart

Destinationfilename[startup-config]?

Buildingconfiguration...

[OK]

r1#

 

Router2

Router>en

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hostr2

r2(config)#intfa0/0

r2(config-if)#ipaddress192.168.5.1255.255.255.0

r2(config-if)#noshut

%LINK-5-CHANGED:

InterfaceFastEthernet0/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

r2(config-if)#ints0/0

r2(config-if)#ipaddress192.168.2.2255.255.255.0

r2(config-if)#noshut

r2(config-if)#

%LINK-5-CHANGED:

InterfaceSerial0/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceSerial0/0,changedstatetoup

r2(config-if)#end

r2#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

r2#copyrunstart

Destinationfilename[startup-config]?

Buildingconfiguration...

[OK]

r2#

 

再分别配置PC0、PC1和PC2的基本信息

PC0

PC1

PC2

⑵先配置Router0的默认路由并验证,然后配置Router0的RIP路由并验证

r0#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

r0(config)#noiproute192.168.4.0255.255.255.0192.168.1.2

r0(config)#noiproute192.168.2.0255.255.255.0192.168.1.2

r0(config)#noiproute192.168.5.0255.255.255.0192.168.1.2

r0(config)#iproute0.0.0.00.0.0.0192.168.1.2

r0(config)#exit

r0#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

r0#shiproute

Codes:

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

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

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea

*-candidatedefault,U-per-userstaticroute,o-ODR

P-periodicdownloadedstaticroute

Gatewayoflastresortis192.168.1.2tonetwork0.0.0.0

C192.168.1.0/24isdirectlyconnected,Serial0/0

S*0.0.0.0/0[1/0]via192.168.1.2

RIP:

r0#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

r0(config)#routerrip

r0(config-router)#network192.168.3.0

r0(config-router)#network192.168.1.0

r0(config-router)#end

r0#shiproute

Codes:

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

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

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea

*-candidatedefault,U-per-userstaticroute,o-ODR

P-periodicdownloadedstaticroute

Gatewayoflastresortis192.168.1.2tonetwork0.0.0.0

C192.168.1.0/24isdirectlyconnected,Serial0/0

R192.168.2.0/24[120/1]via192.168.1.2,00:

00:

16,Serial0/0

C192.168.3.0/24isdirectlyconnected,FastEthernet0/0

R192.168.4.0/24[120/1]via192.168.1.2,00:

00:

16,Serial0/0

R192.168.5.0/24[120/2]via192.168.1.2,00:

00:

16,Serial0/0

S*0.0.0.0/0[1/0]via192.168.1.2

⑶配置Router1的RIP路由并验证

RIP:

R1#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

r1(config)#noiproute192.168.5.0255.255.255.0192.168.2.2

r1(config)#noiproute192.168.3.0255.255.255.0192.168.1.1

r1(config)#routerrip

r1(config-router)#network192.168.1.0

r1(config-router)#network192.168.2.0

r1(config-router)#network192.168.4.0

r1(config-router)#end

r1#shiproute

Codes:

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

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

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea

*-candidatedefault,U-per-userstaticroute,o-ODR

P-periodicdownloadedstaticroute

Gatewayoflastresortisnotset

C192.168.1.0/24isdirectlyconnected,Serial0/0

C192.168.2.0/24isdirectlyconnected,Serial0/1

R192.168.3.0/24[120/1]via192.168.1.1,00:

00:

18,Serial0/0

C192.168.4.0/24isdirectlyconnected,FastEthernet0/0

R192.168.5.0/24[120/1]via192.168.2.2,00:

00:

21,Serial0/1

⑷先配置Router2的默认路由并验证,然后配置Router2的RIP路由并验证

r2#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

r2(config)#noiproute192.168.1.0255.255.255.0192.168.2.1

r2(config)#noiproute192.168.3.0255.255.255.0192.168.2.1

r2(config)#noiproute192.168.4.0255.255.255.0192.168.2.1

r2(config)#iproute0.0.0.00.0.0.0192.168.2.1

r2(config)#exit

r2#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

r2#shiproute

Codes:

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

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

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea

*-candidatedefault,U-per-userstaticroute,o-ODR

P-periodicdownloadedstaticroute

Gatewayoflastresortis192.168.2.1tonetwork0.0.0.0

C192.168.2.0/24isdirectlyconnected,Serial0/0

C192.168.5.0/24isdirectlyconnected,FastEthernet0/0

S*0.0.0.0/0[1/0]via192.168.2.1

RIP:

R2#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

r2(config)#routerrip

r2(config-router)#network192.168.5.0

r2(config-router)#network192.168.2.0

r2(config-router)#end

r2#shiproute

Codes:

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

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

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea

*-candidatedefault,U-per-userstaticroute,o-ODR

P-periodicdownloadedstaticroute

Gatewayoflastresortis192.168.2.1tonetwork0.0.0.0

R192.168.1.0/24[120/1]via192.168.2.1,00:

00:

08,Serial0/0

C192.168.2.0/24isdirectlyconnected,Serial0/0

R192.168.3.0/24[120/2]via192.168.2.1,00:

00:

08,Serial0/0

R192.168.4.0/24[120/1]via192.168.2.1,00:

00:

08,Serial0/0

C192.168.5.0/24isdirectlyconnected,FastEthernet0/0

S*0.0.0.0/0[1/0]via192.168.2

⑸验证整个网络的连通性

PC0:

PC>ping192.168.4.2

Pinging192.168.4.2with32bytesofdata:

Replyfrom192.168.4.2:

bytes=32time=93msTTL=126

Replyfrom192.168.4.2:

bytes=32time=94msTTL=126

Replyfrom192.168.4.2:

bytes=32time=94msTTL=126

Replyfrom192.168.4.2:

bytes=32time=93msTTL=126

Pingstatisticsfor192.168.4.2:

Packets:

Sent=4,Received=4,Lost=0(0%loss),

Approximateroundtriptimesinmilli-seconds:

Minimum=93ms,Maximum=94ms,Average=93ms

PC>ping192.168.5.2

Pinging192.168.5.2with32bytesofdata:

Replyfrom192.168.5.2:

bytes=32time=109msTTL=125

Replyfrom192.168.5.2:

bytes=32time=125msTTL=125

Replyfrom192.168.5.2:

bytes=32time=125msTTL=125

Replyfrom192.168.5.2:

bytes=32time=124msTTL=125

Pingstatisticsfor192.168.5.2:

Packets:

Sent=4,Received=4,Lost=0(0%loss),

Approximateroundtriptimesinmilli-seconds:

Minimum=109ms,Maximum=125ms,Average=120ms

PC1:

PC>ping192.168.3.2

Pinging192.168.3.2with32bytesofdata:

Replyfrom192.168.3.2:

bytes=32time=93msTTL=126

Replyfrom192.168.3.2:

bytes=32time=94msTTL=126

Replyfrom192.168.3.2:

bytes=32time=93msTTL=126

Replyfrom192.168.3.2:

bytes=32time=63msTTL=126

Pingstatisticsfor192.168.3.2:

Packets:

Sent=4,Received=4,Lost=0(0%loss),

Approximateroundtriptimesinmilli-seconds:

Minimum=63ms,Maximum=94ms,Average=85ms

PC>ping192.168.5.2

Pinging192.168.5.2with32bytesofdata:

Replyfrom192.168.5.2:

bytes=32time=93msTTL=126

Replyfrom192.168.5.2:

bytes=32time=94msTTL=126

Replyfrom192.168.5.2:

bytes=32time=78msTTL=126

Replyfrom192.168.5.2:

bytes=32time=93msTTL=126

Pingstatisticsfor192.168.5.2:

Packets:

Sent=4,Received=4,Lost=0(0%loss),

Approximateroundtriptimesinmilli-seconds:

Minimum=78ms,Maximum=94ms,Average=89ms

PC2:

PC>ping192.168.3.2

Pinging192.168.

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 经管营销 > 企业管理

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2