Command Manual – MAC Address Table Management
H3C S7500E Series Ethernet Switches
Chapter 1 MAC Address Table Management
Configuration Commands
1-5
1.1.5 mac-address (system view)
Syntax
mac-address blackhole mac
-
address
vlan
vlan
-
id
mac-address
{
dynamic
|
static
}
mac
-
address interface interface
-
type
interface
-
number
vlan
vlan
-
id
undo mac-address
[ {
dynamic
|
static
}
mac
-
address interface interface
-
type
interface
-
number
vlan
vlan
-
id
]
undo mac-address
[
blackhole
|
dynamic
|
static
]
[
mac
-
address
]
vlan
vlan
-
id
undo mac-address
[
dynamic
| static
]
mac-address interface interface
-
type
interface
-
number vlan vlan
-
id
undo mac-address
[
dynamic | static
]
interface interface
-
type interface
-
number
View
System view
Parameters
blackhole
: Blackhole MAC address entries. These entries do not age but you can add
or remove them. The packets whose destination MAC addresses match blackhole
MAC address entries are dropped.
mac
-
address
: Specifies a MAC address in the format of H-H-H.
vlan vlan
-
id
: Specifies the VLAN to which the Ethernet port belongs., where
vlan-id
is
the specified VLAN ID, in the range 1 to 4094.
dynamic
: Dynamic MAC address entries. Aging time is set for these entries.
static
: Static MAC address entries. Similar to blackhole MAC address entries, these
entries do not age but you can add or remove them.
interface interface
-
type interface
-
number
: Outbound port, with
interface
-
type
interface
-
number
representing the port type and number.
Description
Use the
mac-address
command to add or modify a MAC address entry.
Use the
undo mac-address
[ {
blackhole
|
dynamic
|
static
}
mac
-
address interface
interface
-
type interface
-
number
vlan
vlan
-
id
]
command to remove one or all MAC
address entries.
Use the
undo mac-address
[
blackhole
|
dynamic
|
static
]
[
mac
-
address
]
vlan
vlan
-
id
command to remove a MAC address entry, MAC address entries of a specified
type, or all MAC address entries for a VLAN.