静态路由&默认路由试验笔记
分类:思科技术日期: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,此时也均可正常通信
最新评论
zwwooooo:类似以前做网站开发时,一开始有自...
老陳网志:有点高端,像我们整点nas玩玩就够...
springwood:自从 CentOS 不维护之后,我换 U...
大D:难都搞下来了,那就更得YM了
大D:只能是YM了,谢总牛啊
灰常记忆:经济不好 今年我也换了机器 一...
大峰:这是海外服务器嘛?速度挺快的。
大D:只能单走一个6了哈哈哈
zwwooooo:买特斯拉和买iPhone的人群其实相似...
平安家属子痕:一直坚持油车,看你写的心里有...