Configuration Guide
Port-based Flow Control Configuration
Command
Function
Ruijie(config-if)#
switchport
port-security maximum
value
Set the maximum number of secure addresses on
the interface. The range is between 1 and 1000 and
the default value is 128.
Ruijie(config-if)#
switchport
port-security violation
{
protect
|
restrict
|
shutdown
}
Set the violation handling mode:
protect
: Protected port. When the number of secure
addresses if full, the security port will discard the
packets from unknown address (that is, not any
among the secure addresses of the port).
restrict
: In the case of violation, a Trap notification is
sent
shutdown
: In the case of violation, the port is shut
down and a Trap notification is sent. When a port is
closed because of violation, you can recover it from
the error status by using the
errdisable recovery
command
in the global configuration mode.
Ruijie(config-if)#
switchport
port-security mac-address sticky
Enable the Sticky MAC address learning.
In the interface configuration mode, you can disable the port security function of an interface with the
command
no switchport port-security
. Use the command
no switchport port-security maximum
to recover to the default maximum value. Use the command
no switchport port-security violation
to set violation handling to the default mode. Use the command
no switchport port-security
mac-address sticky
to set the Sticky MAC address learning to the default mode.
The instance below describes how to enable the port security function on interface gigabitethernet 0/3.
The maximum number of addresses to be set is 8 and the violation handling mode is set as protect.
Ruijie#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)#
interface
gigabitethernet
0/3
Ruijie(config-if)#
switchport mode access
Ruijie(config-if)#
switchport port-security
Ruijie(config-if)#
switchport port-security maximum
8
Ruijie(config-if)#
switchport port-security violation protect
Ruijie(config-if)#
switchport port-security mac-address sticky
Ruijie(config-if)#
end
Содержание RG-S2900G-E Series
Страница 1: ...RG S2900G E Series Switch RGOS Configuration Guide Release 10 4 2b12 p1 ...
Страница 91: ...Configuration Guide Configuring PoE Configuration ...
Страница 133: ...Configuration Guide EEE Configuration ...
Страница 319: ...Configuration Guide QinQ Configuration ...
Страница 408: ......
Страница 409: ...IP Routing Configuration 1 Static Route Configuration ...
Страница 412: ......
Страница 413: ...Multicast Configuration 1 IGMP Snooping Configuration 2 MLD Snooping Configuration ...
Страница 621: ...Configuration Guide CPU Protection Configuration udp helper 180 4 dhcp client 180 4 lacp 180 4 ...
Страница 757: ......
Страница 758: ...ACL QoS Configuration 1 Access Control List Configuration 2 QoS Configuration ...
Страница 801: ...Reliability Configuration 1 RLDP Configuration 2 TPP Configuration 3 SEM Configuration ...
Страница 901: ...Configuration Guide ERSPAN Configuration ...
Страница 902: ...Web based Configuration 1 Web based Configuration ...