36
is allowed to login. To cancel the user access limit, please use no user
access-control command.
Syntax
user access-control mac-based mac-addr
no user access-control
Parameter
mac-addr —— The source MAC address. Only the user with this MAC address
is allowed to login.
Command Mode
Global Configuration Mode
Example
Configure that only the user whose MAC address is 00:00:13:0A:00:01 is
allowed to login:
TL-SG2424(config)# user access-control mac-based 00:00:13:0A:00:01
user access-control port-based Description
The user access-control port-based command is used to limit the ports for
login. Only the users connected to these ports you set here are allowed to login.
To cancel the user access limit, please use no user access-control command.
Syntax
user access-control port-based interface { gigabitEthernet port | range
gigabitEthernet port-list }
no user access-control
Parameter
port —— The Ethernet port number.
port-list ——The list group of Ethernet ports, in the format of 1/0/1-4. You can
appoint 5 ports at most.
Command Mode
Global Configuration Mode