To do...
Ignore the authorization
information from the RADIUS
server
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.
Use the command...
interface-number
port-security authorization
ignore
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
Required
By default, a port uses the
authorization information from the
RADIUS server.
Remarks
Available in any
view
Available in any
view
Available in any
view