Command Manual (For Soliton) – MAC Address Table Management
H3C S3100 Series Ethernet Switches
Chapter 1 MAC Address Table
Management Configuration Commands
1-6
Syntax
Description
mac-address
[
interface
interface-type
interface-number
]
vlan
vlan-id
Removes a specified MAC address
entry.
Description
Use the
mac-address
command to add or modify a MAC address entry.
Use the
undo mac-address
command to remove one or more MAC address entries.
In Ethernet port view, the MAC address entry configured with the
mac-address
command in Ethernet port view takes the current Ethernet port as the outgoing port.
If the MAC address you input in the
mac-address
command already exists in the MAC
address table, the system will modify the attributes of the corresponding MAC address
entry according to your settings in the command.
You can remove all unicast MAC address entries on a port, or remove a specific type of
MAC address entries, such as the addresses learnt by the system, dynamic or static
MAC address entries configured, or blackhole addresses.
Examples
# Configure a static MAC address entry with the following settings:
z
MAC address: 000f-e20f-0101
z
Outbound port: Ethernet 1/0/1 port
z
Ethernet 1/0/1 port belongs to VLAN 2.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] mac-address static 000f-e20f-0101 interface Ethernet 1/0/1 vlan 2
1.1.5 mac-address max-mac-count
Syntax
mac-address max-mac-count count
undo mac-address max-mac-count
View
Ethernet port view
Parameters
count
: Maximum number of MAC addresses a port can learn. This argument ranges
from 0 to 8192. A value of 0 disables the port from learning MAC addresses.