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.
Содержание RG-S2600G-I Series
Страница 1: ...1 CLI Reference Guide RG S2600G I Series Switches RGOS 10 4 3b16...
Страница 5: ...5...
Страница 192: ...CLI ReferenceInterface Configuration Commands Interface Configuration Commands Platform Description...
Страница 452: ...CLI Reference DHCP Configuration Commands commands clear ip dhcp server statistics Delete the DHCP server statistics...
Страница 505: ...CLI Reference TCP Configuration Commands Related commands Command Description...
Страница 513: ...CLI Reference IPv4 REF Configuration Commands Platform description N A Command history Version Description...
Страница 514: ...IP Routing Configuration Commands 1 IP Routing Configuration Commands...
Страница 527: ...Multicast Configuration Commands 1 IGMP Snooping Configuration Commands 2 MLD Snooping Configuration Commands...
Страница 642: ...CLI Reference TACACS Configuration Commands host...
Страница 652: ...CLI Reference 802 1X Configuration Commands Ruijie config if end...
Страница 744: ...CLI Reference CPU Protection Configuration Commands Caution This command is not supported on S3760 series...
Страница 773: ...CLI Reference IPSource Guard Configuration Commands Platform description This command is supported on all switches...
Страница 776: ...CLI Reference ND Snooping Configuration Commands...
Страница 901: ...CLI Reference NFPP Configuration Commands...
Страница 902: ...ACL QOS Configuration Commands 1 ACL Configuration Commands 2 QoS Configuration Commands...
Страница 999: ...CLI Reference RLDP Configuration Command Command mode Privileged EXEC mode...
Страница 1004: ...CLI Reference DLDP Configuration Commands Ruijie config if FastEthernet 0 0 clear dldp 20 1 1 1 10 1 1 1...
Страница 1005: ...CLI Reference DLDP Configuration Commands...
Страница 1146: ...CLI Reference VSU Configuration Commands Examples Ruijie vsu conver to stack Related Commands Command Description N A N A...
Страница 1191: ...CLI Reference Guide RSPAN Configuration Commands Platform Description N A...
Страница 1192: ...CLI Reference Guide...