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
心里酸楚
即使勇敢
也先让我流下眼泪
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
相关文章推荐
- TCP/IP 5.3.4不连续的子网和无类别路由选择
- 了解 TCP/IP 寻址和子网配置基础知识
- TCP/IP笔记 二.网络层(1)——IP,子网,CIDR
- 【TCP/IP】子网掩码与子网划分
- Linux网络管理员手册(2) 第二章 TCP/IP网络的问题 IP地址 子网(Subnetworks) 域名服务器 解析
- VB的winsock(TCP/IP)连续发送数
- TCP/IP笔记一:判断子网类型的几个宏
- TCP/IP 4.2.4控制RIP的度量
- TCP/IP 构成子网
- TCP/IP笔记 二.网络层(1)——IP,子网,CIDR
- SQL Server 2005 出现到主机 的 TCP/IP 连接失败
- linux网络编程之TCP/IP基础(二):利用ARP和ICMP协议解释ping命令
- 图灵喜获Stevens名著《TCP/IP Illustrated》影印版权
- Android Socket(TCP/IP) 通信
- 无状态TCP的ip_conntrack
- Python socket网络编程TCP/IP服务器与客户端通信
- TCP/IP之五:traceroute程序
- TCP/IP的四元组、五元组、七元组
- 在 Windows Vista 和 Windows Server 2008 中,TCP/IP 的默认动态端口范围已更改
- 基于TCP/IP的手机聊天游戏(附带源码和解释)之共享类