May 18, 2012

CCNA: Port Security

When you work with the Cisco Switches you can enable a function called port security.  Port Security is nice because you can limit the number of MAC addresses that can be learned and can pass traffic on a single port of a switch.  For example if you have a PC at a KIOSK and that is the only PC that should EVER be connected to switchport f0/5 you could accomplish this with port security.

Here is a sample of a port security configuration and a brief explanation of what it does.  Keep in mind that there is more to it than just this configuration but this should get you through the CCNA.

! Begin by entering the interface you want to configure port security on.

SwitchX(config)#interface fa0/5

! Next set the port as a static access port. 
! This must be done before enabling port security.

SwitchX(config-if)#switchport mode access

! Next Enable Port Security

SwitchX(config-if)#switchport port-security

! Next Set the Maximum number of MAC addresses to be seen,
! or allowed on this port.

SwitchX(config-if)#switchport port-security maximum 1

! Next configure "Sticky MAC Address Learning" In essence this says
! to take the first MAC address I see and make it a permanent MAC address.

SwitchX(config-if)#switchport port-security mac-address sticky

! Finally set the action to happen if a violation occurs. 
! In this case the port will be shutdown,
! or end up in a state of ERR-Disable.
! You can verify this with a Show Interface.
 

SwitchX(config-if)#switchport port-security violation shutdown

More Information on Port Security can be found here on the Cisco Web Site.


If you found this post helpful why not leave a comment? Also, dont forget to subscribe to our feed.

PS: Welcome StumbleUpon Readers! 


This post has gained some momentum lately and for those of you arriving here from Stumble, why not subscribe to our feed.  Why subscribe?

  • Contests Every Other Month
  • Loads of posts
  • Answers to questions you need answers for.

Thats right!  This blog is for you!  How can we help?

What do you do when…

I’m curious.  What do you do when you are running through a lab (I mean FLYING through it like never before) and then you hit a task that is so simple, but it doesn’t work?

Well thats where I have been for the last 60 minutes.  I started IE Security Workbook Lab 2 at 10 PM tonight.  I have yet to finish the entire lab although I have been working on it over and over again for the last 2 weeks at least.  Each time I get a little further along and a little faster.  Today it took me 35 minutes to get thru all of Part 1(Initial Configurations).  Thats a personal best.  Then I worked into Part 2, PIX/ASA Firewall.  I finished every task except for 2.9 and 2.10.  In this task you set up BGP peering through the ASA2 context A and BB3, and also a little outside PAT so that if sw1 pings bb3 it can get there even if routing fails.  I did this lab a week ago  and this task worked.  Saturday I did the lab again and it did NOT work even with the same config, and tonight here I am stuck again.

So I ask, what do you do when you are running through a lab and then you hit a task that is so simple, but it doesn’t work?

I am so frustrated right now I could kick something!  Please tell me I am not alone.

Proctor Labs CCIE Security eBook Lab 1 (First Pass)

Today, in between lectures to my ICND1 students and on my lunch I squeezed out some of lab 1 of the Proctor Labs CCIE Security eBook.  My first impression was, “This is easy!”  Then I started typing.  What I found is that it was very general which made it hard. I could think of a few ways to acomplish a task.  I certainly didn’t finish but I will do it again later.  For now I’m heading home to relieve my wife from kid duty until my InternewtworkExpert rack time starts at 9pm.

One question for those of you who have used the Proctor Labs eBooks:

Should I keep doing the eBook Labs or just focus on the IPExpert workbooks multiprotocol challenges?  I really want to hear your opinion.