拓扑图:
配置如下
R1:
int f0/0
ip add 172.19.35.2 255.255.255.128
no shut
int s0/0
ip add 172.19.35.205 255.255.255.252
no shut
router rip
version 2
no auto-summary
network 172.19.0.0
R2:
int s0/0
ip add 172.19.35.206 255.255.255.252
no shut
int lo0
ip add 172.19.35.91 255.255.255.224
router rip
version 2
no auto-summary
network 172.19.0.0
R3:
int f0/0
ip add 172.19.35.1 255.255.255.128
no shut
测试如下:
ping包第一个通后面的不通,见图
抓包测试如下
1:完整包
第一个ping通原因:arp广播得到了正确的mac,如图标记的地方
第一个arp正确的主机响应了,所以ping通,后面由于R1的代理arp响应,覆盖了前面正确的mac缓存,导致ping不通,代理arp的响应慢一些,下面的mac是R1 f0/0接口的mac地址
转载于:https://blog.51cto.com/heisebeileimao/657490