代理ARP(Proxy ARP)

简介:

【实验拓扑】

 

【实验基本配置】

按照上图配置相应接口地址

 
【实验要求】
在R1、R6、R4上 不设置任何 路由的情况下,使得R1与R6能够 ping 通 R5

 
【实验分析与配置】
下面我们分析通过路由如何实现R1、R6能够ping通R5,
  • 路由方法1:R1与R6中有默认路由到R4,且R5上有默认路由到R4;
  • 路由方法2:R1与R6中有静态路由到155.1.0.0/24 网络,并且R5中也有静态路由到155.1.146.0/24网络
  • 非路由方法:代理ARP,在R4的E0/0上配置代理ARP;

 
【配置方法】
R1&R6
no ip routing

 
R4
int E0/0
ip proxy-arp

 
【实验验证】
R1#ping 155.1.0.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 155.1.0.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/202/1000 ms
R1#show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 155.1.0.4 21 c003.0dd0.0000 ARPA FastEthernet0/0
Internet 155.1.146.1 - c000.0dd0.0000 ARPA FastEthernet0/0

 
代理ARP,是R4 让R1认为到达R5的MAC地址是R4的MAC地址,相当于欺骗了R1;
代理ARP,以网关自身的MAC回应客户端对不同网段IP地址的ARP请求,用于客户机网关设置为其它网段IP或自身IP时,能与其它网段通信。

 
【实验基本配置】
R1:
inter fa 0/0
ip address 155.1.146.1 255.255.255.0
no shut
R4:
inter ethernet 0/0
ip address 155.1.146.4 255.255.255.0
no shut
!
interface Serial 0/0
encaps frame-relay
no frame-relay inverse
ip address 155.1.0.4 255.255.255.0
frame map ip 155.1.0.5 405 broad
no shutdown
R5:
interface Serial 0/0
encaps frame-relay
no frame-relay inverse
ip address 155.1.0.5 255.255.255.0
frame map ip 155.1.0.4 504 broad
no shut
R6:
inter gig 0/0
ip address 155.1.146.6 255.255.255.0
no shut


本文转自zcm8483 51CTO博客,原文链接:http://blog.51cto.com/haolun/993141
相关文章
|
网络协议 网络虚拟化
代理ARP
代理ARP
185 0
代理ARP
|
3月前
|
缓存 网络协议 安全
【网络工程师】<软考中级>解析协议ARP&路由协议RIP/OSPF/BGP
【1月更文挑战第27天】【网络工程师】<软考中级>解析协议ARP&路由协议RIP/OSPF/BGP
|
4月前
|
存储 缓存 网络协议
dpdk课程学习之练习笔记二(arp, udp协议api测试)
dpdk课程学习之练习笔记二(arp, udp协议api测试)
67 0
|
3月前
|
存储 缓存 网络协议
ARP协议:地址解析协议
ARP协议:地址解析协议
42 0