beautypg.com

Disabling mac address learning, Disabling global mac address learning, Disabling mac address learning on ports – H3C Technologies H3C WX3000E Series Wireless Switches User Manual

Page 44

background image

34

Step Command

Remarks

2.

Add or modify a
dynamic or static MAC

address entry.

mac-address { dynamic | static } mac-address
interface interface-type interface-number vlan
vlan-id

Use either command.
Make sure that you have
created the VLAN and

assign the interface to the
VLAN.

3.

Add or modify a

blackhole MAC address
entry.

mac-address blackhole mac-address vlan vlan-id

Add or modify a static or dynamic MAC address table entry on an interface

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter interface view.

interface interface-type
interface-number

N/A

3.

Add or modify a static or
dynamic MAC address entry.

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

Make sure that you have created
the VLAN and assign the interface

to the VLAN.

Disabling MAC address learning

You may need to disable MAC address learning sometimes to prevent the MAC address table from being

saturated, for example, when your device is being attacked by a large amount of packets with different

source MAC addresses.

Disabling global MAC address learning

Disabling global MAC address learning disables the learning function on all ports.
To disable MAC address learning:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Disable global MAC address

learning.

mac-address mac-learning disable Enabled by default.

Disabling MAC address learning on ports

After enabling global MAC address learning, you may disable the function on a single port, or on all

ports in a port group as needed.
To disable MAC address learning on an interface or a port group:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enable global MAC address
learning.

undo mac-address

mac-learning disable

Optional.
Enabled by default.