ARP is applicable only to devices on the same physical network. When a device on a physical network needs to send IP datagrams to another physical network, the gateway is used to query the routing table to implement communication between the two networks. However, routing table query consumes system resources and can affect other services. To resolve this problem, deploy proxy ARP on an intermediate device. Proxy ARP enables devices that reside on different physical network segments but on the same IP network to resolve IP addresses to MAC addresses. This feature helps reduce system resource consumption caused by routing table queries and improves the efficiency of system processing.
Routed proxy ARP
A large company network is usually divided into multiple subnets to facilitate management. The routing information of a host in a subnet can be modified so that IP datagrams sent from this host to another subnet are first sent to the gateway and then to another subnet. However, this solution makes it hard to manage and maintain devices. If the gateways to which hosts are connected have different IP addresses, you can deploy routed proxy ARP on a gateway so that the gateway sends its own MAC address to a source host.
Figure 1 illustrates how routed proxy ARP is implemented between Host A and Host B.
The PE receives the IP datagrams and forwards them to Host B:
Intra-VLAN proxy ARP
Figure 2 illustrates how intra-VLAN proxy ARP is implemented between Host A and Host C.
The type of interface1 could be VLANIF interface.
Host A, Host B, and Host C belong to the same VLAN, but Host A and Host C cannot communicate at Layer 2 because port isolation is enabled on the CE. To allow Host A and Host C to communicate, configure a interface1 on the CE and enable intra-VLAN proxy ARP.
The CE receives the IP datagrams and forwards them to Host C.
Inter-VLAN proxy ARP
Figure 3 illustrates how inter-VLAN proxy ARP is implemented between Host A and Host B.
The type of interface1 could be VLANIF interface.
Host A belongs to VLAN 3, whereas Host B belongs to VLAN 2. Therefore, Host A cannot communicate with Host B. To allow Host A and Host B to communicate, configure interface1 on the PE and enable inter-VLAN proxy ARP.
The PE receives the IP datagrams and forwards them to Host B:
Local proxy ARP
Figure 4 illustrates how local proxy ARP is implemented between Host A and Host B.
Host A and Host B belong to the same bride domain (BD) but cannot communicate at Layer 2 because port isolation is enabled on the CE. To enable Host A and Host B to communicate, a VBDIF interface (VBDIF 2) is configured on the CE to implement local proxy ARP.
Host A sends an ARP request message for the MAC address of Host B.
The CE receives the IP datagrams and forwards them to Host B.
Table 1 describes the usage scenarios for proxy ARP.
Proxy ARP Type |
Usage Scenario |
---|---|
Routed proxy ARP |
Two hosts that need to communicate belong to the same network segment but different physical networks. The gateways to which hosts are connected have different IP addresses. |
Intra-VLAN proxy ARP |
Two hosts that need to communicate belong to the same network segment and the same VLAN in which user isolation is configured. |
Inter-VLAN proxy ARP |
Two hosts that need to communicate belong to the same network segment but different VLANs. NOTE:
In VLAN aggregation scenarios, inter-VLAN proxy ARP can be enabled on the VLANIF interface corresponding to the super-VLAN to implement communication between sub-VLANs. |
Local proxy ARP |
In an EVC model, two hosts that need to communicate belong to the same network segment and the same BD in which user isolation is configured. |
Proxy ARP offers the following benefits:
Proxy ARP enables a host on a network to consider that the destination host is on the same network segment. Therefore, the hosts do not need to know the physical network details but can be aware of the network subnets.
All processing related to proxy ARP is performed on a gateway, with no configuration needed on the hosts connecting to it. In addition, proxy ARP affects only the ARP tables on hosts and does not affect the ARP table and routing table on a gateway.
Proxy ARP can be used when no default gateway is configured for a host or a host cannot route messages.