H3C Technologies H3C S7500E Series Switches User Manual
Page 115
9-4
To do…
Use the command…
Remarks
mac-address
blackhole
mac
-address vlan vlan-id
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 Ethernet
interface view
interface interface-type
interface-number
Enter Layer 2
aggregate
interface view
interface bridge-aggregation
interface-number
Enter Ethernet
interface view,
Enter Layer 2
aggregate
interface view,
or ONU port
view
Enter ONU port
view
interface onu interface-number
Required
Use any of the three commands.
The configuration you make in
Ethernet interface view or Layer 2
aggregate interface view or ONU
port view takes effect on the
current interface only
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.
When using the mac-address command to add a static MAC address for a VLAN, if this VLAN
configured the Isolate-user-vlan function, you must add this static MAC address for the
Isolate-user-vlan and the Secondary VLAN.