Example for Configuring Routed Proxy ARP

This example provides an example for configuring routed proxy ARP.

Networking Requirements

Two hosts on the same network segment but on different physical networks need to communicate with each other.

As shown in Figure 1, two routers are connected by . No default gateways are set for Host A and Host B that reside on different physical networks. To enable Host A and Host B to communicate with each other, configure routed proxy ARP on routers.

Figure 1 Configuring routed proxy ARP

Interfaces 1 through 2 in this example are GE 0/1/0, GE 0/1/8, respectively.


Device Name

Interface

IP Address

Device A

GE0/1/0

172.16.1.1/24

GE0/1/8

172.17.3.1/24

Device B

GE0/1/0

172.16.2.1/24

GE0/1/8

172.17.3.2/24

Precautions

None

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure an IP address for the interface that connects each router to a host, ensuring that the link between each host and each router is working properly.

  2. Configure routed proxy ARP on the interface that connects each router to a host. After receiving an ARP request (for the destination host's MAC address) sent by the host, the router that has routed proxy ARP enabled responds to the request with its own MAC address. The host then forwards data to the router.

  3. Configure a default route between two routers so that data can be transmitted along the route.

Data Preparation

To complete the configuration, you need the following data:

  • IP address of the interface that connects Device A to Host A: 172.16.1.1/24; IP address of the interface that connects Device B to Host B: 172.16.2.1/24

  • Default route on each router

  • IP address of Host A: 172.16.1.2/16; IP address of Host B: 172.16.2.2/16

Procedure

  1. Configure routerDevice A.

    # Configure an IP address for GE 0/1/0.

    <HUAWEI> system-view
    [~HUAWEI] sysname Device A
    [*HUAWEI] commit
    [~Device A] interface gigabitethernet 0/1/0
    [~Device A-GigabitEthernet0/1/0] ip address 172.16.1.1 255.255.255.0

    # Enable routed proxy ARP.

    [*Device A-GigabitEthernet0/1/0] arp-proxy enable
    [*Device A-GigabitEthernet0/1/0] undo shutdown
    [*Device A-GigabitEthernet0/1/0] quit

    # Configure a static route.

    [*Device A] ip route-static 0.0.0.0 0 gigabitethernet 0/1/8 172.17.3.2

    # Configure an IP address for GE 0/1/8.

    [*Device A] interface gigabitethernet 0/1/8
    [*Device A-GigabitEthernet0/1/8] ip address 172.17.3.1 255.255.255.0
    [*Device A-GigabitEthernet0/1/8] undo shutdown
    [*Device A-GigabitEthernet0/1/8] quit
    [*Device A] commit

  2. Configure routerDevice B.

    # Configure an IP address for GE 0/1/0.

    <HUAWEI> system-view
    [~HUAWEI] sysname DeviceB
    [*HUAWEI] commit
    [~Device B] interface gigabitethernet 0/1/0
    [~Device B-GigabitEthernet0/1/0] ip address 172.16.2.1 255.255.255.0

    # Enable routed proxy ARP.

    [*Device B-GigabitEthernet0/1/0] arp-proxy enable
    [*Device B-GigabitEthernet0/1/0] undo shutdown
    [*Device B-GigabitEthernet0/1/0] quit

    # Configure a static route.

    [*Device B] ip route-static 0.0.0.0 0 gigabitethernet 0/1/8 172.17.3.1

    # Configure an IP address for GE 0/1/8.

    [*Device B] interface gigabitethernet 0/1/8
    [*Device B-GigabitEthernet0/1/8] ip address 172.17.3.2 255.255.255.0
    [*Device B-GigabitEthernet0/1/8] undo shutdown
    [*Device B-GigabitEthernet0/1/8] quit
    [*Device B] commit

  3. Configure hosts.

    # Configure an IP address for Host A.

    # Configure an IP address for Host B.

  4. Verify the configuration.

    # Ping Host B from Host A, and the ping is successful.

    # Check ARP entries on Host A. The command output shows that the MAC address of Host B is the MAC address of GE 0/1/0 on Device A.

    C:\Documents and Settings\Administrator>arp -a
    Interface: 172.16.1.2 --- 0x2
      Internet Address      Physical Address      Type
      172.16.2.2            00e0-fc39-80aa        dynamic

Configuration Files

  • Device A configuration file

    #
    sysname Device A
    #
    ip route-static 0.0.0.0 0.0.0.0 GigabitEthernet0/1/8 172.17.3.2
    #
     interface GigabitEthernet0/1/0
     undo shutdown
     ip address 172.16.1.1 255.255.255.0
     arp-proxy enable
    #
     interface GigabitEthernet0/1/8
     undo shutdown
     ip address 172.17.3.1 255.255.255.0
    #
    return
  • Device B configuration file

    #
    sysname Device B
    #
    ip route-static 0.0.0.0 0.0.0.0 GigabitEthernet0/1/8 172.17.3.1
    #
     interface GigabitEthernet0/1/0
     undo shutdown
     ip address 172.16.2.1 255.255.255.0
     arp-proxy enable
    #
     interface GigabitEthernet0/1/8
     undo shutdown
     ip address 172.17.3.2 255.255.255.0
    #
    return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >