beautypg.com

Disabling mac address learning on a vlan – H3C Technologies H3C S7500E Series Switches User Manual

Page 117

background image

9-6

To do…

Use the command…

Remarks

Disable MAC address learning on

an Ethernet port or port group

mac-address mac-learning

disable

Required

Enabled by default.

When global MAC address learning is disabled, the learned MAC addresses remain valid until
they age out.

For configuration about port groups, refer to Ethernet Interface Configuration in the Layer 2 - LAN

Switching Configuration Guide

.

Disabling MAC address learning on a VLAN

You may disable MAC address learning on a per-VLAN basis.

Follow these steps to disable MAC address learning on a VLAN:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable global MAC address

learning

undo mac-address mac-learning

disable

Optional

Enabled by default

Enter VLAN view

vlan

vlan-id

Disable MAC address learning on

the VLAN

mac-address mac-learning

disable

Required

Enabled by default

When global MAC address learning is disabled, the learned MAC addresses remain valid until they
age out.

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