WEBVTT

0:00:02.660000 --> 0:00:07.700000
 Hello and welcome to this refresher on
 HSRP, which is a first hop redundancy

0:00:07.700000 --> 0:00:13.020000
 protocol that you need to know
 for the CCA 200-301 exam.

0:00:13.020000 --> 0:00:17.880000
 So the whole idea behind first hop
 redundancy protocols, whether it be

0:00:17.880000 --> 0:00:24.800000
 HSRP, VRRP or GLBP, is that we want to
 provide two or more routers connected

0:00:24.800000 --> 0:00:29.600000
 to the same land and we want one to
 be a redundant backup for the other.

0:00:29.600000 --> 0:00:34.520000
 And ideally, we want our clients, our laptops,
 PCs and servers to be completely

0:00:34.520000 --> 0:00:36.520000
 unaware that we've done that.

0:00:36.520000 --> 0:00:40.040000
 We want this whole thing to
 be transparent to them.

0:00:40.040000 --> 0:00:42.200000
 So HSRP is one protocol
 that does that.

0:00:42.200000 --> 0:00:46.080000
 It is Cisco proprietary, stands for
 the hot standby router protocol.

0:00:46.080000 --> 0:00:50.140000
 And the way HSRP accomplishes
 this is pretty elegant.

0:00:50.140000 --> 0:00:54.860000
 So basically what you do is you configure
 HSRP on the two interfaces that

0:00:54.860000 --> 0:00:58.140000
 lead to your LAN to your subnet.

0:00:58.140000 --> 0:01:01.600000
 Both interfaces will have their own IP
 addresses just like you would normally

0:01:01.600000 --> 0:01:05.780000
 see. But what's different is when you
 configure HSRP on those interfaces,

0:01:05.780000 --> 0:01:10.120000
 those interfaces also both
 have a virtual IP.

0:01:10.120000 --> 0:01:17.520000
 We've seen that right here, which is
 1.1.1.1 virtual IP of 1.1.1.1.1.

0:01:17.520000 --> 0:01:21.680000
 They will also create
 a virtual MAC address.

0:01:21.680000 --> 0:01:25.260000
 So in addition to having their real
 MAC addresses on their NIC cards,

0:01:25.260000 --> 0:01:28.700000
 not only will those two interfaces share
 the same virtual IP, they will

0:01:28.700000 --> 0:01:30.480000
 share the same virtual MAC.

0:01:30.480000 --> 0:01:34.600000
 Just to make it simple, I'll
 just put AA in here.

0:01:34.600000 --> 0:01:41.520000
 Now once that's done, one of these
 routers will be elected to the HSRP

0:01:41.520000 --> 0:01:46.060000
 active status. So now, if anybody here
 wants to learn of their gateway

0:01:46.060000 --> 0:01:49.440000
 via DHCP, that their
 gateway is 1.1.1.1.1.

0:01:49.440000 --> 0:01:53.160000
 The next thing they're launching to
 do is ARP for their default gateway.

0:01:53.160000 --> 0:01:58.100000
 And when they ARP for 1.1.1.1, the
 HSRP active router will respond to

0:01:58.100000 --> 0:02:01.640000
 that ARP saying, hey, I'm 1.1
.1.1 and my MAC address is AA.

0:02:01.640000 --> 0:02:06.340000
 And now that he is active, any actual
 packets, or I should say, Ethernet

0:02:06.340000 --> 0:02:11.200000
 frames, that this router sends going
 to a destination MAC address of AA

0:02:11.200000 --> 0:02:15.580000
 will be picked up by the active router
 and the active router will forward

0:02:15.580000 --> 0:02:20.680000
 those packets. Now, clearly, the standby
 router needs to have some way

0:02:20.680000 --> 0:02:22.720000
 of monitoring the active router.

0:02:22.720000 --> 0:02:26.360000
 So if the active router goes down,
 the standby router is aware of that

0:02:26.360000 --> 0:02:28.800000
 and the standby router
 can take over.

0:02:28.800000 --> 0:02:30.940000
 And that's what we're
 looking at right here.

0:02:30.940000 --> 0:02:34.960000
 So both the active router and the standby
 router send out periodic hello

0:02:34.960000 --> 0:02:39.920000
 packets by default it's every
 three seconds for HSRP.

