< Home

display mac-address snooping

Function

The display mac-address snooping command displays snooping MAC address entries generated based on the snooping binding table.

Format

display mac-address snooping [ interface-type interface-number | vlan vlan-id ] * [ verbose ]

Parameters

Parameter Description Value
interface-type interface-number
Displays the static MAC address entry on a specified interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

vlan vlan-id

Displays all the static MAC address entries on all the interfaces in a specified VLAN.

The value is an integer that ranges from 1 to 4094.

verbose

Displays detailed information about static MAC address entries.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When you run the user-bind ip sticky-mac command in the interface view, the device generates snooping MAC address entries based on the snooping binding table. A snooping MAC address entry includes the user MAC address and VLAN ID. The display mac-address snooping command displays snooping MAC address entries generated based on the snooping binding table. If no interface or VLAN is specified, all the snooping MAC address entries generated based on the snooping binding table are displayed.

Example

# Display the snooping MAC address entries generated based on the snooping binding table on the device.

<HUAWEI> display mac-address snooping
------------------------------------------------------------------------------- 
MAC Address    VLAN/VSI/BD                          Learned-From        Type       
------------------------------------------------------------------------------- 
0000-c102-0602 10/-/-                               GE0/0/1             snooping     
------------------------------------------------------------------------------- 
Total items displayed = 1
Table 1 Description of the display mac-address snooping command output

Item

Description

MAC Address

User MAC address.

VLAN/VSI/BD ID of the VLAN, name of the VSI, or ID of the BD that the user belongs to.

Learned-From

Port number.

Type

Type of a MAC address entry, including:
  • static: indicates a static MAC address entry.
  • blackhole: indicates a blackhole MAC address entry.
  • dynamic: indicates a dynamic MAC address entry.
  • security: indicates a security MAC address entry.
  • sticky: indicates a sticky MAC address entry.
  • snooping: indicates a MAC address entry generated based on the snooping binding table.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >