D-Link DGS-1510 Series Reference Manual page 453

Gigabit ethernet smartpro switch
Hide thumbs Also See for DGS-1510 Series:
Table of Contents

Advertisement

DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
Usage Guideline
Use this command to enable or disable SNMP notifications for port security address violation, and
configure the number of traps per second.
Example
This example shows how to enable sending trap for port security address violation and set the
number of traps per second to 3.
Switch# configure terminal
Switch(config)# snmp-server enable traps port-security
Switch(config)#
52-4 switchport port-security
This command is used to configure the port security settings to restrict the number of users that are
allowed to gain access rights to a port. Use the no form of this command to disable port security or to
delete a secure MAC address.
switchport port-security [maximum VALUE | violation {protect | restrict | shutdown} | mode
{permanent | delete-on-timeout} | mac-address [permanent] MAC-ADDRESS [vlan VLAN-ID]]
no switchport port-security [maximum | violation | mode | mac-address [permanent] MAC-
ADDRESS [vlan VLAN-ID]]
Parameters
maximum VALUE
protect
restrict
shutdown
permanent
delete-on-timeout
mac-address MAC-ADDRESS
permanent
vlan VLAN-ID
Default
By default, this option is disabled.
Command Mode
(Optional) Specifies to set the maximum number of secure MAC
addresses allowed. If not specified, the default value is 32. The
valid range is from 0 to 6656.
(Optional) Specifies to drop all packets from the insecure hosts at
the port-security process level, but does not increment the security-
violation count.
(Optional) Specifies to drop all packets from the insecure hosts at
the port-security process level and increments the security-violation
count and record the system log.
(Optional) Specifies to shut down the port if there is a security
violation and record the system log.
(Optional) Specifies that under this mode, all learned MAC
addresses will not be purged out unless the user manually deletes
those entries.
(Optional) Specifies that under this mode, all learned MAC
addresses will be purged out when an entry is aged out or when the
user manually deletes these entries.
(Optional) Specifies to add a secure MAC address to gain port
access rights.
(Optional) Specifies to set the secure permanent configured MAC
address of the port. This entry is same as the one learnt under the
permanent mode.
(Optional) Specifies a VLAN. If no VLAN is specified, the MAC
address will be set with a PVID.
450

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents