您的位置:首页 > 理论基础 > 计算机网络

TCP/IP 4.2.4 不连续子网

2012-04-13 22:41 148 查看
哭泣
心里酸楚
即使勇敢
也先让我流下眼泪

4.2.4 不连续子网
实验
这个就是实验见真章
配置和net文件 请见附件
TOP



做这个实验有点是要注意的
Cisco的路由器默认是开启了cef的模式,你这个地方想要看到实验效果是要打开进程交换

Andy#debug ip icmp
ICMP packet debugging is on
Andy#ping 10.33.5.1 rep
Andy#ping 10.33.5.1 repeat 8

Type escape sequence to abort.
Sending 8, 100-byte ICMP Echos to 10.33.5.1, timeout is 2 seconds:
!U! .!U! .
*Apr 13 15:27:52.383: ICMP: echo reply rcvd, src 10.33.5.1, dst 192.168.83.1
*Apr 13 15:27:52.395: ICMP: dst (192.168.12.195) host unreachable rcv from 192.168.12.196
*Apr 13 15:27:52.403: ICMP: echo reply rcvd, src 10.33.5.1, dst 192.168.83.1
*Apr 13 15:27:54.431: ICMP: echo reply rcvd, src 10.33.5.1, dst 192.168.83.1
*Apr 13 15:27:54.439: ICMP: dst (192.168.12.195) host unreachable rcv from 192.168.12.196
*Apr 13 15:27:54.443: ICMP: echo reply rcvd, src 10.33.5.1, dst 192.168.83.1
Success rate is 50 percent (4/8), round-trip min/avg/max = 4/13/24 ms
Andy#

分析画图看下



配置要注意的地方

Barney(config-router)#int f0/0
Barney(config-if)#no ip cef
Barney(config)#int lo0
Barney(config-if)#no ip cef
Barney(config)#int f0/0
Barney(config-if)#no ip route-cache
Barney(config-if)#int lo0
Barney(config-if)#no ip route-ca

Andy(config-router)#int f0/0
Andy(config-if)#no ip cef
Andy(config)#int lo0
Andy(config-if)#no ip cef
Andy(config)#int f0/1
Andy(config-if)#no ip cef
Andy(config)#int f0/0
Andy(config-if)#no ip route-cache
Andy(config-if)#int f0/1
Andy(config-if)#no ip route-cache
Andy(config-if)#int lo0
Andy(config-if)#no ip route-cache

Ernst_T(config-router)#int f0/1
Ernst_T(config-if)#no ip cef
Ernst_T(config)#int lo0
Ernst_T(config-if)#no ip cef
Ernst_T(config)#int f0/1
Ernst_T(config-if)#no ip route-cache
Ernst_T(config-if)#int lo0
Ernst_T(config-if)#no ip route-ca





解决这个问题的方法
在路由器上配置辅助地址
原有的逻辑网络结构依然保留,只是在其网络上叠加了一个连续的网络
路由选择进程会将辅助地址看做是单独的数据链路。



配置
Andy#sh run | be rip
router rip
network 10.0.0.0
network 192.168.12.0
network 192.168.83.0

查看路由表





Andy#ping 10.33.5.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.33.5.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/21/44 ms
Andy#
*Apr 13 17:11:45.563: ICMP: echo reply rcvd, src 10.33.5.1, dst 192.168.83.1
*Apr 13 17:11:45.611: ICMP: echo reply rcvd, src 10.33.5.1, dst 192.168.83.1
*Apr 13 17:11:45.623: ICMP: echo reply rcvd, src 10.33.5.1, dst 192.168.83.1
*Apr 13 17:11:45.639: ICMP: echo reply rcvd, src 10.33.5.1, dst 192.168.83.1
*Apr 13 17:11:45.643: ICMP: echo reply rcvd, src 10.33.5.1, dst 192.168.83.1
Andy#

附件:http://down.51cto.com/data/2360289
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息