05-Layer 3 - IP Services Command Reference

HomeSupportSwitchesH3C S12500 Switch SeriesReference GuidesCommand ReferencesH3C S12500 Command Reference-Release7128-6W71005-Layer 3 - IP Services Command Reference
01-ARP commands
Title Size Download
01-ARP commands 127.75 KB

The device operates in IRF or standalone (the default) mode. For information about IRF mode, see IRF Configuration Guide.

arp check enable

Use arp check enable to enable dynamic ARP entry check.

Use undo arp check enable to disable dynamic ARP entry check.

Syntax

arp check enable

undo arp check enable

Default

Dynamic ARP entry check is enabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

The dynamic ARP entry check function controls whether the device supports dynamic ARP entries with multicast MAC addresses.

When dynamic ARP entry check is enabled, the device cannot learn dynamic ARP entries containing multicast MAC addresses, and you cannot manually add static ARP entries containing multicast MAC addresses.

When dynamic ARP entry check is disabled, the device can learn dynamic ARP entries containing multicast MAC addresses obtained from the ARP packets sourced from a unicast MAC address. You can also manually add static ARP entries containing multicast MAC addresses.

Examples

# Enable dynamic ARP entry check.

<Sysname> system-view

[Sysname] arp check enable

arp max-learning-num

Use arp max-learning-num to configure the maximum number of dynamic ARP entries that an interface can learn.

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

Syntax

arp max-learning-num number

undo arp max-learning-num

Default

The maximum number of dynamic ARP entries that an interface can learn is the maximum remaining resource of the switch.

Views

Layer 2 Ethernet interface view, Layer 3 Ethernet interface view, Layer 3 Ethernet subinterface view, VLAN interface view, Layer 2 aggregate interface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view

Predefined user roles

network-admin

mdc-admin

Parameters

number: Specifies the maximum number of dynamic ARP entries.

Usage guidelines

An interface can dynamically learn ARP entries. To prevent an interface from holding too many ARP entries, you can set the maximum number of dynamic ARP entries that an interface can learn. When the maximum number is reached, the interface stops learning ARP entries.

When the number argument is set to 0, the interface is disabled from learning 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

# Specify GigabitEthernet 3/0/1 to learn up to 1000 dynamic ARP entries.

<Sysname> system-view

[Sysname] interface GigabitEthernet 3/0/1

[Sysname-GigabitEthernet3/0/1] arp max-learning-num 1000

# Specify Layer 2 aggregate interface bridge-aggregation 1 to learn up to 1000 dynamic ARP entries.

<Sysname> system-view

[Sysname] interface bridge-aggregation 1

[Sysname-Bridge-Aggregation1] arp max-learning-num 1000

# Specify Layer 3 aggregate interface route-aggregation 1 to learn up to 1000 dynamic ARP entries.

<Sysname> system-view

[Sysname] interface route-aggregation 1

[Sysname-Route-Aggregation1] arp max-learning-num 1000

arp multiport

Use arp multiport to configure a multiport ARP entry.

Use undo arp to remove a multiport ARP entry.

Syntax

arp multiport ip-address mac-address vlan-id [ vpn-instance vpn-instance-name ]

undo arp ip-address [ vpn-instance-name ]

Default

No multiport ARP entries are configured.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

ip-address: Specifies an IP address for the multiport ARP entry.

mac-address: Specifies a MAC address for the multiport ARP entry, in the format of H-H-H.

vlan-id: Specifies a VLAN for the multiport ARP entry, in the range of 1 to 4094.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN for the multiport ARP entry. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. The specified VPN instance must already exist. Without this option, the multiport ARP entry belongs to the public network.

Usage guidelines

The specified VLAN must already exist. If the specified VLAN or the corresponding VLAN interface is removed, the multiport ARP entry is also removed.

The specified IP address must reside on the same subnet as the virtual interface of the specified VLAN. Otherwise, the multiport ARP entry does not take effect.

To use the multiport ARP entry, you must also configure a multicast or multiport unicast MAC address entry that has the same MAC address and VLAN ID as the multiport ARP entry to specify multiple output interfaces.

Examples

# Configure a multiport ARP entry that comprises IP address 202.38.10.2 and MAC address 00e0-fc01-0000 in VLAN 10.

<Sysname> system-view

[Sysname] arp multiport 202.39.10.2 00e0-fc01-0000 10

Related commands

·           display arp multiport

·           reset arp multiport

arp static

Use arp static to configure a static ARP entry.

Use undo arp to remove an ARP entry.

