静态路由&默认路由试验笔记
分类:思科技术日期:2011-06-23 - 21:10:40评论:7条作者:老谢
R1:192.168.1.1 255.255.255.0 fa 0/0
R2:192.168.2.1 255.255.255.0 fa 0/0
R2:192.168.3.1 255.255.255.0 fa 1/0
R3:192.168.4.1 255.255.255.0 fa 0/0
R1(config)#ip route 192.168.2.0 255.255.255.0 fastEthernet 0/0 R1(config)#ip route 192.168.3.0 255.255.255.0 fastEthernet 0/0 R1(config)#ip route 192.168.4.0 255.255.255.0 fastEthernet 0/0 R2(config)#ip route 192.168.1.0 255.255.255.0 fastEthernet 0/0 R2(config)#ip route 192.168.4.0 255.255.255.0 fastEthernet 1/0 R3(config)#ip route 192.168.3.0 255.255.255.0 fastEthernet 0/0 R3(config)#ip route 192.168.1.0 255.255.255.0 fastEthernet 0/0 R3(config)#ip route 192.168.2.0 255.255.255.0 fastEthernet 0/0 |
此时R1 ping 192.168.2.1、192.168.3.1、192.168.4.1,均可正常通信
删除R1和R2上的静态路由,配置默认路由
R1(config)#ip route 0.0.0.0 0.0.0.0 fastEthernet 0/0 R3(config)#ip route 0.0.0.0 0.0.0.0 fastEthernet 0/0 |
此时R1 ping 192.168.2.1、192.168.3.1、192.168.4.1,此时也均可正常通信
最新评论
秦大叔:现在都是够用就好,不想太折腾了。
Andy烧麦:X1C 5th 2017年-2022年,走南闯北...
王叨叨:自从换了typecho,博客也不怎么出问...
王叨叨:我准备给我的老笔记本搞一个linux系...
大D:台式机现在只能是AMD YES!
springwood:查询了一下,ThinkPad x1c 9th ...
黑石:特斯拉和小米,选哪个?不是很懂车,就...
Huo:电车的确开着舒服,也是纠结想换电车,...
zwwooooo:类似以前做网站开发时,一开始有自...
老陳网志:有点高端,像我们整点nas玩玩就够...