16 ARP Command

Embed Size (px)

Citation preview

  • 7/31/2019 16 ARP Command

    1/14

    Command Manual ARPQuidway S3500-EA Series Ethernet Switches Table of Contents

    Huawei Proprietary and Confidential

    Copyright (c) Huawei Technologies Co., Ltd

    i

    Table of Contents

    Chapter 1 ARP Configuration Commands.................................................................................. 1-11.1 ARP Configuration Commands.......................................................................................... 1-1

    1.1.1 arp check enable..................................................................................................... 1-11.1.2 arp max-learning-num............................................................................................. 1-11.1.3 arp static.................................................................................................................. 1-21.1.4 arp timer aging ........................................................................................................ 1-31.1.5 display arp ............................................................................................................... 1-31.1.6 display arp ip-address............................................................................................. 1-51.1.7 display arp timer aging............................................................................................ 1-61.1.8 reset arp .................................................................................................................. 1-6

    1.2 Gratuitous ARP Configuration Commands........................................................................ 1-71.2.1 gratuitous-arp-sending enable ................................................................................1-71.2.2 gratuitous-arp-learning enable ................................................................................ 1-7

    1.3 ARP Source Suppression Configuration Commands........................................................ 1-81.3.1 arp source-suppression enable............................................................................... 1-81.3.2 arp source-suppression limit ................................................................................... 1-91.3.3 display arp source-suppression .............................................................................. 1-9

    Chapter 2 Proxy ARP Configuration Commands....................................................................... 2-1

    2.1 Proxy ARP Configuration Commands ............................................................................... 2-12.1.1 proxy-arp enable ..................................................................................................... 2-12.1.2 local-proxy-arp enable............................................................................................. 2-12.1.3 display proxy-arp..................................................................................................... 2-22.1.4 display local-proxy-arp ............................................................................................ 2-3

  • 7/31/2019 16 ARP Command

    2/14

    Command Manual ARPQuidway S3500-EA Series Ethernet Switches Chapter 1 ARP Configuration Commands

    Huawei Proprietary and Confidential

    Copyright (c) Huawei Technologies Co., Ltd

    1-1

    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

    Parameter

    None

    Description

    Use the arp check enable command to enable ARP entry check, inhibiting the device

    from learning multicast MAC addresses.

    Use the undoarp check enable command to disable the function, allowing the deviceto learn multicast MAC addresses.

    By default, ARP entry check is enabled.

    Example

    # Configure the switch to learn multicast MAC addresses.

    system-view

    [Sysname] undo 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

  • 7/31/2019 16 ARP Command

    3/14

    Chapter 1 ARP Configuration CommandsCommand Manual ARP

    Quidway S3500-EA Series Ethernet Switches

    1-2 Huawei Proprietary and Confidential

    Copyright (c) Huawei Technologies Co., Ltd

    Parameter

    number: Maximum number of dynamic ARP entries that the interface can learn. This

    argument ranges from 1 to 2,560.

    Description

    Use the arp max-learning-num command to set the maximum number of dynamic

    ARP entries that an interface can learn.

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

    By default, an interface can learn up to 2,560 dynamic ARP entries.

    Example

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

    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-idinterface-type interface-number]

    undo arp ip-address

    View

    System view

    Parameter

    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: Type and number of a port.

    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:

    z A static ARP entry is valid as long as the device works normally. However, when

    the VLAN or VLAN interface corresponding to an ARP entry is deleted, the entry is

    also deleted.

  • 7/31/2019 16 ARP Command

    4/14

    Command Manual ARPQuidway S3500-EA Series Ethernet Switches Chapter 1 ARP Configuration Commands

    Huawei Proprietary and Confidential

    Copyright (c) Huawei Technologies Co., Ltd

    1-3

    z When you configure an ARP entry with the vlan-idargument, the VLAN ID you

    specify must be the ID of an existing VLAN with VLAN interface already configured,

    and the Ethernet port following the argument must belong to the VLAN.

    Related command: reset arp, display arp.

    Example

    # Configure a static ARP entry, with the IP address being 202.38.10.2, the

    corresponding MAC address being 00e0-0001-0000, and the outbound port being

    Ethernet1/0/3 in VLAN 10.

    system-view

    [Sysname] arp static 202.38.10.2 00e0-0001-0000 10 ethernet1/0/3

    1.1.4 arp timer aging

    Syntax

    arp timer aging aging-time

    undo arp timer aging

    View

    System view

    Parameter

    aging-time: Aging time for dynamic ARP entries in minutes. It ranges from 1 to 1,440

    and defaults to 20.

    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.

    Related command: display arp timer aging.

    Example

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

    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 } text] | count ]

  • 7/31/2019 16 ARP Command

    5/14

    Chapter 1 ARP Configuration CommandsCommand Manual ARP

    Quidway S3500-EA Series Ethernet Switches

    1-4 Huawei Proprietary and Confidential

    Copyright (c) Huawei Technologies Co., Ltd

    View

    Any view

    Parameter

    all: Displays all ARP entries.

    dynamic: Displays dynamic ARP entries.

    static: Displays static ARP entries.

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

    4094.

    interface-type interface-number:Type and number of a port, the ARP entries of the port

    will be displayed.

    |: Uses a regular expression to specify the ARP entries to be displayed.

    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.

    text: A string for matching.

    count: Displays the number of ARP entries.

    Description

    Use the display arp command to display ARP entries in the ARP mapping table.Related command: arp static, reset arp.

    Example

    # Display the information of all ARP entries.

    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 Eth1/0/1 14 D

    192.168.0.115 000d-88f7-9f7d 1 Eth1/0/4 18 D

    192.168.0.39 0012-a990-2241 1 Eth1/0/4 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

  • 7/31/2019 16 ARP Command

    6/14

    Command Manual ARPQuidway S3500-EA Series Ethernet Switches Chapter 1 ARP Configuration Commands

    Huawei Proprietary and Confidential

    Copyright (c) Huawei Technologies Co., Ltd

    1-5

    Field Description

    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

    display arp all count

    Total Entry(ies): 4

    1.1.6 display arp ip-address

    Syntax

    display arpip-address[ | { begin | exclude | include } text]

    View

    Any view

    Parameter

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

    |: Uses a regular expression to specify the ARP entries to be displayed.

    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.

    text: A character string.

    Description

    Use the display arp ip-addresscommand to display the ARP entry for a specified IP

    address.

    Example

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

    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

  • 7/31/2019 16 ARP Command

    7/14

    Chapter 1 ARP Configuration CommandsCommand Manual ARP

    Quidway S3500-EA Series Ethernet Switches

    1-6 Huawei Proprietary and Confidential

    Copyright (c) Huawei Technologies Co., Ltd

    1.1.7 display arp timer aging

    Syntax

    display arp timer aging

    View

    Any view

    Parameter

    None

    Description

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

    entries.

    Related command: arp timer aging.

    Example

    # Display the aging time for dynamic ARP entries.

    [Sysname] display arp timer aging

    Current ARP aging time is 10 minute(s)

    The above output information indicates that the aging time of dynamic ARP entries is

    10 minutes.

    1.1.8 reset arp

    Syntax

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

    View

    User view

    Parameter

    all: Clears all ARP entries.

    dynamic: Clears all dynamic ARP entries.

    static: Clears all static ARP entries.

    interfaceinterface-type interface-number: Clears the ARP entries for a specified port.

    Description

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

  • 7/31/2019 16 ARP Command

    8/14

    Command Manual ARPQuidway S3500-EA Series Ethernet Switches Chapter 1 ARP Configuration Commands

    Huawei Proprietary and Confidential

    Copyright (c) Huawei Technologies Co., Ltd

    1-7

    With interface interface-type interface-number specified, the command clears only

    dynamic entries of the specified port.

    Related command: arp static and display arp.

    Example

    # Clear all static ARP entries.

    reset arp static

    % Info: This will delete all static entries. Continue? [Y/N] y

    1.2 Gratuitous ARP Configuration Commands

    1.2.1 gratuitous-arp-sending enable

    Syntax

    gratuitous-arp-sending enable

    undo gratuitous-arp-sending enable

    View

    System view

    Parameter

    None

    Description

    Use the gratuitous-arp-sending enable command to enable the device to send

    gratuitous ARP packets.

    Use the undo gratuitous-arp-sending enable command to disable the device from

    sending gratuitous ARP packets.

    By default, the device cannot send gratuitous ARP packets.

    Related command: gratuitous-arp-learning enable.

    Example

    # Disable the device from sending gratuitous ARP packets

    system-view

    [Sysname] undo gratuitous-arp-sending enable

    1.2.2 gratuitous-arp-learning enable

    Syntax

    gratuitous-arp-learning enable

  • 7/31/2019 16 ARP Command

    9/14

    Chapter 1 ARP Configuration CommandsCommand Manual ARP

    Quidway S3500-EA Series Ethernet Switches

    1-8 Huawei Proprietary and Confidential

    Copyright (c) Huawei Technologies Co., Ltd

    undo gratuitous-arp-learning enable

    View

    System view

    Parameter

    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 restore the default

    configuration.

    By default, the function is disabled.

    Example

    # Enable the gratuitous ARP packet learning function.

    system-view

    [Sysname] gratuitous-arp-learning enable

    1.3 ARP Source Suppression Configuration Commands

    1.3.1 arp source-suppression enable

    Syntax

    arp source-suppression enable

    undo arp source-suppression enable

    View

    System view

    Parameter

    None

    Description

    Use the arp source-suppression enable command to enable the ARP source

    suppression function.

    Use the undo arp source-suppression enable command to disable the function.

    By default, the ARP source suppression function is disabled.

    Related command: display arp source-suppression.

  • 7/31/2019 16 ARP Command

    10/14

    Command Manual ARPQuidway S3500-EA Series Ethernet Switches Chapter 1 ARP Configuration Commands

    Huawei Proprietary and Confidential

    Copyright (c) Huawei Technologies Co., Ltd

    1-9

    Example

    # Enable the ARP source suppression function.

    system-view

    [Sysname] arp source-suppression enable

    1.3.2 arp source-suppression limit

    Syntax

    arp source-suppression limit limit-value

    undo arp source-suppression limit

    View

    System view

    Parameter

    limit-value: Specifies the maximum number of packets with the same source IP address

    but unresolvable destination IP addresses that a port can receive in five seconds. It

    ranges from 2 to 1,024.

    Description

    Use the arp source-suppression limit command to set the maximum number of

    packets with the same source IP address but unresolvable destination IP addressesthat a port can receive in five seconds.

    Use the undo arp source-suppression limit command to restore the default value,

    which is 10.

    Related command: display arp source-suppression.

    Example

    # Set 100 as the maximum number of packets with the same source address but

    unresolvable destination IP addresses that a port can receive in five seconds.

    system-view

    [Sysname] arp source-suppression limit 100

    1.3.3 display arp source-suppression

    Syntax

    display arp source-suppression

    View

    Any view

  • 7/31/2019 16 ARP Command

    11/14

    Chapter 1 ARP Configuration CommandsCommand Manual ARP

    Quidway S3500-EA Series Ethernet Switches

    1-10 Huawei Proprietary and Confidential

    Copyright (c) Huawei Technologies Co., Ltd

    Parameter

    None

    Description

    Use the display arp source-suppression command to display information about the

    ARP source suppression configuration.

    Example

    # Display information about the ARP source suppression configuration.

    display arp source-suppression

    ARP source suppression is enabled

    Current suppression limit: 10

    Current cache length: 16

    Table 1-2 Description on fields of the display arp source-suppression command

    Field Description

    ARP source suppression isenabled

    The ARP source suppression function is enabled.

    Current suppression limitMaximum number of packets with the same sourceIP address but unresolvable IP addresses that aport allows to receive in five seconds

    Current cache length

    Number of source IP addresses from which

    packets are to be suppressed

  • 7/31/2019 16 ARP Command

    12/14

    Command Manual ARPQuidway S3500-EA Series Ethernet Switches Chapter 2 Proxy ARP Configuration Commands

    Huawei Proprietary and Confidential

    Copyright (c) Huawei Technologies Co., Ltd

    2-1

    Chapter 2 Proxy ARP Configuration Commands

    2.1 Proxy ARP Configuration Commands

    2.1.1 proxy-arp enable

    Syntax

    proxy-arp enable

    undo proxy-arp enable

    View

    VLAN interface view

    Parameter

    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 command: display proxy-arp.

    Example

    # Enable proxy ARP on VLAN-interface 2.

    system-view

    [Sysname] interface vlan-interface 2

    [Sysname-Vlan-interface2] proxy-arp enable

    2.1.2 local-proxy-arp enable

    Syntax

    local-proxy-arp enable

    undo local-proxy-arp enable

    View

    VLAN interface view

  • 7/31/2019 16 ARP Command

    13/14

    Chapter 2 Proxy ARP Configuration CommandsCommand Manual ARP

    Quidway S3500-EA Series Ethernet Switches

    2-2 Huawei Proprietary and Confidential

    Copyright (c) Huawei Technologies Co., Ltd

    Parameter

    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 command: display local-proxy-arp.

    Example

    # Enable local proxy ARP on VLAN-interface 2.

    system-view

    [Sysname] interface Vlan-interface 2

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

    2.1.3 display proxy-arp

    Syntax

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

    View

    Any view

    Parameter

    vlan-id: VLAN interface number.

    Description

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

    Related command: proxy-arp enable.

    Example

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

    display proxy-arp interface Vlan-interface 2

    Interface Vlan-interface2

    Proxy ARP status: disabled

  • 7/31/2019 16 ARP Command

    14/14

    Command Manual ARPQuidway S3500-EA Series Ethernet Switches Chapter 2 Proxy ARP Configuration Commands

    Huawei Proprietary and Confidential

    Copyright (c) Huawei Technologies Co., Ltd

    2-3

    2.1.4 display local-proxy-arp

    Syntax

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

    View

    Any view

    Parameter

    vlan-id: VLAN interface number.

    Description

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

    Related command: local-proxy-arp enable.

    Example

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

    display local-proxy-arp interface vlan-interface 2

    Interface Vlan-interface2

    Local Proxy ARP status: enabled