1、测试R2 ping R3,观察ARP表。

配置命令:

R2#configure terminal
R2(config)#no ip routing     //关闭路由
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 12.12.12.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#ip default-gateway 12.12.12.1
---------------------------------------------------
R3#configure terminal
R3(config)#no ip routing     //关闭路由
R3(config)#interface fastEthernet 0/0
R3(config-if)#ip address 13.13.13.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#ip default-gateway 13.13.13.1
---------------------------------------------------
R1#configure terminal
R1(config)#int fastEthernet 0/0
R1(config-if)#ip address 12.12.12.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#int f 1/0
R1(config-if)#ip address 13.13.13.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#end
---------------------------------------------------
//查看静态路由表
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, FastEthernet0/013.0.0.0/24 is subnetted, 1 subnets
C       13.13.13.0 is directly connected, FastEthernet1/0
---------------------------------------------------
R1#ping 12.12.12.2       //测试连通性
..!!!
Success rate is 60 percent (3/5), round-trip min/avg/max = 12/18/28 ms
R1#ping 13.13.13.3      //测试连通性
..!!!
Success rate is 60 percent (3/5), round-trip min/avg/max = 16/21/2
---------------------------------------------------
R2#ping 13.13.13.3Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13.13.13.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/35/48 ms
R2#show arp
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  12.12.12.1             11   cc01.331c.0000  ARPA   FastEthernet0/0
Internet  12.12.12.2              -   cc02.37bc.0000  ARPA   FastEthernet0/0

结果&过程:

ping通,去往不同网段,送往网关,R1接到之后,查询路由表,13.13.13.0网段是直链路由条目,送往f1/0,这时R2的ARP表条目只有12网段的.1和.2的Mac

2、切断R1、R3之间的链路(R1的f1/0 shutdown),并删掉R1、R3的网关(no),测试R2 ping R3,观察ARP表。

配置命令:

R2(config)#no ip default-gateway 12.12.12.1
R3(config)#no ip default-gateway 13.13.13.1
R1(config)#int fastEthernet 1/0
R1(config-if)#shutdown
---------------------------------------------
R2#ping 13.13.13.1      //ping 网关Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13.13.13.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R2#
R2#ping 13.13.13.3Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13.13.13.3, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R2#show arp
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  13.13.13.1              0   Incomplete      ARPA
Internet  12.12.12.1             17   cc01.331c.0000  ARPA   FastEthernet0/0
Internet  13.13.13.3              0   Incomplete      ARPA
Internet  12.12.12.2              -   cc02.37bc.0000  ARPA   FastEthernet0/0

结果&过程:

肯定是不通的,但是这时R2的ARP表条目,有三条,13.3的条目Mac地址显示不完整(Incomplete )
这时肯定是因为R2没有网关,不同网段,没法送到网关,只能通过ARP解析,代理ARP把去往13.3封装成f0/0接口,这个时候R1查路由表,往f1/0出去但是接口关闭了

3、把R1、R3之间的链路接上,测试R2 ping R3,观察ARP表。

配置命令:

R1(config)#int fastEthernet 1/0
R1(config-if)#no shutdown
-------------------------------------------------
R2#ping 13.13.13.3Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13.13.13.3, timeout is 2 seconds:
..!!!
Success rate is 60 percent (3/5), round-trip min/avg/max = 32/34/40 ms
R2#show arp
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  12.12.12.1             22   cc01.331c.0000  ARPA   FastEthernet0/0
Internet  13.13.13.3              0   cc01.331c.0000  ARPA   FastEthernet0/0
Internet  12.12.12.2              -   cc02.37bc.0000  ARPA   FastEthernet0/0

结果&过程:

可以通,R2的ARP表条目,13.3的Mac地址是R1 f0/0 的Mac地址,这就是代理ARP协议

4、关闭R1 f0/0的代理ARP功能(no ip proxy-arp),测试R2 ping R3,观察ARP表。

配置命令:

R1(config)#interface f0/0
R1(config-if)#no ip proxy-arp
------------------------------------------
//注意做实验过程中得清空arp表,保证实验的精准性
R2#clear arp
R2#ping 13.13.13.3Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13.13.13.3, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R2#show arp
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  12.12.12.2              -   cc02.37bc.0000  ARPA   FastEthernet0/0
------------------------------------------
R2#ping 12.12.12.1     //ping网关Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.12.12.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/220/1024 ms
R2#show arp
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  12.12.12.1              0   cc01.331c.0000  ARPA   FastEthernet0/0
Internet  12.12.12.2              -   cc02.37bc.0000  ARPA   FastEthernet0/0

结果&过程:

不通,R2的ARP条目只有二条,一条.2,一条.3不完整,不完整意味着无法封装;
要跨网段访问,没有网关,只能发送ARP解析,R1的f0/0关闭了代理ARP协议,结果没有人给回应,就无法获得Mac,丢包
但是ping 网关是正常的。

实验注意事项:

//注意做实验过程中得清空arp表,保证实验的精准性
R2#clear arp

查看arp代理是否开启的方法
1、show runn可以看到配置。

