H3C S5500-EI Series Switches Command Manual-Release 2102(V1.01)

HomeSupportSwitchesH3C S5500 Switch SeriesReference GuidesCommand ReferencesH3C S5500-EI Series Switches Command Manual-Release 2102(V1.01)
18-ARP Commands
Title Size Download
18-ARP Commands 53 KB

Chapter 1  ARP Configuration Commands

1.1  ARP Configuration Commands

1.1.1  arp check enable

Syntax

arp check enable

undo arp check enable

View

System view

Parameters

None

Description

Use the arp check enable command to enable ARP entry check. With this function enabled, the device cannot learn any ARP entry with a multicast MAC address. Configuring such a static ARP entry is not allowed either; otherwise, the system prompts error information.

Use the undo arp check enable command to disable the function. After the ARP entry check is disabled, the device can learn the ARP entry with a multicast MAC address, and you can also configure such a static ARP entry on the device.

By default, ARP entry check is enabled.

Examples

# Enable the ARP entry check function on the switch.

<Sysname> system-view

[Sysname] arp check enable

1.1.2  arp max-learning-num

Syntax

arp max-learning-num number

undo arp max-learning-num

View

VLAN interface view

Parameters

number: Maximum number of dynamic ARP entries that a VLAN interface can learn, in the range 1 to 8192.

Description

Use the arp max-learning-num command to set the maximum number of dynamic ARP entries that a VLAN interface can learn.

Use the undo arp max-learning-num command to restore the default.

By default, a VLAN interface can learn up to 8,192 dynamic ARP entries.

Examples

# Specify VLAN-interface 40 to learn up to 500 dynamic ARP entries.

<Sysname> system-view

[Sysname] interface vlan-interface 40

[Sysname-Vlan-interface40] arp max-learning-num 500

1.1.3  arp static

Syntax

arp static ip-address mac-address [ vlan-id interface-type interface-number ]

undo arp ip-address

View

System view

Parameters

ip-address: IP address in an ARP entry.

mac-address: MAC address in an ARP entry, in the format H-H-H.

vlan-id: ID of a VLAN to which a static ARP entry belongs to, in the range 1 to 4094.

interface-type interface-number: Port type and port number.

Description

Use the arp static command to configure a static ARP entry in the ARP mapping table.

Use the undo arp command to remove an ARP entry.

Note that:

l           A static ARP entry is effective when the device works normally. However, when the VLAN or VLAN interface to which an ARP entry corresponds is deleted, the entry, if permanent, will be deleted, and if non-permanent and resolved, will become unresolved.

l           The vlan-id argument is used to specify the corresponding VLAN of an ARP entry and must be the ID of an existing VLAN. In addition, the Ethernet port following the argument must belong to that VLAN. The VLAN interface of the VLAN must have been created.

Related commands: reset arp, display arp.

Examples

# Configure a static ARP entry, with the IP address being 202.38.10.2, the MAC address being 000f-e201-0000, and the outbound port being GigabitEthernet 1/0/10 of VLAN 10.

<Sysname> system-view

[Sysname] arp static 202.38.10.2 000f-e201-0000 10 gigabitethernet 1/0/10

1.1.4  arp timer aging

Syntax

arp timer aging aging-time

undo arp timer aging

View

System view

Parameters

aging-time: Aging time for dynamic ARP entries in minutes, in the range 1 to 1,440.

Description

Use the arp timer aging command to set aging time for dynamic ARP entries.

Use the undo arp timer aging command to restore the default.

By default, the aging time for dynamic ARP entries is 20 minutes.

Related commands: display arp timer aging.

Examples

# Set aging time for dynamic ARP entries to 10 minutes.

<Sysname> system-view

[Sysname] arp timer aging 10

1.1.5  display arp

Syntax

display arp { { all | dynamic | static } | vlan vlan-id | interface interface-type interface-number } [ | { begin | exclude | include } string | count ]

View

Any view

Parameters

all: Displays all ARP entries.

dynamic: Displays dynamic ARP entries.

static: Displays static ARP entries.

vlan vlan-id: Displays the ARP entries of the specified VLAN. The VLAN ID ranges from 1 to 4,094.

interface interface-type interface-number: Displays the ARP entries of the port specified by the argument interface-type interface-number.

|: Uses a regular expression to specify the ARP entries to be displayed. For detailed information about regular expression, refer to the part discussing CLI display in System Maintaining and Debugging Configuration.

begin: Displays ARP entries from the first one containing the specified string.

exclude: Displays the ARP entries that do not contain the specified string.

include: Displays the ARP entries containing the specified string.

string: A case-sensitive string for matching, consisting of 1 to 256 characters.

count: Displays the number of ARP entries.

Description

Use the display arp command to display ARP entries in the ARP mapping table.

Related commands: arp static, reset arp.

Examples

# Display the information of all ARP entries.

<Sysname> display arp all

                Type: S-Static    D-Dynamic

IP Address       MAC Address     VLAN ID  Interface              Aging Type

20.1.1.1         00e0-fc00-0001  N/A      N/A                    N/A   S

193.1.1.70       00e0-fe50-6503  100      GE1/0/1                14    D

192.168.0.115    000d-88f7-9f7d  1        GE1/0/2                18    D

192.168.0.39     0012-a990-2241  1        GE1/0/3                20    D

Table 1-1 Description on the fields of the display arp command

Field

Description

IP Address

IP address in an ARP entry

MAC Address

MAC address in an ARP entry

VLAN ID

VLAN ID contained a static ARP entry

Interface

Outbound port in an ARP entry

Aging

Aging time for a dynamic ARP entry in minutes