0:02:39.920000 --> 0:02:45.900000
 And those hello packets use UDP port
 1985 and they go to the destination

0:02:45.900000 --> 0:02:49.500000
 address of 224.002.

0:02:49.500000 --> 0:02:53.360000
 So that is not for the purposes
 of the laptops, PCs and clients.

0:02:53.360000 --> 0:02:55.520000
 They don't pay attention to that.

0:02:55.520000 --> 0:02:58.160000
 That's just so both routers
 are aware of each other.

0:02:58.160000 --> 0:03:02.180000
 And so the standby router can know
 if the active router disappears, if

0:03:02.180000 --> 0:03:04.580000
 the active router's hellos vanish.


0:03:04.580000 --> 0:03:08.000000
 If that's the case, then the standby
 router would just simply change his

0:03:08.000000 --> 0:03:12.860000
 state and the standby router
 would become active.

0:03:12.860000 --> 0:03:15.600000
 Now who has elected
 the active router?

0:03:15.600000 --> 0:03:20.220000
 Well, if both of these routers are
 configured for HSRP pretty much at

0:03:20.220000 --> 0:03:24.440000
 the exact same time, then it'll be the
 router with the highest HSRP interface

0:03:24.440000 --> 0:03:28.860000
 priority. As you can see
 here, the default is 100.

0:03:28.860000 --> 0:03:32.720000
 So if I want to make the top router
 active, I could just configure his

0:03:32.720000 --> 0:03:37.480000
 interface priority to be something
 higher than 100.

0:03:37.480000 --> 0:03:42.920000
 Now with HSRP, if I configured HSRP
 on the top router, let's say, hey,

0:03:42.920000 --> 0:03:45.540000
 and I hit enter.

0:03:45.540000 --> 0:03:48.680000
 Okay, so that top router is going to
 start sending out HSRP hello packets.

0:03:48.680000 --> 0:03:52.200000
 He's going to listen to see if anybody
 wants to elect with him, if anybody

0:03:52.200000 --> 0:03:54.740000
 wants to fight with him to see
 who's going to be active.

0:03:54.740000 --> 0:03:56.700000
 He's not going to wait forever.

0:03:56.700000 --> 0:04:01.380000
 So with HSRP as with several other
 protocols, in this case, he's only

0:04:01.380000 --> 0:04:02.960000
 going to wait a short
 period of time.

0:04:02.960000 --> 0:04:05.580000
 It's only about 10 or
 15 seconds or so.

0:04:05.580000 --> 0:04:10.360000
 So if I don't configure the bottom router
 for HSRP within that time period,

0:04:10.360000 --> 0:04:13.160000
 the top router will become active.


0:04:13.160000 --> 0:04:15.260000
 They'll say, hey, there's
 nobody out here but me.

0:04:15.260000 --> 0:04:16.400000
 I guess I'm active.

0:04:16.400000 --> 0:04:20.620000
 And then once the HSRP active router
 is elected, even if somebody comes

0:04:20.620000 --> 0:04:24.980000
 onto the land later on with a better
 priority, it's too late.

0:04:24.980000 --> 0:04:27.360000
 The active router
 is already there.

0:04:27.360000 --> 0:04:33.840000
 Now, what if they both come online
 at exactly the same time and their

0:04:33.840000 --> 0:04:36.720000
 priorities are the same,
 then who's elected?

0:04:36.720000 --> 0:04:39.360000
 Then it's whoever has the
 highest IP address.

0:04:39.360000 --> 0:04:42.340000
 So in this case, the top router would
 still win because he's got a higher

0:04:42.340000 --> 0:04:44.120000
 IP address than the bottom router.


0:04:44.120000 --> 0:04:46.660000
 1113 beats 1112.

0:04:46.660000 --> 0:04:50.900000
 So the virtual IP address is
 something you configure.

0:04:50.900000 --> 0:04:55.320000
 Now for the CCNA, it does not expect
 you to know how to configure HSRP,

0:04:55.320000 --> 0:04:58.780000
 but if you want to practice this
 in the lab, it's very simple.

0:04:58.780000 --> 0:05:01.760000
 You just go to this interface, make
 sure it already has an IP address

0:05:01.760000 --> 0:05:08.180000
 and it's up. And on the interface, you
 just do the command stand by, put