Syntax

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

undo arp ip-address [ vpn-instance-name ]

Default

No static ARP entries are configured.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

ip-address: Specifies the IP address in an ARP entry.

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

vlan-id: Specifies the ID of a VLAN to which a static ARP entry belongs. The value range is from 1 to 4094. The VLAN must already exist.

interface-type interface-number: Specifies the interface type and interface number.

vpn-instance vpn-instance-name: Specifies the MPLS L3VPN for a static ARP entry. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. The VPN instance must already exist. To specify a static ARP entry on the public network, do not specify this option.

Usage guidelines

A static ARP entry is manually configured and maintained. It does not age out and cannot be overwritten by any dynamic ARP entry.

Static ARP entries can be classified into long and short static ARP entries. A short static ARP entry contains an IP-to-MAC mapping. A long static ARP entry contains an IP-to-MAC mapping, a VLAN, and an output interface.

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 long, is deleted. If the entry is short and resolved, it becomes unresolved.

A resolved short static ARP entry may become unresolved upon certain events. For example, it is unresolved if the output interface is down.

A long static ARP entry is ineffective when the corresponding VLAN interface or output interface is down. An ineffective long static ARP entry cannot be used to forward packets.

The Ethernet interface following the vlan-id argument must belong to the VLAN. You must first create the VLAN interface of the VLAN.

If you specify both the vlan-id and ip-address arguments, the IP address of the specified VLAN interface must be in the same network as the specified IP address.

If you do not specify any VPN, the undo arp command only removes ARP entries for the public network.

Examples

# Configure a static ARP entry that comprises IP address 202.38.10.2, MAC address 00e0-fc01-0000, and output interface GigabitEthernet 3/0/1 in VLAN 10.

<Sysname> system-view

[Sysname] arp static 202.38.10.2 00e0-fc01-0000 10 GigabitEthernet 3/0/1

Related commands

·           display arp

·           reset arp

arp timer aging

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

Use undo arp timer aging to restore the default.

Syntax

arp timer aging aging-time

undo arp timer aging

Default

The aging timer for dynamic ARP entries is 20 minutes.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

aging-time: Sets the aging timer for dynamic ARP entries, in the range of 1 to 1440 minutes.

Usage guidelines

Each dynamic ARP entry in the ARP table has a limited lifetime, called aging timer. The aging timer of a dynamic ARP entry is reset each time the dynamic ARP entry is updated. Dynamic ARP entries that are not updated before their aging timers expire are deleted from the ARP table.

Set the aging timer for dynamic ARP entries as needed. For example, when you configure proxy ARP, set a short aging time so that invalid dynamic ARP entries can be deleted timely.

Examples

# Set the aging timer for dynamic ARP entries to 10 minutes.

<Sysname> system-view

[Sysname] arp timer aging 10

Related commands

display arp timer aging

display arp

Use display arp to display ARP entries.

Syntax

In standalone mode:

display arp [ [ all | dynamic | multiport |static ] [ slot slot-number ] | vlan vlan-id | interface interface-type interface-number ] [ count | verbose ]

In IRF mode:

