CCNA实验二:手动建立静态路由表


HQ>en
HQ>enableHQ#conf tEnter configuration commands, one per line. End with CNTL/Z.HQ(config)#int e0/0HQ(config-if)#no shutHQ(config-if)#no shutdownHQ(config-if)#ip addHQ(config-if)#ip address 172.16.1.100 255.255.255.248HQ(config-if)#exiHQ(config)#int e0/1HQ(config-if)#no shuHQ(config-if)#no shutdownHQ(config-if)#ip adHQ(config-if)#ip addHQ(config-if)#ip address 192.168.1.2 255.255.255.252HQ(config-if)#exiHQ(config)#exi*Sep 14 16:38:30.401: %SYS-5-CONFIG_I: Configured from console by consoleHQ#show ip route //显示路由表Codes: L – local, C – connected, S – static, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, 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, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2 ia – IS-IS inter area, * – candidate default, U – per-user static route o – ODR, P – periodic downloaded static route, H – NHRP, l – LISP a – application route + – replicated route, % – next hop override
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masksC 172.16.1.96/29 is directly connected, Ethernet0/0L 172.16.1.100/32 is directly connected, Ethernet0/0 192.168.1.0/24 is variably subnetted, 2 su免费云主机域名bnets, 2 masksC 192.168.1.0/30 is directly connected, Ethernet0/1L 192.168.1.2/32 is directly connected, Ethernet0/1HQ#conf tEnter configuration commands, one per line. End with CNTL/Z.HQ(config)#ip route 10.1.10.16 255.255.255.240 e0/1 //将10.1.10.16放入路由表,通过e0/1通信HQ(config)#exiHQ#*Sep 14 16:59:32.032: %SYS-5-CONFIG_I: Configured from console by consoleHQ#ping 10.1.10.23Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.1.10.23, timeout is 2 seconds:.!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms //ping通目标地址HQ#show ip route //显示修改过的路由表Codes: L – local, C – connected, S – static, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, 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, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2 ia – IS-IS inter area, * – candidate default, U – per-user static route o – ODR, P – periodic downloaded static route, H – NHRP, l – LISP a – application route + – replicated route, % – next hop override
Gateway of last resort is not set
10.0.0.0/28 is subnetted, 1 subnetsS 10.1.10.16 is directly connected, Ethernet0/1 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masksC 172.16.1.96/29 is directly connected, Ethernet0/0L 172.16.1.100/32 is directly connected, Ethernet0/0 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.1.0/30 is directly connected, Ethernet0/1L 192.168.1.2/32 is directly connected, Ethernet0/1HQ#

在另一台路由器Branch上进行相同配置,即可实现互相访问,注意掩码
相关设置:HQ: e0/1 192.168.1.2 255.255.255.252 e0/0 172.16.1.100 255.255.255.248Branch: e0/1 192.168.1.1 255.255.255.0 e0/0 10.1.10.23 255.255.255.240
重要命令:show ip route 显示路由表 ip route + ip地址 +掩码 手工设置静态路由表
注:当使用 ip route + ip地址 +掩码 命令手工设置静态路由表时,此处ip地址应写箭头处地址,而非local ip地址。

相关推荐: ftp web相关配置

总环境:打开服务机和客户机,将两台机器设置为同一网络段并使之能够ping通,设置FTP【web】角色服务勾选FTP验证基本与匿名身份验证:在D盘设置文件【ftp】并在文件夹中新建文件【ntd1、ntd2】设置FTP-选择网站-右键新建FTP站点设置站点信息-设…

免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。

(0)
打赏 微信扫一扫 微信扫一扫
上一篇 01/28 17:51
下一篇 01/28 17:51