Jump to content
bogdi19

Basic Port Security

Recommended Posts

lab10_fig1.png

Beginning in privileged EXEC mode, follow these steps to enable port security: Command Purpose

Step 1 configure terminal Enter global configuration mode.

Step 2 interface interface Enter interface configuration mode for the port you want to secure.

Step 3 switchport port-security Enable basic port security on the interface.

Step 4 switchport port-security maximum max_addrsSet the maximum number of MAC addresses that is allowed on this interface.

Step 5 switchport port-security violation {shutdown | restrict | protect}Set the security violation mode for the interface.The default is shutdown.For mode, select one of these keywords:

• shutdown—The interface is shut down immediately following

a security violation.

• restrict—A security violation sends a trap to the network

management station.

• protect—When the port secure addresses reach the allowed

limit on the port, all packets with unknown addresses are

dropped.

Step 6 end Return to privileged EXEC mode.

Step 7 show port security [interface interface-id | address] Verify the entry.

Disabling Port Security: no switchport port-security

Note: If the port link goes down, all the dynamically learned addresses are removed.

Enabling Port Security

Sursa: .?l?.?l?. Network

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...