142
CHAPTER 3
INTRODUCTION TO CLI
3.9.36 (config)# port-security
3.9.36.1 (config)# port-security
Syntax:
(config)# port-security
Explanation:
Enable port security function globally.
Example:
Enable port security function globally.
Negation:
(config)# 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.2 (config)# port-security aging
Syntax:
(config)# port-security aging
Explanation:
Enable port security aging function. If enabled, secured MAC addresses are subject to aging as discussed
in “Aging time” command. With aging enabled, a timer is started once the end-host gets secured. When the timer
expires, the switch starts looking for frames from the end-host, and if such frames are not seen within the next Aging
Period, the end-host is assumed to be disconnected, and the corresponding resources are freed on the switch.
Example:
Enable port security aging function.
Negation:
(config)# no port-security aging
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.3 (config)# port-security aging time
Syntax:
(config)# port-security aging time <v_10_to_10000000>
Explanation:
Configure a desired aging time value. If “Aging” is enabled, secured MAC addresses are subject to aging
as discussed this command. With aging enabled, a timer is started once the end-host gets secured. When the timer
expires, the switch starts looking for frames from the end-host, and if such frames are not seen within the next Aging
Period, the end-host is assumed to be disconnected, and the corresponding resources are freed on the switch.
Parameters:
<v_10_to_10000000>: Specify the aging time value. The allowed range is between 10 and 10,000,000 seconds.
Example:
Set the aging time value to 1800 seconds.
# config t
(config)# port-security aging
# config t
(config)# port-security
Summary of Contents for MSW-4424C Series
Page 1: ...1 MSW 4424C MSW 4424CS L2 Gigabit Carrier Ethernet Switch ...
Page 382: ......