2、show interface可以看到端口的状态。

3、show ip interface fa 0/0 可以看到 proxy-arp的状态。

如何关闭接口代理ARP的功能
no ip proxy-arp

代理ARP(Proxy ARP)实验相关推荐

  1. 什么是代理ARP(proxy ARP)?

    Proxy ARP yUmi#sh start ! Written by yUmis(牛奶咖喱) a.k.a. 红头发 Description 欢迎转po,请保留作者信息 Homepage http: ...

  2. 什么是代理ARP(proxy ARP)

    proxy ARP yUmi#sh start ! Written by yUmis(牛奶咖喱) a.k.a. 红头发 Description 欢迎转po,请保留作者信息 Homepage  [url ...

  3. ARP代理(Proxy ARP)

    ARP代理通俗地说,就是由中间设备代替其他主机响应arp请求.下图展现了ARP代理工作的主要过程: ARP代理工作过程示意图 ARP代理工作的过程说明 1,192.168.0.16/16主机向外发送目 ...

  4. 理解ARP及 Proxy ARP

    1.本文使用的软件是eNSP 2.部分命令使用的是简写(和完整命令一样的作用),按键盘上的"Tab"建可自动补全命令 3.退到下一层用命令quit,简写q 本文用得到的查询命令: ...

  5. 【Proxy ARP】代理ARP

    Proxy ARP 代理ARP可以帮助一个子网上的计算机到达远程子网,而无需配置路由或者默认网关 开启代理ARP之后路由器会响应不是本地IP地址的ARP请求 代理ARP只响应那些在自己的路由表里能找到 ...

  6. 代理ARP协议(Proxy ARP)

    代理ARP(Proxy-arp)的原理就是当出现跨网段的ARP请求时,路由器将自己的MAC返回给发送ARP广播请求发送者,实现MAC地址代理(善意的欺骗),最终使得主机能够通信. 图中R1和R3处于不 ...

  7. 交华为换机access配置_华为交换机VLAN内Proxy ARP配置示例

    华为交换机VLAN内Proxy ARP配置示例 1.组网需求 图1 VLAN内Proxy ARP组网示例图 如上图1所示,Switch的接口GE1/0/2和GE1/0/1属于同一个sub-VLAN2. ...

  8. ARP与ARP代理的理解

    1.ARP 首先讲到ARP,ARP是地址解析协议,它的作用是在以太网环境下,通过第3层的网络层IP地址来找寻2层数据链路层的MAC地址,得到一张ARP缓存表.转发数据的时候根据ARP缓存表来进行传输. ...

  9. Proxy ARP解析过程

    文章目录 Proxy ARP产生原因: 路由式Proxy ARP: ARP任意代理: VLAN内Proxy ARP: VLAN间Proxy ARP: Proxy ARP产生原因: ARP只适用于处于同 ...

最新文章

  1. teamviewer 可用设备上限_2020推荐香河气压罐专业供水设备
  2. FILO微型计算机,IBM-PC微机组成原理(ppt48)-咨询报告【PPT课件】
  3. 支持高并发的IIS Web服务器常用设置
  4. 【原】高清显示屏原理及设计方案
  5. Navicat使用教程:在Navicat Monitor for MySQL/MariaDB中配置实
  6. pip安装软件时出现Command python setup.py egg_info failed with error code 1 in /tmp/pip-build*的解决方案
  7. matlab生成exe-在没有安装matlab的电脑上运行matlab生成的exe
  8. Erlang消息传递-tut15.erl
  9. hdfs的副本数为啥增加了_HDFS详解之块大小和副本数
  10. 同一个浏览器打开不同端口的程序登录_【BI报表制作】单点登录与个性化开发...
  11. 10815 - Andy's First Dictionary
  12. php获取多个参数值,php-获取多个过滤器值参数
  13. elk日志收集系统 linux_ELK 日志分析系统
  14. 单片机音乐倒数计时器c语言,基于单片机音乐倒数计时器设计.doc
  15. 你是儒系程序名猿,还是佛系开发大神?
  16. MySQL数据库安全配置规范操作
  17. 无线充电器的CE认证、FCC认证、IC认证测试标准
  18. Linux 30岁啦,这些历史你知道多少呢?
  19. svelte-scrollbar: 基于svelte.js自定义滚动条组件|svelte3虚拟滚动条
  20. Freda的队列 简单模拟

热门文章

  1. Python数据分析与挖掘实战期末考复习(抱佛脚啦)
  2. asp.net在线考试系统实习报告
  3. QT4.8.6调用zlib库实现数据流的压缩与解压缩
  4. HNUST OJ 2205 队伍能力值
  5. 详细介绍javascript中的单体模式singleton(全面)
  6. 《次世代数据存储思维与技术》大纲
  7. 2017.10.24队内互测——压轴出场的互测终曲|(*_-)
  8. 北理python复试_北理复试及其初试超强总结(转)
  9. 戈壁日记——一个来了又来的地方
  10. 雷达学报中文期刊投稿过程记录