




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、项目七、动态路由协议(一)rip路由协议【项目名称】rtp v2配置。【项目教学目的】掌握在路rh器上配置rip v2o【项目背景描述】假设校园网通过1台三层交换机连到校园网出口路由器,路由器再和校园外的另1台路 由器连接,现做适当配置,实现校园网内部主机与校园网外部主机的相互通信。本项目以两台r1762路由器、1台三层交换机为例。s3550上划分有vlan10和vlan50, 其中vlan10用于连接ra, vlan50用于连接校园网主机。路由器分别命名为呛和rb,路由器之i'可通过串口采用v35 dce/dte电缆连接,dce端 连接到ra (r1762)上。pc1的ip地址和缺省
2、网关分别为172. 16. 4. 2和172. 16. 4. 1, pc2的ip地址和缺省网 关分别为 172. 16. 1. 2 和 172. 16. 1. 1,网络掩码都是 255. 255. 255. 0。【知识链接】1、rip (routing information protocols,路由信息协议)是应用较早、使用较普遍 的tgp (interior gateway protocol,内部网关协议),适用于小型同类网络,是典型的 距离矢量(distance-vector)协议。2、rip协议跳数做为衡量路径开销的,rip协议里规定最大跳数为15。3、rip协议有两个版本ripvl和
3、ripv2。4、rtpvl属于有类路由协议,不支持vlsm (变长子网掩码),rtpvl是以广播的形式进 行路由信息的更新的;更新周期为30秒。5、rlpv2属于无类路由协议,支持vlsm (变长子网掩码),ripv2是以组播的形式进行 路由信息的更新的,组播地址是。ripv2还支持基于端口的认证,提高网络的安 全性。【项目技能要求】学会实现网络的互连互通,从而实现信息的共享和传递。【完成项目所需设备】s3550交换机(1台)、r1762路由器(两台)、v35线缆(1根)、直连线或交叉线(1 条)【项目拓扑】/24f0/5s375o/2
4、4f s1/3ra;pcivian 10172.16. l2s3750:f1/0= s1/3-172.16.3j卜 1/0=s1/3=vlan1o=f0/5=172.16.2j/24rbfl/0/24注:路由器和主机直连时,需要使用交叉线,在r1762的以太网接口支持mdi/mdix , 使用直连线也可以连通。rb的s1/3为dce接口。【项目实施步骤】 基本配置:1、三层交换机基本配置switch#configurc terminalswitch (c
5、onf ig) #hostnaine s3550s3550(confi g)#vlan 10s3550(config-vlan)#exits3550(config)#interface fo/1s3550(config-if)#switchport access vian 10s3550 (config-if)#exits3550 (config)#interface fo/5s3550(config-if)#no switchports3550(config-if)#ip address 172. 16. 2. 1 255. 255. 255. 0s3550(config-if)#exits
6、3550(config)#interface vlan 10!创建 vlan 虚接口,并配置 ips3550(config-if)#ip address 172. 16. 1. 1 255. 255. 255. 0s3550(config-if)#no shutdown2、验证测试:s3550#show vlanvlan namestatus ports1 defaultstatic10 vlanlostaticfao/2 、 fao/3 fao/5 fao/4 , fao/6 , fao/7 fao/8 , fao/9 ,fa0/10 fao/ll,fao/12,fao/13 fao/14,
7、 fao/15, fao/16 fao/17, fao/18, fao/19 fa0/20, fao/2l,fao/22 fao/23, fao/24fao/1s3550#show ip interfaceinterface:vl10description:vian10operstatus:upmanagementstatus:enabledprimary internetaddress: 172. 16.1.1/24broadcastaddress : 255. 255 255 255physaddressress:oodo. f8ff.8ab53、路由器基本配置ra(config)# in
8、terface fastothernot 1/0ra (config-if) # ipaddress 172. 16. 2.2 255. 255. 255. 0ra(config-if)# no shutdownra(config-if)#exitra(config)# interface fastothernet 1/1ra (config-if)# ipaddress 172. 16. 3. 1 255. 255. 255. 0ra(config-if)# no shutdownrb(config)# interface fastothernet 1/1rb(config-if)# ipa
9、ddress 172. 16. 4. 1 255. 255. 255. 0rb (config-if)# no shutdownrb(config-if)#exitrb(config)# interface fastethernet 1/0rb(config-if)# ipaddress 172. 16. 3.2 255. 255. 255. 0rb (config-if)# no shutdown4、验证测试:验证路由器接口的配置和状态。ra#show ip interface briefstatusinterfaceip-addressress(pri)ok?serial 1/2seria
10、l 1/0fastethernct 1/0fastethernet 1/1null 0noaddressnoaddress172. 16. 2. 2/24172. 16. 3. 1/24noaddressyesdownyesdownyesupyesupyesuprb#show ip interface briefinterface serial 1/2 serial 1/0 fastethernet 1/0 fastethernet 1/1 null 0ip-addressress(pri)noaddressnoaddress172. 16. 3. 2/24172. 16. 4. 1/24no
11、addressyesok?statusyesdownyesupyesupdownyesup5、配置rip v2路由协议。s3550配置rip协议!开启rip协议进程!申明本设备的直连网段!定义rip协议v2!关闭路由信息的自动汇总功能s3550(config)#router rips3550(conf i g-router)ttnetwork 172. 16. 1. 0s3550(confi g-router)ttnetwork 172.16. 2. 0s3550(config-router)#version 26、ra配置ripv2协议ra(config)# router ripra(con
12、fig-router)#network ra(config-router)network ra(config-router)ttversion2ra(config-router)#no auto-summary7、rb配置rip协议rb(config)# router riprb (config-router)tfnetwork 172.16.3. 0rb(conf ig-router)#network 172. 16. 4. 0rb(config-router)#version2rb (confi g-router)#no auto-summary&a
13、mp;验证三台路由设备的路由表,查看是否自动学习了其他网段的路由信息。s3550#show ip routetype: c - connected, s - static, r - rtp, 0 - ospf, ta - ospf inter arean1 - ospf nssa external type 1, n2 - ospf nssa external type 2el - ospf external type 1, e2 - ospf external type 2type destination tpnext hopinterfacedistancemetricstatusc172
14、. 16. 1. 0/240. 0. 0. 0vl1000activer172. 16. 3. 0/24172. 16. 1. 1vl101202activer172. 16. 4. 0/24172. 16. 1. 1vl101203activec172. 16. 2. 0/240. 0. 0. 0vl5000activeraftshow ip routecodes: c - connected, s - static, r - rip0 - ospf, ia - ospf inter arean1 - ospf nssa external type 1, n2 - ospf nssa ext
15、ernal type 2el - ospf external type 1, e2 - ospf external type 2 * 一 candidate defaultgateway of last resort is no setccccrr172. 16. 2. 0/24172. 16. 2. 2/32172. 16. 3. 0/24172. 16. 3. 1/32172. 16. 1. 0/24172. 16. 4. 0/24isisisisdirectly connected, fastethernet 1/0 local host.directly connected, fast
16、ethernet 1/1 local host.120/1 via , 00:00:01, fastethernet 1/0120/1 via 172. 16. 2. 2, 00:00:21, fastethernet 1/1rb#show ip routecodes: c - connected, s - static, r - rip0 - ospf, ia - ospf inter arean1 - ospf nssa external type 1, n2 - ospf nssa external type 2el - ospf external type 1, e
17、2 - ospf external type 2* 一 candidate defaultgateway of last resort is no setccccrr172. 16. 3. 0/24172. 16. 3. 2/32172. 16. 4. 0/24172. 16.4. 1/32172. 16. 1. 0/24172. 16. 2. 0/24isisisisdirectly connected, fastethernet 1/0 local host.directly connected, fastethernet 1/1 local host.120/1 via 172.16.
18、1.2, 00:00:01, fastethernet 1/0120/1 via 172. 16. 2. 2, 00:00:21, fastethernet 1/09、测试网络的连通性:c:>ping 172. 16. 4.2!从吒1 ping pc2【注意事项】1、在串口上配置时钟频率时,一定耍在电缆dce端的路由器上配置,否则链路不通。2、no auto-summary 功能只有在 ripv2 支持。3、s3550-24 没有 no auto-summary 命令。4、pc主机网关一定要指向直连接口 tp地址,例如pc1网关指向三层交换机vlan50的 ip地址。(二)ospf单区域
19、【项目名称】ospf单区域基本配置。【项目教学目的】掌握在路由器上配置ospf单区域。【项目背景描述】假设校园网通过1台三层交换机连到校园网出口路由器,路由器再和校园外的另1台路 由器连接,现要做适当的配置,实现校园网内部主机与校园网外部主机能够相互通信。本项冃以两台r1762路由器、1台三层交换机为例。s3550上划分vlan 10和vlan50, 其中vlan10用于连接ra, vlan50用于连接校园网内部主机。路由器分别命名为r&和rb,路由器之间的串口通过v35 dce/dte电缆连接,其中dce 端连接到ra (r1762)上。pc1的ip地址和缺省网关分别为172. 16
20、. 1. 2和172. 16. 1. 1, pc2的ip地址和缺省网 关分别为 172. 16. 4. 2 和 172. 16. 4. 1,子网掩码都是 255. 255. 255. 0。【知识链接】1、ospf (open shortest path first,开放式最短路径优先)协议,是目前网络中应 用最广泛的动态路由协议之一。属于内部网关路由协议,能够适应各种规模的网络环境, 是典型的链路状态(link-state)协议。2、ospf路由协议通过向全网扩散本设备的链路状态信息,使网络屮每台设备共享一个 具有全网链路状态的数据库(lsdb),然后路由器采用spf算法,以自己为根,计算到达
21、其 他网络的最短路径,最终形成全网路由信息。3、ospf屈于无类路由协议,支持vlsm (变长子网掩码)。ospf是以组播的形式进行链 路状态的通告的。4、在大模型的网络环境中,ospf还支持区域的划分,将网络进行合理规划。划分区域 时必须存在areao (骨干区域)。其他区域和骨干区域直接相连,或通过虚链路的方式连接。【项目技能要求】学会实现网络的互连互通,从而实现信息的共享和传递。【完成项目所需设备】s3550 (1台)、r1762路由器(两台)、v35线缆(1根)、交叉线或直连线(1条)/24pcis3750:vian 10pc2【项目拓扑】f1/
22、os1/3-i72.i6.3.1 卜1/0=s1/3rvlan1o172.16f0/5- 172.16.2注:路由器和主机连接时,需要使用交叉线,r1762的以太网接口支持mdt/mdtx,使用 直连线也可以连通。rb的s1/3为dce接口。【项目实施步骤】 基本配置:1、三层交换机基本配置swi tch#configure terminalswitch (config)tthostname s3550s3550 (config)#vlan 10s3550 (config-vlan)#exits3550(config
23、)#interface fo/1s3550(config-if)#switchport access vlan 10s3550(config-if)#exits3550(config)#interface fo/2s3550(config-if)#no swi tchports3550(config-if)# ipaddress 172. 16. 1. 1 255. 255. 255. 0s3550(config-if)#no shutdowns3550(config)#interface vlsn 10!创建 vlan 虚接口,并配置 ips3550 (conf i g-if) #ipadd
24、ress 172. 16. 2. 1 255. 255. 255. 0s3550 (config-if)#no shutdown!激活端口s3550(config-if)#exit2、验证测试:1defaultstaticfao/2 , fao/310vlanlofao/4 , fao/6 ,fao/7fao/8 , fao/9 , fa0/10fao/ll,fao/12, fao/13fao/14, fao/15, fao/16fao/17, fao/18, fao/19fa0/20, fao/2l,fao/22fao/23, fao/24staticfa0/lstatus portss35
25、50#show ip interfaceinterface:vl10description:vian 10operstatus:upmanagemcntstatus:enabledprimary tnternetaddress:172. 16. 1. 1/24broadcastaddress : 255-255-255.255s3550#show vlanvlan name:oodo. f8ff. 8ab5physaddressress3、路由器基木配置ra(config)# interface fastethernet 0/1ra(config-if)# ipaddress 172. 16.
26、 2. 2 255- 255. 255. 0 ra(config-if)# no shutdownra(conf i g-if)#exitra(config)# interface serial 1/2ra(config-if)# ipaddress 172. 16. 3. 1 255. 255. 255. 0ra(config-if)# clock rate 64000ra(config-if)# no shutdownrb(config)# interface fastethernet 0/1rb(config-if)# ipaddress 172. 16. 4. 1 255. 255.
27、255. 0rb(config-if)# no shutdownrb(config-if)#exitrb(config)# interface serial 1/2rb(config-if)# ipaddress 172. 16. 3. 2 255. 255. 255. 0 rb(config-if)# no shutdown4. 验证测试:验证路rh器接口的配置和状态。rattshow ip interface brief interfaceserial 1/3serial 1/0fastethernet 0/1faste themet 1/1rb#show ipinterface brie
28、ftp-addressress(pri)0k?status172. 16. 3. 1/24yesupnoaddressyesdown172. 16. 2. 2/24yesupnoaddressyesdownnoaddressyesupnull 0interfaceserial 1/3serial 1/0fastethernet 0/1faste themet 1/1null 05、配置ospf路由协议。s3550 配置 ospfs3550(config)#router ospftp-addressress(pri)0k?status172. 16. 3. 2/24yesupnoaddressy
29、esdown172. 16. 4. 1/24yesupnoaddressyesdownnoaddressyesups3550(conig-router)#networks3550(config-router)#networks3550(config-router)#endra配置ospfra(config)# router ospf!开启ospf路由协议进程并分配区域号172. 16. 1.0 0. 0. 0. 255 area 0!申请直连网段信息,172. 16. 2. 0 0. 0. 0. 255 area 0ra(confi g-router)networkra(config-rout
30、er)#network ra(config-router)#ondrb配置ospfrb(config)#router ospfrb (config-router)#network rb (config-router)#network rb (config-router) #end172. 16. 2.0172. 16. 3.0172. 16. 4.0172. 16. 5.00. 0. 0. 255 area 00. 0. 0. 255 area 00. 0. 0. 255 area 00. 0. 0. 255 area 06、查看验证三台路由设备的路由表,查看是否口动学习了其他网段的路由信息。
31、s3550#show ip routetype: c - connected, s - static, r - rip, 0 - ospf, ia - ospf inter arean1 - ospf nssa external type 1, n2 - ospf nssa external type 2el - ospf external type 1, e2 - ospf external type 2type dost ination ipnext hopinterfacedistance metricstatusc172. 16. 1.0/240. 0. 0. 0vl1000activ
32、e0172. 16. 4. 0/24172. 16. 1. 1vl1011051active0172. 16. 3. 0/24172. 16. 1. 1vl1011052activec172. 16. 2. 0/240. 0. 0. 0vl5000activera#show ip routecodes: c -connected, s - static, r -rip0 -ospe, ia - ospf inter arean1-ospf nssa external type 1,n2 - ospf nssa external type 2el-ospf external type 1, e2
33、 -ospf externa type 2* -candidate defaultgateway of last resort is no setc 10 1.1.2/32 is directly connected, serial 1/2c 172.16. 2. 0/24 is directly connected, fastethernet 1/0c 172. 16.2.2/32 is local host.c c00rb#172. 16. 3. 0/24172. 16. 3. 1/32172. 16. 1. 0/24172. 16. 4. 0/24 show ip routeis di rectly connected, serial 1/2is local110/51 via 172. 16. 1.2, 00:00:01, fastethernet 1/0110/51 via 172. 16.2. 2, 00:00:21, serial 1/2host.codes: c - connected, s - static, r - rtp0 - ospf, ia - o
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025版蔬菜采摘与快速运输一体化服务合同
- 2025房地产合同数据安全与隐私保护及合规检查合同
- 2025年度大型矿山资源承包开发合作协议
- 2025版汽车音响配件批发合作协议
- 2025房地产租赁权转租合同补充协议
- 2025年度政府公文翻译服务合同
- 2025版纺织品行业节能减排项目合同
- 2025版信息技术项目上岗服务合同书
- 2025年新能源充电站租赁合同及运营维护服务协议
- 2025年智能家居玻璃配件购销合同模板
- 定密管理制度
- 幕墙吊装方案计算书
- 绿豆芽成长记-A4打印版
- 3D打印技术教程
- 食材配送投标方案(技术方案)
- 佩戴腰围护理规范
- 建设工程质量检测人员考试:建设工程质量检测人员真题模拟汇编(共906题)
- 中国地理(第二版)赵济王静爱
- 【课件】等差数列的概念2说课课件-2022-2023学年高二上学期数学人教A版(2019)选择性必修第二册
- 前交叉韧带损伤PPT
- 水利工程建设单位管理工作报告
评论
0/150
提交评论