0:05:08.180000 --> 0:05:10.840000
 in a number that's your
 standby group number.

0:05:10.840000 --> 0:05:14.200000
 Most people typically start with standby
 group number one, and then you

0:05:14.200000 --> 0:05:20.040000
 say IP, and you put in whatever your
 virtual IP address is, 1.1.1.1.

0:05:20.040000 --> 0:05:23.600000
 Then replicate that exact same
 command on this interface.

0:05:23.600000 --> 0:05:27.840000
 And now those two routers will
 be participating in HSRP.

0:05:27.840000 --> 0:05:32.920000
 Now, like I said, you have to configure
 the virtual IP address.

0:05:32.920000 --> 0:05:38.620000
 Those two routers will also derive a
 shared virtual MAC address as well,

0:05:38.620000 --> 0:05:42.060000
 because our clients out there need to
 know what the virtual MAC address

0:05:42.060000 --> 0:05:45.360000
 is that's associated to
 that virtual IP address.

0:05:45.360000 --> 0:05:47.120000
 You don't have to configure that.

0:05:47.120000 --> 0:05:50.880000
 HSRP will dynamically derive
 that virtual MAC address.

0:05:50.880000 --> 0:05:53.760000
 And you can see here, that's
 the format of it.

0:05:53.760000 --> 0:05:58.120000
 So we'll take that format where the
 last two characters will be whatever

0:05:58.120000 --> 0:06:00.180000
 your HSRP group is.

0:06:00.180000 --> 0:06:09.120000
 So if I did stand by 12, well, stand
 by 12 would be zero C, right?

0:06:09.120000 --> 0:06:11.320000
 Because C in hexadecimal is 12.

0:06:11.320000 --> 0:06:14.500000
 That would end up becoming
 my virtual MAC address.

0:06:14.500000 --> 0:06:18.020000
 As I mentioned, preemption
 is off by default.

0:06:18.020000 --> 0:06:23.180000
 Preemption, if preemption was on, if
 it was enabled, that would mean any

0:06:23.180000 --> 0:06:27.180000
 router could come along at any point
 in time and take over the role of

0:06:27.180000 --> 0:06:32.520000
 active status if that router had
 a higher priority or IP address.

0:06:32.520000 --> 0:06:33.580000
 But that's not on by default.

0:06:33.580000 --> 0:06:35.600000
 You can turn that on though.

0:06:35.600000 --> 0:06:38.240000
 And there's no load
 sharing with HSRP.

0:06:38.240000 --> 0:06:42.080000
 What that means is if I have these two
 routers, all the packs are going

0:06:42.080000 --> 0:06:43.260000
 to be routed through one router.

0:06:43.260000 --> 0:06:47.660000
 So even though the standby router over
 here has a good link to the backbone,

0:06:47.660000 --> 0:06:50.980000
 he has a good link to the corporate
 network, his backbone connection is

0:06:50.980000 --> 0:06:52.860000
 not being used because
 he's standby.

0:06:52.860000 --> 0:06:54.300000
 He's not routing packets.

0:06:54.300000 --> 0:06:59.680000
 But you can use multi-group
 HSRP to do load sharing.

0:06:59.680000 --> 0:07:03.120000
 That's above and beyond though,
 the scope of the exam.

0:07:03.120000 --> 0:07:05.100000
 So how we turned on, I
 just showed you that.

0:07:05.100000 --> 0:07:09.060000
 Standby, your group number, IP
 and your virtual IP address.

0:07:09.060000 --> 0:07:12.840000
 Here's how you would change the priority
 of the interface to influence

0:07:12.840000 --> 0:07:15.260000
 the active router election.

0:07:15.260000 --> 0:07:17.740000
 And if you want to turn on preemption,
 you can do that.

0:07:17.740000 --> 0:07:19.800000
 Standby 1 preempt.

0:07:19.800000 --> 0:07:24.560000
 Now, if I do that on a router, that
 router now has the ability to take

0:07:24.560000 --> 0:07:29.640000
 over the role of active status
 from an existing active router.

0:07:29.640000 --> 0:07:35.580000
 And the commands for verification of
 HSRP are simply show standby and

0:07:35.580000 --> 0:07:38.440000
 show standby brief.

0:07:38.440000 --> 0:07:42.640000
 So that concludes this
 overview of HSRP.

