Switch 7700 Command reference Guide, v2.0

Table Of Contents
432 CHAPTER 11: USING SYSTEM MANAGEMENT COMMANDS
mac-address Syntax
mac-address { static | dynamic } mac-addr interface { interface-name
| interface-type interface-num } vlan vlan-id
undo mac-address [ static | dynamic ] [ [ mac-addr ] 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.
mac-addr: Specify the MAC address.
interface-type: interface type.
interface-num: interface number.
interface-name: interface name.
vlan-id: Specify the VLAN ID.
Description
Using the mac-address command, you can add/modify the MAC address table
entry. Using the
undo mac-address command, you can 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.
Because the address table is shared in the VLAN domain, you need specify the
VLAN of the multicast address and the port of the unicast address, when adding
entries to the address table.
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.
[SW7700]mac-address static 00e0-fc01-0101 interface Ethernet 1/0/1
vlan 2