beautypg.com

Disabling mac address learning on interfaces, Disabling mac address learning on a vlan, Bulk configuring interfaces – H3C Technologies H3C S12500-X Series Switches User Manual

Page 36: Configuration guidelines, Configuration procedure

background image

25

Disabling MAC address learning on interfaces

With global MAC address learning enabled, you can disable MAC address learning on a single

interface.
To disable MAC address learning on an interface:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter interface view.

Enter Layer 2 Ethernet interface

view:
interface interface-type

interface-number

Enter Layer 2 aggregate interface

view:

interface bridge-aggregation

interface-number

Enter S-channel interface view:

interface s-channel

interface-number.channel-id

Enter S-channel aggregate

interface view:

interface schannel-aggregation

interface-number:channel-id

N/A

3.

Disable MAC address

learning on the interface.

undo mac-address mac-learning
enable

By default, MAC address
learning on the interface is
enabled.

Disabling MAC address learning on a VLAN

With global MAC address learning enabled, you can also disable MAC address learning on a

per-VLAN basis.
To disable MAC address learning on a VLAN:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enable global MAC address
learning.

mac-address mac-learning enable

By default, global MAC address
learning is enabled.

3.

Enter VLAN view.

vlan vlan-id

N/A

4.

Disable MAC address
learning on the VLAN.

undo mac-address mac-learning
enable

By default, MAC address learning
on the VLAN is enabled.

Configuring the aging timer for dynamic MAC address entries

The MAC address table uses an aging timer for dynamic MAC address entries for security and efficient

use of table space. If a dynamic MAC address entry has failed to update before the aging timer expires,

the device deletes the entry. This aging mechanism makes sure the MAC address table could promptly
update to accommodate latest network topology changes.

This manual is related to the following products: