D-Link dgs-1510-28 [441/702] Command mode

D-Link dgs-1510-28 [441/702] Command mode
DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
438
By default, this option is disabled.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 12.
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)#
49-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
Specifies to set the maximum number of secure MAC addresses
allowed. If not specified, the default value is 32. The valid range is from
1 to 6656.
protect
Specifies to drop all packets from the insecure hosts at the port-
security process level, but does not increment the security-violation
count.
restrict
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.
shutdown
Specifies to shut down the port if there is a security violation and
record the system log.
permanent
Specifies that under this mode, all learned MAC addresses will not be
purged out unless the user manually deletes those entries.
delete-on-timeout
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.
mac-address MAC-ADDRESS
Specifies to add a secure MAC address to gain port access rights.
permanent
Specifies to set the secure permanent configured MAC address of the

Содержание

Скачать