CLI Reference
Port-based Flow Control Configuration Commands
violation shutdown
Discard the packets breaching the security, send the
Trap message and disable the interface.
Default
configuration
Disabled.
Command
mode
Interface configuration mode.
Usage
guidelines
With port security, you can strictly control the input on a specific port by restricting
access to the MAC address and IP address (optional) of the port on the switch.
After you configure some secure addresses for the port security-enabled port,
only the packets from these addresses can be forwarded. In addition, you can
also restrict the maximum number of secure addresses on a port. If you set the
maximum value to 1 and configure one secure address for this port, the
workstation (whose address is the configured secure Mac address) connected to
this port will occupy all the bandwidth of this port exclusively.
Examples
This example shows how to enable port security on interface gigabitethernet 1/1,
and the way to deal with violation is
shutdown
:
Ruijie(config)#
interface gigabitethernet
1/1
Ruijie(config-if)#
switchport port-security
Ruijie(config-if)#
switchport port-security violation shutdown
Related
commands
Command
Description
show port-security
Show port security settings.
switchport port-security aging
Use this command to set the aging time for all secure addresses on a interface. To enable this function,
you need to set the maximum number of secure addresses. In this way, you can make the switch
automatically add or delete the secure addresses on the interface. Use the
no
form of the command to
apply the aging time on automatically learned address or to disable the aging.
switchport port-security aging {static | time
time
}
no switchport port-security aging {static | time }
Parameter
description
Parameter
Description
static
Apply the aging time to both manually
configured
secure
addresses
and
automatically
learned
addresses.
Otherwise,
apply
it
to
only
the
automatically learned secure addresses.
Summary of Contents for RG-S2600G-I Series
Page 1: ...1 CLI Reference Guide RG S2600G I Series Switches RGOS 10 4 3b16...
Page 5: ...5...
Page 505: ...CLI Reference TCP Configuration Commands Related commands Command Description...
Page 514: ...IP Routing Configuration Commands 1 IP Routing Configuration Commands...
Page 642: ...CLI Reference TACACS Configuration Commands host...
Page 652: ...CLI Reference 802 1X Configuration Commands Ruijie config if end...
Page 776: ...CLI Reference ND Snooping Configuration Commands...
Page 901: ...CLI Reference NFPP Configuration Commands...
Page 902: ...ACL QOS Configuration Commands 1 ACL Configuration Commands 2 QoS Configuration Commands...
Page 999: ...CLI Reference RLDP Configuration Command Command mode Privileged EXEC mode...
Page 1005: ...CLI Reference DLDP Configuration Commands...
Page 1191: ...CLI Reference Guide RSPAN Configuration Commands Platform Description N A...
Page 1192: ...CLI Reference Guide...