Configuring arp, Configuring a static arp entry – H3C Technologies H3C S7500E Series Switches User Manual

Page 16

Advertising
background image

1-4

z

A non-permanent static ARP entry has only an IP address and a MAC address configured. It

cannot be directly used for forwarding data. If a non-permanent static ARP entry matches an IP

packet to be forwarded, the device sends an ARP request first. If the sender IP and MAC

addresses in the received ARP reply are the same as those in the non-permanent static ARP

entry, the device adds the interface receiving the ARP reply to the non-permanent static ARP

entry. Then the entry can be used for forwarding IP packets.

z

Usually ARP dynamically resolves IP addresses to MAC addresses, without manual intervention.

z

To allow communication with a device using a fixed IP-to-MAC mapping, configure a

non-permanent static ARP entry for it. To allow communication with a device through a specific

interface and using a fixed IP-to-MAC mapping, configure a permanent static ARP entry for it.

Configuring ARP

Configuring a Static ARP Entry

A static ARP entry is effective when the device works normally. However, when a VLAN or VLAN

interface to which a static ARP entry corresponds is deleted, the entry, if permanent, will be deleted,

and if non-permanent and resolved, will become unresolved.

Follow these steps to configure a static ARP entry:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure a permanent

static ARP entry

arp static ip-address mac-address

vlan-id interface-type

interface-number [ vpn-instance

vpn-instance-name ]

Required

No permanent static ARP entry is

configured by default.

Configure a

non-permanent static ARP

entry

arp static ip-address mac-address

[ vpn-instance

vpn-instance-name ]

Required

No non-permanent static ARP entry is

configured by default.

Advertising