Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510
Chapter 1 Port Security Commands
Huawei Technologies Proprietary
1-9
1.1.7 port-security max-mac-count
Syntax
port-security max-mac-count count-value
undo port-security max-mac-count
View
Ethernet port view
Parameter
count-value
: Maximum number of MAC addresses, in the range of 1 to 1024.
Description
Use the
port-security max-mac-count
command to set the maximum number of MAC
addresses allowed to access the port. The number is the sum of the following:
z
Number of MAC addresses that pass 802.1x authentication
z
Number of MAC addresses that pass MAC address authentication
z
Number of Security MAC addresses
Use the
undo port-security max-mac-count
command to cancel this limit.
By default, there is no limit on the number of MAC addresses allowed to access the
port.
Example
# Enter system view
<Quidway> system-view
System View: return to User View with Ctrl+Z.
# Enable port security.
[Quidway] port-security enable
# Enter Ethernet1/0/1 port view.
[Quidway] interface Ethernet1/0/1
# Set the maximum number of MAC addresses allowed to access the port to 100.
[Quidway-Ethernet1/0/1] port-security max-mac-count 100
1.1.8 port-security ntk-mode
Syntax
port-security ntk-mode
{
ntkonly
|
ntk-withbroadcasts
|
ntk-withmulticasts
}
undo port-security ntk-mode