101
Command Mode
Interface Configuration Mode(interface ethernet / interface range ethernet)
Example
Enable Port Security function for port1, select Static mode as the learn mode,
and specify the maximum number of MAC addresses that can be learned on
this port as 30:
TP-LINK(config)# interface ethernet 1
TP-LINK(config-if)# bridge address port-security max-number 30 mode
static status enable
bridge address static
Description
The bridge address static command is used to add the static MAC address
entry. To remove the corresponding entry, please use no bridge address static
command. The static address can be added or removed manually, independent
of the aging time. In the stable networks, the static MAC address entries can
facilitate the switch to reduce broadcast packets and enhance the efficiency of
packets forwarding remarkably.
Syntax
bridge address static {mac mac} {vid vid} {port port}
no bridge address static [mac] [vid] [port]
Parameter
mac ——The MAC address of the entry you desire to add.
vid —— The VLAN ID number of your desired entry. It ranges from 1 to 4094.
port —— The Port number of your desired entry. It ranges from 1 to 12.
Command Mode
Global Configuration Mode
Example
Add a static Mac address entry to bind the MAC address 00:02:58:4f:6c:23,
VLAN1 and Port1 together:
TP-LINK(config)# bridge address static mac 00:02:58:4f:6c:23 vid 1 port 1