Configuring and Monitoring Port Security

Port Security Command Options and Operation

With port numbers included in the command, show port-securitydisplays Learn Mode, Address Limit, (alarm) Action, and Authorized Addresses for the specified ports on a switch. The following example lists the full port security configuration for a single port:

Figure 7-3. Example of the Port Security Configuration Display for a Single Port

The following command example shows the option for entering a range of ports, including a series of non-contiguous ports. Note that no spaces are allowed in the port number portion of the command string:

HPswitch(config)# show port-security A1-A3,A6,A8

Configuring Port Security

Using the CLI, you can:

Configure port security and edit security settings.

Add or delete devices from the list of authorized addresses for one or more ports.

Clear the Intrusion flag on specific ports

Syntax: port-security [ e ]<port-list>

[learn-mode < continuous static port-access >] [address-limit <integer>]

[mac-address <mac-addr>] [<mac-addr> . . . <mac-addr>] [action < none send-alarm send-disable >] [clear-intrusion-flag]

no port-security <port-list> mac-address <mac-addr> [<mac-addr> . . .

<mac-addr>]

7-10