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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了1.1-PC1无默认网关/Proxy-ARP(代理ARP)相关的知识,希望对你有一定的参考价值。

1、实验拓扑:
技术分享图片

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

3、验证:
(1)默认开启代理:
R2#debug arp
ARP packet debugging is on
PC1#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/0
Mar 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 arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 3.3.3.3 3 c002.3430.0000 ARPA FastEthernet0/0
Internet 12.1.1.1 - c001.1858.0000 ARPA FastEthernet0/0

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

PC1#ping 3.3.3.3
Type 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

技术分享图片

以上是关于1.1-PC1无默认网关/Proxy-ARP(代理ARP)的主要内容,如果未能解决你的问题,请参考以下文章

Juniper交换机PROXY-ARP问题排错思路整理

通过 API 网关为无服务器架构模型代理端点设置 CORS

网关代理转发异常

win7怎么把默认网关ipv6改为ipv4

1-????????????Proxy-ARP

“502错误网关,服务器作为网关或代理,从上游服务器收到了无效的响应”怎么处理?谁能帮我?