本地代理ARP(Local Proxy ARP )
2012-04-09 20:39
246 查看
【定义及作用】
本地代理ARP,以网关自身的MAC回应本网段的IP地址的ARP请求,用于二层端口隔离时,同一网段的客户之间能够通信。
【实验拓扑】
【实验要求】
当在R1上过滤了R6的MAC地址时,R1也能够ping通R6
【配置方法】
R1&R6
no ip routing
R4
int E0/0
ip proxy-arp
ip local-proxy-arp
【实验验证】
R4#clear arp-cache
R4#ping 155.1.146.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 155.1.146.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/45/84 ms
R4#ping 155.1.146.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 155.1.146.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/40/116 ms
R4#show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 155.1.146.1 0 c000.0dd0.0000 ARPA Ethernet0/0
Internet 155.1.146.4 - c003.0dd0.0000 ARPA Ethernet0/0
Internet 155.1.146.6 0 c005.0f80.0000 ARPA Ethernet0/0
从R4到R1与R6的MAC地址都变成了R4的MAC地址,因此即使在R1上过滤R6的MAC地址,R1与R6依然能够ping通,原因是R1认为到R6的MAC地址为R4 E0/0的接口地址,实验无法配置过滤因此只能通过show arp 来查看MAC地址是否相同
【实验基本配置】
R1:[/b]
inter fa 0/0
ip address 155.1.146.1 255.255.255.0
no shut
R4:[/b]
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:[/b]
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:[/b]
inter gig 0/0
ip address 155.1.146.6 255.255.255.0
no shut
本地代理ARP,以网关自身的MAC回应本网段的IP地址的ARP请求,用于二层端口隔离时,同一网段的客户之间能够通信。
【实验拓扑】
【实验要求】
当在R1上过滤了R6的MAC地址时,R1也能够ping通R6
【配置方法】
R1&R6
no ip routing
R4
int E0/0
ip proxy-arp
ip local-proxy-arp
【实验验证】
R4#clear arp-cache
R4#ping 155.1.146.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 155.1.146.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/45/84 ms
R4#ping 155.1.146.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 155.1.146.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/40/116 ms
R4#show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 155.1.146.1 0 c000.0dd0.0000 ARPA Ethernet0/0
Internet 155.1.146.4 - c003.0dd0.0000 ARPA Ethernet0/0
Internet 155.1.146.6 0 c005.0f80.0000 ARPA Ethernet0/0
从R4到R1与R6的MAC地址都变成了R4的MAC地址,因此即使在R1上过滤R6的MAC地址,R1与R6依然能够ping通,原因是R1认为到R6的MAC地址为R4 E0/0的接口地址,实验无法配置过滤因此只能通过show arp 来查看MAC地址是否相同
【实验基本配置】
R1:[/b]
inter fa 0/0
ip address 155.1.146.1 255.255.255.0
no shut
R4:[/b]
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:[/b]
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:[/b]
inter gig 0/0
ip address 155.1.146.6 255.255.255.0
no shut
相关文章推荐
- Local-Proxy-ARP
- ARP代理(Proxy ARP)
- 使用 express-http-proxy 代理本地请求
- (5)extjs4.2 客户端代理LocalStorageProxy SessionStorageProxy MemoryProxy
- Proxy 代理模式
- 使用vue-cli+axios构建的项目本地环境API代理设置和解决跨域
- 转载 centos7 docker使用https_proxy 代理配置<积累篇>
- git之create local reposition(创建本地仓库)
- Spring 动态代理(二) - ProxyFactoryBean
- iOS UILocalNotification本地通知
- C++设计模式-Proxy代理模式
- 设计模式学习笔记(五)之代理模式(Proxy)
- 设计模式 (九)代理模式(Proxy)
- java23种设计模式--代理模式(proxy)
- 浅谈Java设计模式(八)代理模式(Proxy)
- 8、代理模式(Proxy)
- IPv6的链路本地(link-local)地址和站点本地(site-local)地址
- iOS 几种传值方式(属性,代理,block,通知,本地存储,单例类)附Demo
- Proxy(代理)模式
- 设计模式之Proxy(代理)