beautypg.com

H3C Technologies H3C S5120 Series Switches User Manual

Page 668

background image

1-4

When using the mac-address command to add a MAC address entry, the interface specified by the

interface keyword must belong to the VLAN specified by the vlan keyword, and the VLAN must already

exist. Otherwise, you will fail to add this MAC address entry.

Follow these steps to add, modify, or remove entries in the MAC address table on an interface:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter interface view

interface interface-type
interface-number

Add/modify MAC address
entries under the specified
interface view

mac-address { dynamic |
static } mac-address vlan
vlan-id

Required

When using the mac-address command to add a MAC address entry, the current interface must

belong to the VLAN specified by the vlan keyword, and the VLAN must already exist. Otherwise, you

will fail to add this MAC address entry.

Configuring the Aging Timer for Dynamic MAC Address Entries

The MAC address table on your device is available with an aging mechanism for dynamic entries. In this

way, dynamic MAC address entries that are not updated within their aging time will be deleted to make

room for new entries, and the MAC address table can be timely updated to accommodate the latest

network changes.

Set the aging timer appropriately: a long aging interval may cause the MAC address table to retain

outdated entries, exhaust the MAC address table resources, and thus fail to update its entries to

accommodate the latest network changes; a short interval may result in the removal of valid entries and

hence unnecessary broadcasts, which may affect device performance.

Follow these steps to configure the aging timer for dynamic MAC address entries:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure the aging timer for
dynamic MAC address entries

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

Optional

300 by default.