Example for Configuring Routed Proxy ARP
Networking Requirements
As shown in Figure 2-12, branch A and branch B of a company are located in different cities. Multiple routing devices are deployed between branches, and routes are reachable. IP addresses of the routing devices are on the same network segment 10.16.0.0/16. Branch A and branch B belong to different broadcast domains; therefore, they cannot communicate on a LAN. Hosts of branches are not configured with default gateways; therefore, they cannot communicate across network segments. The company requires that branch A and branch B communicate without changing the host configurations.
Configuration Roadmap
The configuration roadmap is as follows:
Add the interface connecting RouterA and branch A to VLAN10 and add the interface connecting RouterB and branch B to VLAN20.
Enable routed proxy ARP on VLANIF interfaces of branch A and branch B to implement communication between the two branches.
Procedure
- Configure RouterA.
# Create VLAN10.
<Huawei> system-view
[Huawei] sysname RouterA
[RouterA] vlan 10
[RouterA-vlan10] quit
# Add Etherent2/0/0 to VLAN10.
[RouterA] interface ethernet 2/0/0
[RouterA-Ethernet2/0/0] port link-type access
[RouterA-Ethernet2/0/0] port default vlan 10
[RouterA-Ethernet2/0/0] quit
# Configure an IP address for VLANIF10.
[RouterA] interface vlanif 10
[RouterA-Vlanif10] ip address 10.16.1.1 255.255.255.0
# Enable routed proxy ARP on VLANIF10.
[RouterA-Vlanif10] arp-proxy enable
[RouterA-Vlanif10] quit
- Configure RouterB.
The configuration of RouterB is similar to that of RouterA.
- Verify the configuration.
# Select HostA at 10.16.1.2/16 in branch A and select HostB at 10.16.2.2/16 in branch B. Run the ping command on HostA to ping the IP address of HostB.
C:\Documents and Settings\Administrator> ping 10.16.2.2 PING 10.16.2.2: 56 data bytes, press CTRL_C to break Reply from 10.16.2.2: bytes=56 Sequence=1 ttl=255 time=10 ms Reply from 10.16.2.2: bytes=56 Sequence=2 ttl=255 time=10 ms Reply from 10.16.2.2: bytes=56 Sequence=3 ttl=255 time=10 ms Reply from 10.16.2.2: bytes=56 Sequence=4 ttl=255 time=10 ms Reply from 10.16.2.2: bytes=56 Sequence=5 ttl=255 time=10 ms --- 10.16.2.2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 10/10/10 ms
# View the ARP mapping table of HostA. You can see that the MAC address of HostB is the MAC address of VLANIF10.
C:\Documents and Settings\Administrator> arp -a
Interface: 10.16.1.2 --- 0x2
Internet Address Physical Address Type
10.16.2.2 00e0-fc39-80aa dynamic
Configuration Files
Configuration file of RouterA
# sysname RouterA # vlan batch 10 # interface Vlanif10 ip address 10.16.1.1 255.255.255.0 arp-proxy enable # interface Ethernet2/0/0 port link-type access port default vlan 10 # return
Configuration file of RouterB
# sysname RouterB # vlan batch 20 # interface Vlanif20 ip address 10.16.2.1 255.255.255.0 arp-proxy enable # interface Ethernet2/0/0 port link-type access port default vlan 20 # return