3Com 4500 PWR 26-PORT Switch User Manual


 
336 CHAPTER 12: USING SYSTEM MANAGEMENT COMMANDS
undo mac-address [ { static | dynamic | blackhole } mac-address
interface { interface-name | interface-type interface-num ] vlan
vlan-id ]
View
System view
Parameter
static: Static table entry, lost after resetting switch.
dynamic: Dynamic table entry, which will be aged.
blackhole: Blackhole table entry, the packet with this destination MAC address
will be discarded.
mac-addr: Specify the MAC address.
interface-type: Specify the interface type.
interface-num: Specify the interface number.
interface-name: Specify the interface name.
vlan-id: Specify the VLAN ID.
Description
Use the mac-address command to add/modify the MAC address table entry. Use
the
undo mac-address command to delete MAC address table entry
If the input address has been existing in the address table, the original entry will be
modified. That is, replace the interface pointed by this address with the new
interface and the entry attribute with the new attribute (dynamic entry and static
entry).
All the (MAC unicast) addresses on a certain interface can be deleted. User can
choose to delete any of the following addresses: address learned by system
automatically, dynamic address configured by user, static address configured by
user.
For the related commands, see display mac-address.
Example
Configure the port number corresponding to the MAC address 00e0-fc01-0101 as
Ethernet1/0/1 in the address table, and sets this entry as static entry.
<SW4500>sys
System View: return to User View with Ctrl+Z.
[SW4500]mac-address static 00e0-fc01-0101 interface Ethernet 1/0/1
vlan 2
mac-address
max-mac-count
Syntax
mac-address max-mac-count count