display arp [ [ all | dynamic | multiport |static ] [ chassis chassis-number slot slot-number ] | vlan vlan-id | interface interface-type interface-number ] [ count | verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

all: Displays all ARP entries.

dynamic: Displays dynamic ARP entries.

multiport: Displays multiport ARP entries.

static: Displays static ARP entries.

slot slot-number: Displays the ARP entries for the interface card specified by the slot number. (In standalone mode.)

chassis chassis-number slot slot-number: Displays the ARP entries of a card on an IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the slot number of the card. (In IRF mode.)

vlan vlan-id: Displays the ARP entries for the specified VLAN. The VLAN ID ranges from 1 to 4094.

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

count: Displays the number of ARP entries.

verbose: Displays detailed information about ARP entries.

Usage guidelines

This command displays information about ARP entries, including the IP address, MAC address, VLAN ID, output interface, entry type, and aging timer.

If you do not specify any parameter, the command displays all ARP entries.

Examples

# Display all ARP entries.

<Sysname> display arp all

                Type: S-Static    D-Dynamic    M-Multiport    I-Invalid

IP Address       MAC Address     VLAN     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      GE3/0/1                N/A   IS

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

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

22.1.1.1         000c-299d-c041  10       N/A                    N/A   M

# Display detailed information about all ARP entries.

<Sysname> display arp all verbose

                Type: S-Static    D-Dynamic    M-Multiport    I-Invalid

IP Address       MAC Address     VLAN     Interface              Aging Type

Vpn Instance

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

test

193.1.1.70       00e0-fe50-6503  100      GE3/0/1                N/A   IS

[No Vrf]

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

[No Vrf]

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

[No Vrf]

22.1.1.1         000c-299d-c041  10       N/A                    N/A   M

[No Vrf]

# Display the number of all ARP entries.

<Sysname> display arp all count

 Total number of entries : 5

Table 1 Command output

Field

Description

IP Address

IP address in an ARP entry.

MAC Address

MAC address in an ARP entry.

VLAN

ID of the VLAN to which the ARP entry belongs.

Interface

Output interface in an ARP entry.

Aging

Aging time for a dynamic ARP entry in minutes. N/A means unknown aging time or no aging time.

Type

ARP entry type:

·       D—Dynamic.

·       S—Static.

·       M—Multiport.

·       I—Ineffective.

Vpn Instance

Name of VPN instance. [No Vrf] is displayed if no VPN instance is configured for the ARP entry.

Total number of entries

Number of ARP entries.

 

Related commands

·           arp static

·           reset arp

display arp ip-address

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

Syntax

In standalone mode:

display arp ip-address [ slot slot-number ] [ verbose ]

In IRF mode:

display arp ip-address [ chassis chassis-number slot slot-number ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

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

slot slot-number: Displays the specified ARP entry for the interface card specified by the slot number. (In standalone mode.)

chassis chassis-number slot slot-number: Displays the specified ARP entry of a card on an IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the slot number of the card. (In IRF mode.)

verbose: Displays the detailed information about the specified ARP entry.

Usage guidelines

This command displays the ARP entry for a specific IP address, including the IP address, MAC address, VLAN ID, output interface, entry type, and aging timer.

Examples

# Display the ARP entry for the IP address 20.1.1.1.

<Sysname> display arp 20.1.1.1

          Type: S-Static    D-Dynamic    M-Multiport    I-Invalid

IP Address       MAC Address     VLAN ID  Interface              Aging Type

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

Related commands

·           arp static

·           reset arp

display arp timer aging

Use display arp timer aging to display the aging timer of dynamic ARP entries.

Syntax

display arp timer aging

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Examples

# Display the aging timer of dynamic ARP entries.

<Sysname> display arp timer aging

Current ARP aging time is 10 minute(s)

Related commands

arp timer aging

display arp vpn-instance

Use display arp vpn-instance to display the ARP entries for a specific VPN.

Syntax

display arp vpn-instance vpn-instance-name [ count ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

vpn-instance-name: Specifies the name of an MPLS L3VPN, a case-sensitive string of 1 to 31 characters.

count: Displays the number of ARP entries.

Usage guidelines

This command shows information about ARP entries for a specific VPN, including the IP address, MAC address, VLAN ID, output interface, entry type, and aging timer.

Examples

# Display ARP entries for the VPN instance named test.

<Sysname> display arp vpn-instance test

          Type: S-Static    D-Dynamic    M-Multiport    I-Invalid

IP Address       MAC Address     VLAN ID  Interface              Aging Type

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

Related commands

·           arp static

·           reset arp

reset arp

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

Syntax

In standalone mode:

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

In IRF mode:

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

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

all: Clears all ARP entries.

dynamic: Clears all dynamic ARP entries.

multiport: Clears all multiport ARP entries.

static: Clears all static ARP entries.

slot slot-number: Clears the ARP entries for the interface card specified by the slot number. (In standalone mode.)

chassis chassis-number slot slot-number: Clears the ARP entries of a card on an IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the slot number of the card. (In IRF mode.)

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

Usage guidelines

This command can separately clear static ARP entries, dynamic ARP entries, multiport ARP entries, ARP entries of specified cards, or ARP entries on specified interfaces.

If you specify the interface interface-type interface-number option, this command clears only dynamic ARP entries for the specified interface.

If you specify the slot slot-number option, this command clears only dynamic ARP entries for the specified interface card.

Examples

# Clear all static ARP entries.

<Sysname> reset arp static

Related commands

·           arp static

·           display arp


arp send-gratuitous-arp

Use arp send-gratuitous-arp to enable periodic sending of gratuitous ARP packets and set the sending interval on an interface.

Use undo arp send-gratuitous-arp to disable the interface from periodically sending gratuitous ARP packets.

Syntax

arp send-gratuitous-arp [ interval milliseconds ]

undo arp send-gratuitous-arp

Default

Periodic sending of gratuitous ARP is disabled.

Views

Layer 3 Ethernet interface view, Layer 3 Ethernet subinterface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view, VLAN interface view

Predefined user roles

network-admin

mdc-admin

Parameters

interval milliseconds: Sets the interval at which gratuitous ARP packets are sent, in the range of 200 to 200000 milliseconds. The default value is 2000 milliseconds.

Usage guidelines

This function takes effect only when the enabled interface is up and an IP address has been assigned to the interface.

This function can send gratuitous ARP requests only for a VRRP virtual IP address, or the sending interface's primary IP address or manually configured secondary IP address. The primary IP address can be configured manually or automatically, whereas the secondary IP address must be configured manually.

If you change the interval for sending gratuitous ARP packets, the configuration takes effect at the next sending interval.

The frequency of sending gratuitous ARP packets may be much lower than expected if this function is enabled on multiple interfaces, or each interface is configured with multiple secondary IP addresses, or a small sending interval is configured in the preceding cases.

Examples

# Enable VLAN-interface 2 to send gratuitous ARP packets every 300 milliseconds.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] arp send-gratuitous-arp interval 300

gratuitous-arp-learning enable

Use gratuitous-arp-learning enable to enable learning of gratuitous ARP packets.

Use undo gratuitous-arp-learning enable to disable learning of gratuitous ARP packets.

Syntax

gratuitous-arp-learning enable

undo gratuitous-arp-learning enable

Default

Learning of gratuitous ARP packets is enabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

When learning of gratuitous ARP packets is enabled, a device adds an ARP entry that contains the sender IP and MAC addresses in a gratuitous ARP packet to its ARP table. If the corresponding ARP entry exists, the device updates the ARP entry.

When learning of gratuitous ARP packets is disabled, the device uses the received gratuitous ARP packets to update existing ARP entries, but not to create new ARP entries. You can disable this function to save ARP entry resources.

Examples

# Enable learning of gratuitous ARP packets.

<Sysname> system-view

[Sysname] gratuitous-arp-learning enable

gratuitous-arp-sending enable

Use gratuitous-arp-sending enable to enable sending gratuitous ARP packets upon receiving ARP requests whose target IP address is on a different subnet.

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

Syntax

gratuitous-arp-sending enable

undo gratuitous-arp-sending enable

Default

A device does not send gratuitous ARP packets when it receives ARP requests whose target IP address is on a different subnet.

Views

System view

Predefined user roles

network-admin

mdc-admin

Examples

# Disable a device from sending gratuitous ARP packets upon receiving ARP requests whose target IP address is on a different subnet.

<Sysname> system-view

[Sysname] undo gratuitous-arp-sending enable


display local-proxy-arp

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

Syntax

display local-proxy-arp [ interface interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface interface-type interface-number: Displays the local proxy ARP status for the specified interface.

Usage guidelines

The local ARP proxy status can be enabled or disabled.

If you specify an interface, this command displays the local proxy ARP status for the specified interface.

If you do not specify any interface, this command displays the local proxy ARP status for all interfaces.

Examples

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

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

Interface Vlan-interface2

 Local Proxy ARP status: enabled

Related commands

local-proxy-arp enable

display proxy-arp

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

Syntax

display proxy-arp [ interface interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface interface-type interface-number: Displays the proxy ARP status for the specified interface.

Usage guidelines

The proxy ARP status can be enabled or disabled.

If you specify an interface, this command displays proxy ARP status for the specified interface.

If you do not specify any interface, this command displays proxy ARP status for all interfaces.

Examples

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

<Sysname> display proxy-arp interface Vlan-interface 2

Interface Vlan-interface 2

 Proxy ARP status: disabled

Related commands

proxy-arp enable

local-proxy-arp enable

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

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

Syntax

local-proxy-arp enable [ ip-range startIP to endIP ]

undo local-proxy-arp enable

Default

Local proxy ARP is disabled.

Views

VLAN interface view, Layer 3 Ethernet interface view, Layer 3 Ethernet subinterface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view

Predefined user roles

network-admin

mdc-admin

Parameters

ip-range startIP to endIP: Specifies the IP address range for which local proxy ARP is enabled. The start IP address must be lower than or equal to the end IP address.

Usage guidelines

Proxy ARP enables a device on a network to answer ARP requests for an IP address not on that network. With proxy ARP, hosts on different broadcast domains can communicate with each other as they do on the same network.

Proxy ARP includes common proxy ARP and local proxy ARP.

Common proxy ARP allows communication between hosts that connect to different Layer 3 interfaces and reside in different broadcast domains.

Local proxy ARP allows communication between hosts that connect to the same Layer 3 interface and reside in different broadcast domains.

Only one IP address range can be specified by using the ip-range keyword on an interface.

Examples

# Enable local proxy ARP on VLAN-interface 2.

<Sysname> system-view

[Sysname] interface vlan-interface 2

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

# Enable local proxy ARP on VLAN-interface 2 for a specific IP address range.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] local-proxy-arp enable ip-range 1.1.1.1 to 1.1.1.20

Related commands

display local-proxy-arp

proxy-arp enable

Use proxy-arp enable to enable proxy ARP.

Use undo proxy-arp enable to disable proxy ARP.

Syntax

proxy-arp enable

undo proxy-arp enable

Default

Proxy ARP is disabled.

Views

VLAN interface view, Layer 3 Ethernet interface view, Layer 3 Ethernet subinterface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

Proxy ARP enables a device on a network to answer ARP requests for an IP address not on that network. With proxy ARP, hosts on different broadcast domains can communicate with each other as they do on the same network.

Proxy ARP includes common proxy ARP and local proxy ARP.

Common proxy ARP allows communication between hosts that connect to different Layer 3 interfaces and reside in different broadcast domains.

Local proxy ARP allows communication between hosts that connect to the same Layer 3 interface and reside in different broadcast domains.

Examples

# Enable proxy ARP on VLAN-interface 2.

<Sysname> system-view

[Sysname] interface vlan-interface 2

[Sysname-Vlan-interface2] proxy-arp enable

Related commands

display proxy-arp


ARP snooping commands

arp snooping enable

Use arp snooping enable to enable ARP snooping.

Use undo arp snooping enable to disable ARP snooping.

Syntax

arp snooping enable

undo arp snooping enable

Default

ARP snooping is disabled.

Views

VLAN view

Predefined user roles

network-admin

mdc-admin

Examples

# Enable ARP snooping on VLAN 2.

<Sysname> system-view

[Sysname] vlan 2

[Sysname-vlan2] arp snooping enable

display arp snooping

Use display arp snooping to display ARP snooping entries.

Syntax

In standalone mode:

display arp snooping [ vlan vlan-id ] [ slot slot-number ] [ count ]

display arp snooping ip ip-address [ slot slot-number ]

In IRF mode:

display arp snooping [ vlan vlan-id ] [ chassis chassis-number slot slot-number] [ count ]

display arp snooping ip ip-address [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

vlan vlan-id: Displays ARP snooping entries for a specific VLAN. The vlan-id argument is in the range of 1 to 4094.

count: Displays the number of the current ARP snooping entries.

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

slot slot-number: Specifies a card by its slot number. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on the specified IRF member device. The chassis-number argument specifies the member device ID in the IRF fabric. The slot-number argument specifies the slot number of the card. (In IRF mode.)

Usage guidelines

If you do not specify any keyword or argument, the command displays all ARP snooping entries.

Examples

# Display ARP snooping entries for VLAN 2.

<Sysname> display arp snooping vlan 2

IP Address   MAC Address    VLAN ID Interface  Aging       Status

3.3.3.3      0003-0003-0003 2       GE3/0/1    20          Valid

3.3.3.4      0004-0004-0004 2       GE3/0/2    5           Invalid

# Display the number of the current ARP snooping entries.

<Sysname> display arp snooping count

Total entries: 2

Table 2 Command output

Field

Description

IP Address

IP address in an ARP snooping entry.

MAC Address

MAC address in an ARP snooping entry.

VLAN ID

ID of the VLAN to which the ARP snooping entry belongs.

Interface

Input interface in an ARP snooping entry.

Aging

Aging time for an ARP snooping entry in minutes.

Status

Status of an ARP snooping entry: Valid, Invalid, Collision.

Total entries

Number of ARP snooping entries.

 

reset arp snooping

Use reset arp snooping to remove ARP snooping entries.

Syntax

reset arp snooping [ ip ip-address | vlan vlan-id ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

ip ip-address: Removes the ARP entry for a specific IP address.

vlan vlan-id: Removes the ARP entries for a specific VLAN. The vlan-id argument is in the range of 1 to 4094.

Usage guidelines

If you do not specify any keyword or argument, the command removes all ARP snooping entries.

Examples

# Remove ARP snooping entries for VLAN 2.

<Sysname> reset arp snooping vlan 2

 

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