&10 静态路由动态路由RIP配置
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
静态路由和telnet远程登陆
选用Router2 Router1 Router4完成该实验,最后从Router2 telnet到Router4
一添加IP和改名
Router2配置:
Router#con t
Router2(config)#hostname Router2
Router2(config)#int F0/1
Router2(config-if)# ip address 192.168.1.10 255.255.255.0
Router2(config-if)#no shutdown
Router2(config-if)#ctrl+Z
Router2#ping 192.168.1.10
Router2#show ip route
Router2#copy run start
Router1配置:
Router#con t
Router1(config)#hostname Router1
Router1(config)#int f0/1
Router1(config-if)# ip address 192.168.1.20 255.255.255.0 Router1(config-if)#no shutdown
Router1(config-if)#int s0
Router1(config-if)# ip address 192.168.2.10 255.255.255.0 Router1(config-if)#bandwidth 5600
Router1(config-if)#no shutdown
Router1(config-if)#ctrl+Z
Router1#ping 192.168.1.10
Router1#ping 192.168.1.20
Router1#ping 192.168.2.10
Router1#show ip route
Router1#copy run start
Router4配置:
Router#con t
Router (config)#hostname Router4
Router4(config)#int s0
Router4(config-if)# ip address 192.168.2.20 255.255.255.0 Router4(config-if)#no shutdown
Router4(config-if)#ctrl+Z
Router4#ping 192.168.1.10
Router4#ping 192.168.1.20
Router4#ping 192.168.2.10
Router4#ping 192.168.2.20
Router4#show ip route
Router4#copy run start
二添加静态路由
Router2#con t
Router2(config)#
ip route 192.168.2.0 255.255.255.0 192.168.1.20 Router2#copy run start
Router4#con t
Router4(config)#
ip route 192.168.1.0 255.255.255.0 192.1682.10 Router4#copy run start
Router2#ping 192.168.1.10
Router2#ping 192.168.1.20
Router2#ping 192.168.2.10
Router2#ping 192.168.2.20
三telnet远程登陆设置
在被呼叫端设置enable password登陆密码
Router4(config)#enable password 123
在被呼叫端设置line vty 0 4 密码
Router4(config)#line vty 0 4
Router4(config-line)#password 123456
Router4(config-line)#login
Router4#copy run start
四:登陆
Router2#telnet 192.168.2.20
Router4#ctrl+shift+6-- X
五改用动态路由
Router2:
Router2(config)#no ip route 192.168.2.0 255.255.255.0 192.168.1.20 Router2(config)#router rip
Router2(config)#network 192.168.1.0
Router2#show ip route
Router2#copy run start
Router1:
Router1(config)#router rip
Router1(config)#network 192.168.1.0
Router1(config)#network 192.168.2.0
Router1#show ip route
Router1#copy run start
Router4:
Router4(config)#no ip route 192.168.2.0 255.255.255.0 192.168.2.10 Router4(config)#router rip
Router4(config)#network 192.168.1.0
Router4(config)#network 192.168.2.0
Router4#show ip route
Router4#copy run start
六 Router2#telnet 192.168.2.20。