WEBVTT

0:00:03.100000 --> 0:00:07.760000
 Hello and welcome to this video
 titled monitoring port security.

0:00:07.760000 --> 0:00:09.440000
 What am I going to cover?

0:00:09.440000 --> 0:00:11.500000
 Just that. How to monitor
 port security.

0:00:11.500000 --> 0:00:15.880000
 We're going to look at three Cisco iOS
 commands for monitoring and verifying

0:00:15.880000 --> 0:00:18.560000
 that port security is doing what
 you configured it to do.

0:00:18.560000 --> 0:00:21.900000
 So let's start out with
 this one right here.

0:00:21.900000 --> 0:00:24.000000
 Show port security.

0:00:24.000000 --> 0:00:26.460000
 You can see this is a pretty high
 level command right here.

0:00:26.460000 --> 0:00:30.100000
 So just these three words will
 show you a variety of things.

0:00:30.100000 --> 0:00:31.860000
 You can glean from this.

0:00:31.860000 --> 0:00:37.800000
 You can see which interfaces port security
 has actually been configured

0:00:37.800000 --> 0:00:45.140000
 on. You can see how many secure MAC
 addresses have been learned on each

0:00:45.140000 --> 0:00:55.640000
 interface. You can see how many addresses
 are currently on that interface.

0:00:55.640000 --> 0:00:59.580000
 So for example, the way you would take
 a look at these, this would say,

0:00:59.580000 --> 0:01:05.600000
 okay, on fast Ethan at zero slash one,
 we can have a maximum of three

0:01:05.600000 --> 0:01:07.560000
 MAC addresses that are learned.

0:01:07.560000 --> 0:01:10.880000
 So that number three there is because
 on that interface somebody configured

0:01:10.880000 --> 0:01:15.420000
 these switch port port security
 maximum three command.

0:01:15.420000 --> 0:01:19.780000
 But right now, only one of those
 MAC addresses has been learned.

0:01:19.780000 --> 0:01:23.640000
 So we still have the potential for
 learning two more MAC addresses on

0:01:23.640000 --> 0:01:29.340000
 that interface. You can see how many
 violations have occurred on this

0:01:29.340000 --> 0:01:35.040000
 interface. And you can see what the
 violation mode is restrict shutdown

0:01:35.040000 --> 0:01:39.360000
 or you could also potentially
 see protect right there.

0:01:39.360000 --> 0:01:43.560000
 The next command I
 want to show you.

0:01:43.560000 --> 0:01:47.640000
 This is my favorite command for monitoring
 port security is where you

0:01:47.640000 --> 0:01:50.520000
 actually drill down to an
 individual interface.

0:01:50.520000 --> 0:01:55.140000
 So show port security interface, type
 in your interface name and number.

0:01:55.140000 --> 0:01:57.000000
 You get a lot of information here.


0:01:57.000000 --> 0:02:00.560000
 So this tells you that yes, port security
 has been configured and is enabled

0:02:00.560000 --> 0:02:01.680000
 on that interface.

0:02:01.680000 --> 0:02:05.320000
 That's good. Right now
 the interface is up.

0:02:05.320000 --> 0:02:06.500000
 So it's secure up there.

0:02:06.500000 --> 0:02:08.800000
 There's nothing wrong
 with it at the moment.

0:02:08.800000 --> 0:02:15.560000
 If a violation happens, it's been
 configured for restrict mode.

0:02:15.560000 --> 0:02:18.020000
 Normally, there is no aging time.

0:02:18.020000 --> 0:02:19.500000
 So by default, there's
 no aging time.

0:02:19.500000 --> 0:02:24.900000
 So this tells me that somebody configured
 a one minute absolute aging

0:02:24.900000 --> 0:02:29.680000
 time, which means that even if someone's
 currently on this port right

0:02:29.680000 --> 0:02:33.660000
 now and their MAC address has been
 authorized, which it has because it

0:02:33.660000 --> 0:02:40.980000
 is enabled. And we can see here that
 right now it has learned one MAC

0:02:40.980000 --> 0:02:44.620000
 address. And this right here
 is that MAC address.

0:02:44.620000 --> 0:02:48.840000
 So what this tells us is that for the
 next minute, that MAC address will

0:02:48.840000 --> 0:02:52.800000
 be the authorized MAC address, whether
 that person is sending Ethernet

0:02:52.800000 --> 0:02:59.220000
 frames or not. Once a minute expires,
 that MAC address will be removed.

0:02:59.220000 --> 0:03:02.200000
 And then at that point, whatever the
 next MAC address is that's heard

0:03:02.200000 --> 0:03:07.520000
 will then be learned and
 good for another minute.

0:03:07.520000 --> 0:03:12.860000
 We can see here that secure static
 address aging has been enabled.

0:03:12.860000 --> 0:03:15.600000
 That's basically telling us that, yes,
 somebody configured an aging timer

0:03:15.600000 --> 0:03:20.820000
 of one minute. We can see that a maximum
 of three MAC addresses has been

0:03:20.820000 --> 0:03:21.940000
 configured by default.

0:03:21.940000 --> 0:03:23.220000
 It only allows one.

0:03:23.220000 --> 0:03:24.960000
 So somebody configured three.

0:03:24.960000 --> 0:03:27.940000
 However, right now only one MAC
 address has been learned.

0:03:27.940000 --> 0:03:29.960000
 Now it's been learned.

0:03:29.960000 --> 0:03:33.240000
 It has not been statically configured
 because we can see here configured

0:03:33.240000 --> 0:03:38.940000
 MAC addresses zero.

0:03:38.940000 --> 0:03:43.460000
 And we have the sticky command on there
 so that one MAC address that's

0:03:43.460000 --> 0:03:47.120000
 been learned, which is right here, will
 also show up in our running config

0:03:47.120000 --> 0:03:50.020000
 because it's been learned
 as a sticky MAC address.

0:03:50.020000 --> 0:03:53.920000
 And fortunately, there have not
 been any security violations.

0:03:53.920000 --> 0:03:59.720000
 So we can see a lot of good information
 from this one command right here.

0:03:59.720000 --> 0:04:02.220000
 And then the last command I want to
 show you as far as monitoring and

0:04:02.220000 --> 0:04:07.380000
 verifying port security is the show
 port dash security address command.

0:04:07.380000 --> 0:04:11.140000
 We can see here for
 any given interface.

0:04:11.140000 --> 0:04:16.340000
 So for example, for fast ethernet zero
 slash one, it's got an aging timer

0:04:16.340000 --> 0:04:18.980000
 of one minute. So once again,
 that's not the default.

0:04:18.980000 --> 0:04:21.300000
 Somebody configured
 the aging timer.

0:04:21.300000 --> 0:04:26.160000
 And we can see that right now it has
 dynamically learned of a secure MAC

0:04:26.160000 --> 0:04:29.580000
 address. And there
 it is right there.

0:04:29.580000 --> 0:04:33.780000
 That's the MAC address that has
 been dynamically learned.

0:04:33.780000 --> 0:04:39.280000
 So those are your three commands for verifying
 and monitoring port security.

0:04:39.280000 --> 0:04:41.360000
 Thank you very much for
 watching this video.

