Displaying And Maintaining Port Security; Port Security Configuration Examples; Configuring The Autolearn Mode - H3C S5500-SI Series Operation Manual

Hide thumbs Also See for S5500-SI Series:
Table of Contents

Advertisement

Displaying and Maintaining Port Security

To do...
Display port security
configuration information,
operation information, and
statistics about one or more
ports or all ports
Display information about
secure MAC addresses
Display information about
blocked MAC addresses

Port Security Configuration Examples

Configuring the autoLearn Mode

Network requirements
Restrict port GigabitEthernet 1/0/1 of the switch as follows:
Allow up to 64 users to access the port without authentication and permit the port to learn and add
the MAC addresses of the users as secure MAC addresses.
After the number of secure MAC addresses reaches 64, the port stops learning MAC addresses. If
any frame with an unknown MAC address arrives, intrusion protection is triggered and the port is
disabled and stays silence for 30 seconds.
Figure 1-1 Network diagram for configuring the autoLearn mode
Configuration procedure
1)
Configure port security
# Enable port security.
<Switch> system-view
[Switch] port-security enable
# Enable intrusion protection trap.
[Switch] port-security trap intrusion
[Switch] interface gigabitethernet 1/0/1
# Set the maximum number of secure MAC addresses allowed on the port to 64.
[Switch-GigabitEthernet1/0/1] port-security max-mac-count 64
# Set the port security mode to autoLearn.
[Switch-GigabitEthernet1/0/1] port-security port-mode autolearn
Use the command...
display port-security [ interface
interface-list ]
display port-security mac-address
security [ interface interface-type
interface-number ] [ vlan vlan-id ] [ count ]
display port-security mac-address block
[ interface interface-type interface-number ]
[ vlan vlan-id ] [ count ]
1-11
Remarks
Available in any
view
Available in any
view
Available in any
view

Advertisement

Chapters

Table of Contents
loading

Table of Contents