Type

ARP entry type: D stands for dynamic and S for static.

 

# Display the number of all ARP entries

<Sysname> display arp all count

Total Entry(ies): 4

1.1.6  display arp ip-address

Syntax

display arp ip-address [ | { begin | exclude | include } string ]

View

Any view

Parameters

ip-address: Displays the ARP entry for the specified IP address.

|: Uses a regular expression to specify the ARP entries to be displayed. For detailed information about regular expression, refer to the part discussing CLI display in System Maintaining and Debugging Configuration.

begin: Displays the ARP entries from the first one containing the specified string.

exclude: Displays the ARP entries that do not contain the specified string.

include: Displays the ARP entries that contain the specified string.

string: A case-sensitive string for matching, consisting of 1 to 256 characters.

Description

Use the display arp ip-address command to display the ARP entry for a specified IP address.

Related commands: arp static, reset arp.

Examples

# Display the corresponding ARP entry for the IP address 20.1.1.1.

<Sysname> display arp 20.1.1.1

                Type: S-Static    D-Dynamic

IP Address       MAC Address     VLAN ID  Interface              Aging Type

20.1.1.1         00e0-fc00-0001  N/A      N/A                    N/A   S

1.1.7  display arp timer aging

Syntax

display arp timer aging

View

Any view

Parameters

None

Description

Use the display arp timer aging command to display the aging time for dynamic ARP entries.

Related commands: arp timer aging.

Examples

# Display the aging time for dynamic ARP entries.

[Sysname] display arp timer aging

Current ARP aging time is 10 minute(s)

1.1.8  reset arp

Syntax

reset arp { all | dynamic | static | interface interface-type interface-number }

View

User view

Parameters

all: Clears all ARP entries.

dynamic: Clears all dynamic ARP entries.

static: Clears all static ARP entries.

interface interface-type interface-number: Clears the ARP entries for the port specified by the argument interface-type interface-number.

Description

Use the reset arp command to clear ARP entries from the ARP mapping table.

With interface interface-type interface-number specified, the command clears only dynamic ARP entries of the port.

Related commands: arp static, display arp.

Examples

# Clear all static ARP entries.

<Sysname> reset arp static

1.2  Gratuitous ARP Configuration Commands

1.2.1  gratuitous-arp-learning enable

Syntax

gratuitous-arp-learning enable

undo gratuitous-arp-learning enable

View

System view

Parameters

None

Description

Use the gratuitous-arp-learning enable command to enable the gratuitous ARP packet learning function.

Use the undo gratuitous-arp-learning enable command to disable the function.

By default, the function is enabled.

Examples

# Disable the gratuitous ARP packet learning function.

<Sysname> system-view

[Sysname] undo gratuitous-arp-learning enable

1.2.2  gratuitous-arp-sending enable

Syntax

gratuitous-arp-sending enable

undo gratuitous-arp-sending enable

View

System view

Parameters

None

Description

Use the gratuitous-arp-sending enable command to enable a device to send gratuitous ARP packets when receiving ARP requests from another network segment.

Use the undo gratuitous-arp-sending enable command to restore the default.

By default, a device cannot send gratuitous ARP packets when receiving ARP requests from another network segment.

Examples

# Disable a device from sending gratuitous ARP packets.

<Sysname> system-view

[Sysname] undo gratuitous-arp-sending enable

 


Chapter 2  Proxy ARP Configuration Commands

2.1  Proxy ARP Configuration Commands

2.1.1  display local-proxy-arp

Syntax

display local-proxy-arp [ interface Vlan-interface vlan-id ]

View

Any view

Parameters

interface vlan-interface vlan-id: Displays the local proxy ARP status of the VLAN interface specified by the argument vlan-id.

Description

Use the display local-proxy-arp command to display the status of the local proxy ARP.

Related commands: local-proxy-arp enable.

Examples

# Display the status of the local proxy ARP on VLAN-interface 2.

<Sysname> display local-proxy-arp interface vlan-interface 2

Interface Vlan-interface2

 Local Proxy ARP status: enabled

2.1.2  display proxy-arp

Syntax

display proxy-arp [ interface Vlan-interface vlan-id ]

View

Any view

Parameters

interface Vlan-interface vlan-id: Displays the proxy ARP status of the VLAN interface specified by the argument vlan-id.

Description

Use the display proxy-arp command to display the proxy ARP status.

Related commands: proxy-arp enable.

Examples

# Display the proxy ARP status on VLAN-interface 1.

<Sysname> display proxy-arp interface vlan-interface 1

Interface Vlan-interface1

 Proxy ARP status: disabled

2.1.3  local-proxy-arp enable

Syntax

local-proxy-arp enable

undo local-proxy-arp enable

View

VLAN interface view

Parameters

None

Description

Use the local-proxy-arp enable command to enable local proxy ARP.

Use the undo local-proxy-arp enable command to disable local proxy ARP.

By default, local proxy ARP is disabled.

Related commands: display local-proxy-arp.

Examples

# Enable local proxy ARP on VLAN-interface 2.

<Sysname> system-view

[Sysname] interface Vlan-interface 2

[Sysname-Vlan-interface2] local-proxy-arp enable

2.1.4  proxy-arp enable

Syntax

proxy-arp enable

undo proxy-arp enable

View

VLAN interface view

Parameters

None

Description

Use the proxy-arp enable command to enable proxy ARP.

Use the undo proxy-arp enable command to disable proxy ARP.

By default, proxy ARP is disabled.

Related commands: display proxy-arp.

Examples

# Enable proxy ARP on VLAN-interface 2.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] proxy-arp enable

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网