




免费预览已结束,剩余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中国移动山东公司高层次人才招聘笔试题库历年考点版附带答案详解版
- 2025年数字化农业行业数字化农业发展与智慧农业研究报告
- 2025年消化科常见消化道疾病鉴别诊断模拟考试卷答案及解析
- 2025年泌尿外科常见手术并发症处理模拟测试答案及解析
- 2025年文化遗产产业行业文化旅游发展策略分析报告
- 2025年旅游酒店行业智能酒店服务领域探索报告
- 2025年智能农业行业农业科技发展与智慧农业技术应用研究报告
- 2025年农业种植行业精准农业技术应用研究报告
- 停车位买卖合同电子版
- ISO15614-1 2017 金属材料焊接工艺规程及评定(中文版)
- 2024年安徽九华山旅游发展股份有限公司招聘笔试参考题库附带答案详解
- B级英语词汇表修改版
- 2024年山西省成考(专升本)大学政治考试真题含解析
- 最高法院第一巡回法庭关于行政审判法律适用若干问题的会议纪要
- 足球场的运营可行性方案
- GB/T 2881-2023工业硅
- 有限合伙份额质押合同完整版(包含质押登记公证手续)
- GB/T 43299-2023机动车玻璃电加热性能试验方法
- 马工程经济法学教学
评论
0/150
提交评论