CLI Reference Port-based Flow Control Configuration Commands
switchport port-security mac-address
Use this command to configure manually the static secure address in the interface configuration mode.
Use the no form of the command to remove the configuration.
[no] switchport port-security mac-address mac-address [vlan vlan-id]
Static secure MAC address.
Vlan ID of the MAC address.
Note: the configuration of vlan-id
is only supported on the TRUNK
port.
Interface configuration mode.
The example below describes how to configure a static secure address
00d0.f800.5555 with VID 2 for interface g 0/10:
Ruijie(config)#inter g0/10
Ruijie(config-if)# switchport port-security mac-address
00d0.f800.5555 vlan 2
Show port security settings.
Enable the port-security.
switchport
port-security binding
Configure the secure address
binding.
switchport
port-security
mac-address interface
Set the static secure address in
the privileged EXEC mode.
switchport
port-security aging
Set the aging time for the
secure address.