实验四动态路由协议Word格式.docx

上传人:b****2 文档编号:14203987 上传时间:2022-10-20 格式:DOCX 页数:18 大小:223.41KB
下载 相关 举报
实验四动态路由协议Word格式.docx_第1页
第1页 / 共18页
实验四动态路由协议Word格式.docx_第2页
第2页 / 共18页
实验四动态路由协议Word格式.docx_第3页
第3页 / 共18页
实验四动态路由协议Word格式.docx_第4页
第4页 / 共18页
实验四动态路由协议Word格式.docx_第5页
第5页 / 共18页
点击查看更多>>
下载资源
资源描述

实验四动态路由协议Word格式.docx

《实验四动态路由协议Word格式.docx》由会员分享,可在线阅读,更多相关《实验四动态路由协议Word格式.docx(18页珍藏版)》请在冰豆网上搜索。

实验四动态路由协议Word格式.docx

172.16.1.0/24172.16.2.0/24172.16.3.0/24

Router1Router2

PC111112222PC2

【实验设备】

R2624路由器(2台)、V35DCE(1根)、V35DTE(1根)

【实验步骤】

第一步:

在路由器Router1上配置接口的IP地址和串口上的时钟频率

Router1(config)#interfacefastethernet0!

进入接口F0的配置模式

Router1(config-if)#ipaddress172.16.1.1255.255.255.0!

配置路由器接口F0的IP地

Router1(config-if)#noshutdown!

开启路由器fastethernet0接口

!

Router1(config)#interfaceserial0!

进入接口S0配置模式

Router1(config-if)#ipaddress172.16.2.1255.255.255.0!

配置路由器接口S0的IP地

Router1(config-if)#clockrate64000!

配置Router1的时钟频率(DCE)

开启路由器serial0接口

验证测试:

验证路由器接口的配置和状态

Router1#showipinterfacebrief

InterfaceIP-AddressOK?

MethodStatusProtocol

FastEthernet0172.16.1.1YESmanualupup

FastEthernet1unassignedYESunsetadministrativelydowndown

FastEthernet2unassignedYESunsetadministrativelydowndown

FastEthernet3unassignedYESunsetadministrativelydowndown

Serial0172.16.2.1YESmanualdowndown

Serial1unassignedYESunsetadministrativelydowndown

注:

串口Serial0的链路层状态是down,这是因为对端接口还没有配置。

第二步:

在路由器Router1上配置RIPV1路由协议

Router1(config)#routerrip!

创建RIP路由进程

Router1(config-router)#network172.16.0.0!

定义关联网络(必须是直连的主类网络地址)

验证Router1上的RIPV1路由表

Router1#showiproute

Codes:

C-connected,S-static,R-RIP

O-OSPF,IA-OSPFinterarea

E1-OSPFexternaltype1,E2-OSPFexternaltype2

Gatewayoflastresortisnotset

172.16.0.0/24issubnetted,2subnets

C172.16.1.0isdirectlyconnected,FastEthernet0

C172.16.2.0isdirectlyconnected,Serial0

第三步:

在路由器Router2上配置接口的IP地址

Router2(config)#interfacefastethernet0!

Router2(config-if)#ipaddress172.16.3.2255.255.255.0!

配置路由器接口F0的IP地址

Router2(config-if)#noshutdown!

Router2(config)#interfaceserial0!

Router2(config-if)#ipaddress172.16.2.2255.255.255.0!

配置路由器接口S0的IP地址

Router2#showipinterfacebrief

FastEthernet0172.16.3.2YESmanualupup

Serial0172.16.2.2YESmanualupup

第四步:

在路由器Router2上配置RIPV1路由协议

Router2(config)#routerrip!

Router2(config-router)#network172.16.0.0!

验证Router2和Router1上的RIPV1路由表

Router2#showiproute

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

172.16.0.0/24issubnetted,3subnets

R172.16.1.0[120/1]via172.16.2.1,00:

00:

16,Serial0!

Router2通过RIP协议获得的路由

C172.16.3.0isdirectlyconnected,FastEthernet0

Router1#shiproute

R172.16.3.0[120/1]via172.16.2.2,00:

08,Serial0!

Router1通过RIP协议获得的路由

第五步:

测试网络的连通性。

C:

\>

ping172.16.3.22!

从PC1pingPC2

ping172.16.1.11!

从PC2pingPC1

【注意事项】

1在串口上配置时钟频率时,一定要在电缆DCE端的路由器上配置,否则链路不通;

2定义关联网络时,命令network后面必须是与该路由器直连的主类网络地址。

【参考配置】

Router1#showrunning-config!

显示路由器Router1的全部配置

Buildingconfiguration...

Currentconfiguration:

version6.14

(2)

hostname"

Router1"

enablesecret5$1$CT43$gMntVy1ViUeKqRfmWanw/0

ipsubnet-zero

end

Router2#showrunning-config!

显示路由器Router2的全部配置

Red-Giant"

enablesecret5$1$TK6E$V8xIZJ40aN1LYoUd27U45/

interfaceFastEthernet0

ipaddress172.16.3.2255.255.255.0

interfaceFastEthernet1

noipaddress

shutdown

interfaceFastEthernet2

interfaceFastEthernet3

interfaceSerial0

ipaddress172.16.2.2255.255.255.0

interfaceSerial1

routerrip

network172.16.0.0

ipclassless

linecon0

lineaux0

linevty04

passwordstar

login

实验4.2在不连续的子网中运行RIPV1

在不连续的子网中运行RIPV1

掌握在不连续的子网中配置RIPV1。

假设校园网通过一台路由器连接到校园

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

当前位置:首页 > 求职职场 > 自我管理与提升

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1