收藏 分销(赏)

icmp重定向实验.doc

上传人:s4****5z 文档编号:8729047 上传时间:2025-02-28 格式:DOC 页数:4 大小:56KB
下载 相关 举报
icmp重定向实验.doc_第1页
第1页 / 共4页
icmp重定向实验.doc_第2页
第2页 / 共4页
点击查看更多>>
资源描述
实验三 配置ICMP重定向     2、实验过程 r1(config)#int f0/0 r1(config-if)#ip add 10.1.1.1 255.255.255.0 r1(config-if)#no shut r1(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.2 r2(config)#int f0/0 r2(config-if)#ip add 10.1.1.2 255.255.255.0 r2(config-if)#no shut r2(config-if)#int f0/1 r2(config-if)#ip add 24.1.1.2 255.255.255.0 r2(config-if)#no shut r3(config)#int f0/0 r3(config-if)#ip add 10.1.1.3 255.255.255.0 r3(config-if)#no shut r3(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.1 r4(config)#int f0/1 r4(config-if)#ip add 24.1.1.4 255.255.255.0 r4(config-if)#no shut r4(config)#ip route 0.0.0.0 0.0.0.0 24.1.1.2 测试实验效果:在R3上ping24.1.1.4 r3#debug ip icmp ICMP packet debugging is on r3#ping 24.1.1.4   Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 24.1.1.4, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 12/69/184 ms r3# *Aug 2 15:10:42.475: ICMP: redirect rcvd from 10.1.1.1- for 24.1.1.4 use gw 10.1.1.2 *Aug 2 15:10:42.519: ICMP: echo reply rcvd, src 24.1.1.4, dst 10.1.1.3 *Aug 2 15:10:42.599: ICMP: echo reply rcvd, src 24.1.1.4, dst 10.1.1.3 *Aug 2 15:10:42.659: ICMP: echo reply rcvd, src 24.1.1.4, dst 10.1.1.3 *Aug 2 15:10:42.675: ICMP: echo reply rcvd, src 24.1.1.4, dst 10.1.1.3 *Aug 2 15:10:42.687: ICMP: echo reply rcvd, src 24.1.1.4, dst 10.1.1.3 现在在R3 上的默认路由改为出接口看看效果 r3(config)#no ip route 0.0.0.0 0.0.0.0 10.1.1.1 r3#ping 24.1.1.4   Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 24.1.1.4, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 24/72/104 ms r3# *Aug 2 15:17:55.819: ICMP: echo reply rcvd, src 24.1.1.4, dst 10.1.1.3 *Aug 2 15:17:55.923: ICMP: echo reply rcvd, src 24.1.1.4, dst 10.1.1.3 *Aug 2 15:17:55.983: ICMP: echo reply rcvd, src 24.1.1.4, dst 10.1.1.3 *Aug 2 15:17:56.003: ICMP: echo reply rcvd, src 24.1.1.4, dst 10.1.1.3 r1(config)#int f0/0             r1(config-if)#no ip redirects//关闭重定向,开启命令是在接口下ip redirects 注:在接口开启HSRP后,默认是关闭重定向的功能,可以手工开启
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传
相似文档                                   自信AI助手自信AI助手

当前位置:首页 > 百科休闲 > 社会民生

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2025 宁波自信网络信息技术有限公司  版权所有

客服电话:4009-655-100  投诉/维权电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服