Owners manual

DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
440
Switch# configure terminal
Switch(config)# interface eth1/0/1
Switch(config-if)# switchport port-security mode permanent
Switch(config-if)# switchport port-security maximum 5
Switch(config-if)#
This example shows how to manually add the secure MAC addresses 00-00-12-34-56-78 with VID 5 at
interface eth1/0/1.
Switch# configure terminal
Switch(config)# interface eth1/0/1
Switch(config-if)# switchport port-security mac-address 00-00-12-34-56-78 vlan 5
Switch(config-if)#
This example shows how to configure the Switch to drop all packets from the insecure hosts at the port-
security process level and increment the security violation counter if a security violation is detected.
Switch# configure terminal
Switch(config)# interface eth1/0/1
Switch(config-if)# switchport port-security violation restrict
Switch(config-if)#
49-5 switchport port-security aging
This command is used to configure the aging time for auto-learned dynamic secure addresses on an
interface. Use the no form of the command to reset to the default setting.
switchport port-security aging {time MINUTES | type {absolute | inactivity}}
no switchport port-security aging {time | type}
Parameters
MINUTES
Specifies the aging time for the auto-learned dynamic secured address
on this port. Its range is from 1 to 1440 in minutes.
type
Specifies to set the aging type.
absolute
Specifies to set absolute aging type. All the secure addresses on this
port age out exactly after the time specified and is removed from the
secure address list. This is the default type.
inactivity
Specifies to set the inactivity aging type. The secure addresses on this
port age out only if there is no data traffic from the secure source
address for the specified time period.
Default
By default, the port security aging feature is disabled.
The default time is 0 minutes.
The default aging type is absolute.
Command Mode
Interface Configuration Mode.