1.1-PC1无默认网关/Proxy-ARP(代理ARP)

网友投稿 309 2022-09-28


1.1-PC1无默认网关/Proxy-ARP(代理ARP)

2、命令部署:PC1(config)#no ip default-gateway 12.1.1.2拓展:PC1(config)#default int int f0/0

3、验证:(1)默认开启代理:R2#debug arpARP packet debugging is onPC1#ping 3.3.3.3

R2#Mar 1 00:16:17.167: IP ARP: rcvd req src 12.1.1.1 c001.1858.0000, dst 3.3.3.3 FastEthernet0/0Mar 1 00:16:17.171: IP ARP: creating entry for IP address: 12.1.1.1, hw: c001.1858.0000*Mar 1 00:16:17.171: IP ARP: sent rep src 3.3.3.3 c002.3430.0000,dst 12.1.1.1 c001.1858.0000 FastEthernet0/0注意:可以看到3.3.3.3对应的MAC是:c002.3430.0000,这是R2 f0/0的接口MAC地址。证明:此过程是Proxy-ARP

PC1#show arpProtocol Address Age (min) Hardware Addr Type InterfaceInternet 3.3.3.3 3 c002.3430.0000 ARPA FastEthernet0/0Internet 12.1.1.1 - c001.1858.0000 ARPA FastEthernet0/0

(2)关闭代理功能:R2(config)#int f0/0R2(config-if)#no ip proxy-arp

PC1#ping 3.3.3.3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:.....Success rate is 0 percent (0/5)

R2#*Mar 1 00:56:05.231: IP ARP: rcvd req src 12.1.1.1 c001.1858.0000, dst 3.3.3.3 FastEthernet0/0


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:2-R1有默认网关:下一跳 Normal-ARP
下一篇:spring使用JavaConfig进行配置的方法
相关文章

 发表评论

暂时没有评论,来抢沙发吧~