C
HAPTER
19
| MAC Commands
– 297 –
mac lookup This command searches for the specified MAC address in the specified
VLAN.
SYNTAX
mac lookup mac-address [vlan-id]
mac-address - Physical address of a device mapped to a port.
vlan-id - VLAN identifier. (Range: 1-4095)
EXAMPLE
MAC>lookup 00-12-cf-94-34-dd
Type VID MAC Address Ports
------ --- ----------------- -----
Static 1 00-12-cf-94-34-dd 1
MAC>
mac agetime This command displays or sets the MAC address aging time.
SYNTAX
mac agetime [age-time]
age-time - The time after which a learned entry is discarded.
(Range: 10-1000000 seconds, or 0 to disable aging)
DEFAULT SETTING
300 seconds
EXAMPLE
MAC>agetime 100
MAC>
mac learning This command displays or sets the MAC address learning mode.
SYNTAX
mac learning [port-list] [auto | disable | secure]
port-list - A specific port or range of ports. (Range: 1-28, or all)
auto - Learning is done automatically as soon as a frame with an
unknown source MAC address is received.
disable - No addresses are learned and stored in the MAC address
table.
secure - Only static MAC address entries are used, all other frames
are dropped.