143
CHAPTER 3
INTRODUCTION TO CLI
Negation:
(config)# no port-security aging time
Show:
> show port-security port [ interface ( <port_type> [ <v_port_type_list> ] ) ]
# show port-security port [ interface ( <port_type> [ <v_port_type_list> ] ) ]
3.9.36.4 (config-if)# port-security
Syntax:
(configt-if)# port-security
Explanation:
Enable the port security function on the selected ports.
Example:
Enable Gigabit Ethernet port 1-10’s port security function.
Negation:
(configt-if)# no port-security
Show:
> show port-security switch [ interface ( <port_type> [ <v_port_type_list> ] ) ]
# show port-security switch [ interface ( <port_type> [ <v_port_type_list> ] ) ]
3.9.36.5 (config-if)# port-security maximum
Syntax:
(configt-if)# port-security maximum [ <v_1_to_1024> ]
Explanation:
The maximum number of MAC addresses that can be secured on this port. The number cannot exceed
1024. If the limit is exceeded, the corresponding action is taken.
Parameters:
[ <v_1_to_1024> ]: Specify a value between 1 and 1024.
Example:
Limit Gigabit Ethernet port 1-10’s MAC addresses can be learnt to 5.
Negation:
(configt-if)# no port-security maximum
Show:
> show port-security port [ interface ( <port_type> [ <v_port_type_list> ] ) ]
# show port-security port [ interface ( <port_type> [ <v_port_type_list> ] ) ]
# config t
(config)# interface gigabitethernet 1/1-10
(config-if)# port-security maximum 5
# config t
(config)# interface gigabitethernet 1/1-10
(config-if)# port-security
# config t
(config)# port-security aging time 1800
Summary of Contents for MSW-4424C Series
Page 1: ...1 MSW 4424C MSW 4424CS L2 Gigabit Carrier Ethernet Switch ...
Page 382: ......