XS26GS Managed Optical Ethernet Switch User Manual
117
interface ethernet
interface-number
: specifies the outgoing port by its type and
number for the MAC address. All traffic destined for the MAC address will be sent out
from the port.
vlan
vlan-id
: specifies a VLAN ID, in a range from 1 to 4094. The VLAN must exist.
Description
Use
mac-address
command to add or modify a MAC address entry.
Use
no mac-address
command to remove one or more MAC address entries.
In Ethernet port view, the MAC address entry configured by
mac-address
command takes the Ethernet port as an 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
XS#
mac-address dynamic
00-1d-72-23-ed-70
interface ethernet
0/13
vlan
3
The configuration is successful.
XS#
no mac-address vlan
3
Delete mac address successfully.
mac-address timer
Syntax
mac-address timer aging
age
mac-address timer no-aging
no mac-address timer
View
System view
Parameters
aging
age
: specifies the aging time (in seconds) for dynamic MAC address entries.
The
age
argument ranges from 10 to 1000000.
no
-
aging
: specifies not-to-age dynamic MAC address entries.
Description
Use
mac
-
address timer
command to set MAC address aging timer.
Use
no mac
-
address timer
command to restore to the default.
The default MAC address aging timer is 300 seconds.
The timer applies only to dynamic address entries, including both entries learned
and configured.