FAQ-How Can I Configure Static ARP Entries on an Interface

Publication Date:  2015-05-05 Views:  884 Downloads:  0
Issue Description
How Can I Configure Static ARP Entries on an Interface?
Solution
Based on the interface type, you can configure static ARP entries in the following methods:
  • For Layer 3 physical interfaces and Layer 3 Eth-Trunk interfaces, run the arp static ip-address mac-address command to configure static ARPentries.
For example:

<Huawei> system-view[Huawei] arp static 1.1.1.1 0000-1111-1111
  • For Dot1q termination sub-interfaces, run the arp static ip-address mac-address vid vlan-id interface interface-type interface-number command to configure static ARP entries.
For example: # Configure a static ARP entry for a sub-interface for dot1q VLAN tag termination. The static ARP entry's IP address 2.1.1.1 maps the MAC address 0edc-15e5-f7e4. GE1/0/0.1 is added to VLAN 20.
  • # Configure a sub-interface for dot1q VLAN tag termination and add the sub-interface to VLAN 20.
<Huawei> system-view[Huawei] interface gigabitethernet 1/0/0.1[Huawei-GigabitEthernet1/0/0.1] control-vid 100 dot1q-termination [Huawei-GigabitEthernet1/0/0.1] dot1q termination vid 20[Huawei-GigabitEthernet1/0/0.1] ip address 2.1.1.2 24[Huawei-GigabitEthernet1/0/0.1] quit
NOTE:
The control-vid 100 dot1q-termination command does not need to be configured in AR V2R2C01 or later versions.
  • # Configure a static ARP entry for the sub-interface for dot1q VLAN tag termination.
[Huawei] arp static 2.1.1.1 0edc-15e5-f7e4 vid 20 interface gigabitethernet1/0/0.1
  • For QinQ termination sub-interfaces, run the arp static ip-address mac-address vid vlan-id cevid ce-vid interface interface-type interface-number command to configure static ARP mapping entries with double tags.
For example: # Configure a static ARP entry for a sub-interface for QinQ VLAN tag termination. The static ARP entry's IP address 2.1.1.1 maps the MAC address 0edc-15e5-f7e4. The inner and outer VLAN IDs of the outbound interface GE1/0/0.1 are 20 and 10 respectively.
  • # Configure a sub-interface for QinQ VLAN tag termination and the inner and outer VLAN IDs of the outbound interface GE1/0/0.1 are 20 and 10 respectively.
<Huawei> system-view[Huawei] interface gigabitethernet 1/0/0.1[Huawei-GigabitEthernet1/0/0.1] control-vid 100 qinq-termination[Huawei-GigabitEthernet1/0/0.1] qinq termination pe-vid 10 ce-vid 20[Huawei-GigabitEthernet1/0/0.1] ip address 2.1.1.2 24[Huawei-GigabitEthernet1/0/0.1] quit NOTE:
The control-vid 100 qinq-termination command does not need to be configured in AR V2R2C01 or later versions.
  • # Configure a static ARP entry for the sub-interface for QinQ VLAN tag termination.
[Huawei] arp static 2.1.1.1 0edc-15e5-f7e4 vid 10 cevid 20 interface gigabitethernet1/0/0.1For VLANIF interfaces, run the arp static ip-address mac-address vid vlan-id interface interface-type interface-number command to configure static ARP entries.

For example:

<Huawei> system-view[Huawei] arp static 192.168.1.88 0000-1111-1111 vid 4094 interface ethernet 0/0/7
NOTE:
The outbound interface here indicates the Layer 2 interface bound to the VLAN.
In AR V2R2C01 or later versions, the VLANIF interface supports short ARP entries. You can directly configure the mapping between the IP address and MAC address without specifying the VID and outbound interface.

For example:

<Huawei> system-view[Huawei] arp static 192.168.1.88 0000-1111-1111

END