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