




已阅读5页,还剩9页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
现在RA上配置基础信息Routerenable /进入特权模式Router#config /进入配置模式Router_config#hostname RA /更改设备名称RA_config#int fastEthernet 0/0 /进入端口RA_config_f0/0#ip address 192.168.0.2 255.255.255.0【设置IP地址和掩码】RA_config_f0/0#no shutdown /开启端口RA_config_f0/0#exit /退出RA_config#int gigaEthernet 0/3RA_config_g0/3#ip address 192.168.1.1 255.255.255.0RA_config_g0/3#no shutdown RA_config_g0/3#exit在RB上配置基础信息RouterenableRouter#config Router_config#hostname RBRB_config#int gigaEthernet 0/3RB_config_g0/3#ip address 192.168.1.2 255.255.255.0RB_config_g0/3#no shutdown RB_config_g0/3#exitRB_config#int fastEthernet 0/0RB_config_f0/0#ip address 192.168.2.2 255.255.255.0RB_config_f0/0#no shutdown RB_config_f0/0#exit在RSW1上配置基础信息DCRS-5650-28(R4)enable /进入特权模式DCRS-5650-28(R4)#config /进入配置模式DCRS-5650-28(R4)(config)#hostname RSW1 /更改设备名称RSW1(config)#vlan 100 /创建vlan100RSW1(config-vlan100)#exit /退出RSW1(config)#int ethernet 1/0/1 /进入端口RSW1(config-if-ethernet1/0/1)#switchport access vlan 100Set the port Ethernet1/0/1 access vlan 100 successfully【将该端口填加到vlan100】RSW1(config-if-ethernet1/0/1)#exit /退出RSW1(config)#interface vlan 100 /进入vlan100RSW1(config-if-vlan100)#ip address 192.168.0.1 255.255.255.0【设置IP地址和掩码】RSW1(config-if-vlan100)#exit /退出RSW1(config)#exitRSW1#RSW1#ping 192.168.0.2Type c to abort.Sending 5 56-byte ICMP Echos to 192.168.0.2, timeout is 2 seconds.!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/3/16 ms这时候测试一下,ping路由器连接交换机的口的IP地址,肯定能ping通,ping不通就代表你配置错了,或者没插线,或者网线坏了DCRS-5650-28(R4)enable DCRS-5650-28(R4)#config DCRS-5650-28(R4)(config)#hostname RSW2RSW2(config)#vlan 200RSW2(config-vlan200)#exitRSW2(config)#int ethernet 1/0/1RSW2(config-if-ethernet1/0/1)#switchport access vl 200Set the port Ethernet1/0/1 access vlan 200 successfullyRSW2(config-if-ethernet1/0/1)#exitRSW2(config)#interface vlan 200RSW2(config-if-vlan200)#ip address 192.168.2.1 255.255.255.0RSW2(config-if-vlan200)#exitRSW2(config)#exitRSW2#ping 192.168.2.2Type c to abort.Sending 5 56-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds.!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/3/16 ms设置RIP动态路由RSW2(config)#router rip /启用RIP协议 RSW2(config-router)#ver 2 /版本号为ver2RSW2(config-router)#show ip route /查看路由表Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate defaultC 127.0.0.0/8 is directly connected, Loopback tag:0C 192.168.2.0/24 is directly connected, Vlan200 tag:0Total routes are : 2 item(s)RSW2(config-router)#network 192.168.2.0/24 /宣告网段RSW2(config-router)#exit /退出在RB上配置RIP动态路由RB_config#router ripRB_config_rip#ver 2RB_config_rip#show ip routeCodes: C - connected, S - static, R - RIP, B - BGP, BC - BGP connected D - BEIGRP, DEX - external BEIGRP, O - OSPF, OIA - OSPF inter area ON1 - OSPF NSSA external type 1, ON2 - OSPF NSSA external type 2 OE1 - OSPF external type 1, OE2 - OSPF external type 2 DHCP - DHCP type, L1 - IS-IS level-1, L2 - IS-IS level-2VRF ID: 0C 192.168.1.0/24 is directly connected, GigaEthernet0/3C 192.168.2.0/24 is directly connected, FastEthernet0/0RB_config_rip#network 192.168.1.0 255.255.255.0RB_config_rip#network 192.168.2.0 255.255.255.0RB_config_rip#exit在RA上配置动态路由RA_config#router ripRA_config_rip#ver 2RA_config_rip#show ip routeCodes: C - connected, S - static, R - RIP, B - BGP, BC - BGP connected D - BEIGRP, DEX - external BEIGRP, O - OSPF, OIA - OSPF inter area ON1 - OSPF NSSA external type 1, ON2 - OSPF NSSA external type 2 OE1 - OSPF external type 1, OE2 - OSPF external type 2 DHCP - DHCP type, L1 - IS-IS level-1, L2 - IS-IS level-2VRF ID: 0C 192.168.0.0/24 is directly connected, FastEthernet0/0C 192.168.1.0/24 is directly connected, GigaEthernet0/3RA_config_rip#network 192.168.0.0 255.255.255.0RA_config_rip#network 192.168.1.0 255.255.255.0RA_config_rip#exit在RSW1上配置RIP动态路由RSW1(config)#router ripRSW1(config-router)#ver 2RSW1(config-router)#show ip routeCodes: K - kernel, C - connected, S - static, R - RIP, B - BGP O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate defaultC 127.0.0.0/8 is directly connected, Loopback tag:0C 192.168.0.0/24 is directly connected, Vlan100 tag:0Total routes are : 2 item(s)RSW1(config-router)#network 192.168.0.0/24RSW1(config-router)#exit下面测试,由RSW1pingRSW2,能ping通代表路由成功了RSW1#ping 192.168.2.1Type c to abort.Sending 5 56-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds.!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms下面先来做RIP的文明,本端打上认证而对端没打上,路由过不来,ping不通,就代表认证生效了,ping通就代表失败之后把对端认证也打上,能ping通就代表做成了RSW1(config)#interface vlan 100 /先进入需要认证的vlan里面RSW1(config-if-vlan100)#ip rip authentication mode text 【敲上明文认证】RSW1(config-if-vlan100)#ip rip authentication string luyou【设置秘钥,对端要和这个一样】RSW1(config-if-vlan100)#exit /退出RSW1#ping 192.168.2.1Type c to abort.Sending 5 56-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds.!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 msRSW1#ping 192.168.2.1Type c to abort.Sending 5 56-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds.Success rate is 0 percent (0/5), round-trip min/avg/max = 0/0/0 ms一开始ping是通的,是因为还没有生效,大家多等会就可以,等个一两分钟足够了,也可以一直尝试,也可以把接口给shutdown再no shutdown下面做RA,RB,RSW2的明文认证RA_config#interface gigaEthernet 0/3RA_config_g0/3#ip rip authentication simple /选择明文认证RA_config_g0/3#ip rip password luyou /秘钥要一致RA_config_g0/3#exitRA_config#int fastEthernet 0/0RA_config_f0/0#ip rip authentication simpleRA_config_f0/0#ip rip password luyouRA_config_f0/0#exitRB_config#int gigaEthernet 0/3RB_config_g0/3#ip rip authentication simple RB_config_g0/3#ip rip password luyouRB_config_g0/3#exitRB_config#interface fastEthernet 0/0RB_config_f0/0#ip rip authentication simpleRB_config_f0/0#ip rip password luyouRB_config_f0/0#exitRSW2(config)#interface vlan 200RSW2(config-if-vlan200)#ip rip authentication mode text RSW2(config-if-vlan200)#ip rip authentication string luyouRSW2(config-if-vlan200)#exit下面ping RSW1应该是通的,然后RSW1再ping RSW2RSW2#ping 192.168.0.1Type c to abort.Sending 5 56-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds.!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 msRSW1#ping 192.168.2.1Type c to abort.Sending 5 56-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds.!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms证明明文认证成功了,下面做MD5认证,大家做的时候要删档,或者把明文认证NO掉,这里我就不写上了.下面做RSW1的MD5认证RSW1(config)#key chain 1 /建立钥匙环RSW1(config-keychain)#key 1 /创建一把钥匙RSW1(config-keychain-key)#key-string luyou /创建秘钥RSW1(config-keychain-key)#end /退出RSW1(config)#interface vlan 100 /进入vlanRSW1(config-if-vlan100)#ip rip authentication mode md5 【设置MD5认证】RSW1(config-if-vlan100)#ip rip authentication key-chain 1 【把配置模式下创建的钥匙环匹配到这里】 RSW1(config-if-vlan100)#exit之后ping RSW2应该是不通的,因为路由器和RSW2都没有做MD5认证下面做RA,RB,RSW2的MD5认证RA_config#int gigaEthernet 0/3RA_config_g0/3#ip rip authentication md5 /开启MD5认证RA_config_g0/3#ip rip md5-key 1 md5 luyou【跟交换机相对应的钥匙环【
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年中国红古豆醇酯栓行业市场规模及未来投资方向研究报告
- 阳泉市人民医院内镜质量控制指标解读与数据分析试题
- 2025年中国牡蛎碳酸钙项目商业计划书
- 2025年中国脲甲醛树脂(UF)项目投资计划书
- 上海市人民医院咽部肿瘤切除术技术考核
- 2025第三人民医院团队文化建设考核
- 2025年矿产地质堪查服务项目可行性分析报告
- 社交媒体营销策略在旅游行业的应用2025年研究报告
- 2025年五金机械加工及机电设备组装项目建设项目环境影响报告表【模板】
- 2025年天津市军队离休退休干部活动中心企业信用报告-天眼查
- 硅铁冶炼各工种安全操作规程
- 微生物实验室质量控制及质量保证 - 副本课件
- 《计算机网络基础》课件-OSI参考模型
- 消渴病症的应急护理
- 《ESD静电防护培训》课件
- 2025政治专升本考试题库(含参考答案)
- 2025年“雄鹰杯”小动物医师技能大赛备考试题库(含答案)
- 2015海湾消防JB-QB-GST200 火灾报警控制器(联动型)安装使用说明书
- 智能化劳务分包合同模板
- 2022年全国森林、草原、湿地调查监测技术规程-附录
- 《跟上兔子》绘本六年级第1季A-Big-Basketball-Fan教学课件
评论
0/150
提交评论