30
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-SL2428(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 { fastEthernet
port
| gigabitEthernet
port
| range fastEthernet
port-list
| 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
Example
Configure that only the users connected to ports 2-6 are allowed to login:
TL-SL2428(config)# user access-control port-based interface range
fastEthernet
1/0/2-6