H3C WX6103 Access Controller Switch Interface Board Command Reference-6W102

HomeSupportWirelessH3C WX6000 Series Access ControllersReference GuidesCommand ReferencesH3C WX6103 Access Controller Switch Interface Board Command Reference-6W102
07-MAC Address Table Management Commands
Title Size Download
07-MAC Address Table Management Commands 35.16 KB

MAC Address Table Management Configuration Commands

 

The term switch in this document refers to a switch in a generic sense or an access controller configured with the switching function unless otherwise specified.

 

MAC Address Table Management Configuration Commands

display mac-address

Syntax

display mac-address blackhole [ vlan vlan-id ] [ count ]

display mac-address [ mac-address [ vlan vlan-id ] | [ dynamic | static ] [ interface interface-type interface-number ] [ vlan vlan-id ] [ count ] ]

View

Any view

Parameters

blackhole: Displays blackhole MAC address entries. These entries do not age but you can add or remove them. The packets whose destination MAC addresses match blackhole MAC address entries are dropped.

vlan vlan-id: Displays MAC address entries of the specified VLAN, which is in the range 1 to 4094.

count: Displays the total number of MAC addresses in the MAC address table.

mac-address: Displays MAC address entries in a specified MAC address, in the format of H-H-H.

dynamic: Displays dynamic MAC address entries. Aging time is set for these entries.

static: Displays static MAC address entries. Similar to blackhole MAC address entries, these entries do not age but you can add or remove them.

interface interface-type interface-number: Displays MAC address learning status of the specified interface. interface-type interface-number specifies an interface by its type and number.

Description

Use the display mac-address command to display information about the MAC address table.

Related commands: mac-address (system view), mac-address (Ethernet interface view)mac-address timer.

Examples

# Display the MAC address table entry for MAC address 000f-e201-0101.

<Sysname> display mac-address 000f-e201-0101

MAC ADDR          VLAN ID STATE     PORT INDEX            AGING TIME(s)

000f-e201-0101    1        Learned       GigabitEthernet0/0/1 AGING

 

  ---  1 mac address(es) found  ---      

Table 1-1 Description on the fields of the display mac-address command

Field

Description

MAC ADDR

MAC address

VLAN ID

ID of the VLAN to which the MAC address belongs

STATE

State of a MAC address, which could be Config static, Config dynamic, Learned and Blackhole

PORT INDEX

Port number (Displayed as N/A for a blackhole MAC address)

 AGING TIME(s)

Aging time, which could be:

l      AGING, indicates that the entry is aging.

l      NOAGED, indicates that the entry does not age.

 

display mac-address aging-time

Syntax

display mac-address aging-time

View

Any view

Parameters

None

Description

Use the display mac-address aging-time command to display the aging time of dynamic entries in the MAC address table.

Related commands: mac-address (system view), mac-address (Ethernet interface view), mac-address timer, display mac-address.

Examples

# Display the aging time of dynamic entries in the MAC address table.

<Sysname> display mac-address aging-time

Mac address aging time: 300s

The above information indicates that the aging time of dynamic entries in the MAC address table is 300 seconds.

mac-address max-mac-count

Syntax

mac-address max-mac-count count

undo mac-address max-mac-count

View

Ethernet port view, port group view

Parameters

count: Maximum number of MAC addresses that can be learned on a port. When the argument takes 0, the VLAN is not allowed to learn MAC addresses. The value ranges from 0 to 4096.

Description

Use the mac-address max-mac-count count command to configure the maximum number of MAC addresses that can be learned on an Ethernet port.

Use the undo mac-address max-mac-count command to restore the default maximum number of MAC addresses that can be learned on an Ethernet port.

The default maximum number of MAC addresses that can be learned on a port is not configured.

Executed in Ethernet port view, the command takes effect on the current port only; executed in port group view, the command takes effect on all ports in the port group.

Related commands: mac-address, mac-address timer.

Examples

# Set the maximum number of MAC addresses that can be learned on port GigabitEthernet 0/0/1 to 600.

<Sysname> system-view

[Sysname] interface GigabitEthernet 0/0/1

[Sysname-GigabitEthernet0/0/1] mac-address max-mac-count 600

mac-address timer

Syntax

mac-address timer { aging seconds | no-aging }

undo mac-address timer aging

View

System view

Parameters

aging seconds: Sets an aging timer in seconds for dynamic MAC address entries, in the range 10 to 1000000.

no-aging: Sets dynamic MAC address entries not to age.

Description

Use the mac-address timer command to configure the aging timer for dynamic MAC address entries.

Use the undo mac-address timer command to restore the default.

By default the aging timer is 300 seconds.

Set the aging timer appropriately: a long aging interval may cause the MAC address table to retain outdated entries and fail to accommodate latest network changes; a short interval may result in removal of valid entries and hence unnecessary broadcasts which may affect device performance.

Examples

# Set the aging timer for dynamic MAC address entries to 500 seconds.

<Sysname> system-view

[Sysname] mac-address timer aging 500

 

  • 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 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
新华三官网