WEBVTT

1
00:00.000 --> 00:05.840
Now next we need to talk about the addresses that are going to be used by HSRP.

2
00:05.840 --> 00:08.660
And we're not just talking about the virtual address because we're going to

3
00:08.660 --> 00:09.080
configure

4
00:09.080 --> 00:13.840
our own virtual address and each subnet and inside of each group.

5
00:13.840 --> 00:18.040
But just like with a routing protocol, when HSRP wants to send messages back

6
00:18.040 --> 00:18.600
and forth

7
00:18.600 --> 00:22.840
to each other, it's going to do so via multicast.

8
00:22.840 --> 00:26.840
And so we're going to need a multicast address to use.

9
00:26.840 --> 00:30.560
And this is going to differ whether we're talking about HSRP version 1 or
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

9
00:26.840 --> 00:30.560
And this is going to differ whether we're talking about HSRP version 1 or

10
00:30.560 --> 00:32.160
version 2.

11
00:32.160 --> 00:40.250
Version 1 is going to use 224.0.0.2, which is known as the all routers multic

12
00:40.250 --> 00:41.640
ast address.

13
00:41.640 --> 00:46.250
This means that if I send a multicast packet destined for this, like an HSRP

14
00:46.250 --> 00:46.840
version

15
00:46.840 --> 00:52.320
1 node would do, that all layer 3 devices on the network are going to get that.

16
00:52.320 --> 00:56.730
Now for the most part, we usually only have a couple of these on a user subnet

17
00:56.730 --> 00:57.840
anyways,

18
00:57.840 --> 01:01.520
the two of them being the default gateway, for example, or the pair of default
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

18
00:57.840 --> 01:01.520
the two of them being the default gateway, for example, or the pair of default

19
01:01.520 --> 01:02.680
gateways.

20
01:02.680 --> 01:06.190
And so maybe this isn't that bad, but from an efficiency perspective, we'd

21
01:06.190 --> 01:06.720
rather not

22
01:06.720 --> 01:10.740
send it to all layer 3 devices because there might actually be a lot more on

23
01:10.740 --> 01:11.280
the network

24
01:11.280 --> 01:12.480
segment.

25
01:12.480 --> 01:17.860
So with version 2, Cisco actually used a Cisco owned multicast address that

26
01:17.860 --> 01:19.200
they registered,

27
01:19.200 --> 01:23.200
which is 224.0.0.0.102.

28
01:23.200 --> 01:26.240
And this again is owned by Cisco.

29
01:26.240 --> 01:31.640
And it's used exclusively for HSRP with a bit of a caveat to it.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

29
01:26.240 --> 01:31.640
And it's used exclusively for HSRP with a bit of a caveat to it.

30
01:31.640 --> 01:36.030
So not just HSRP, but also GLBP, and we'll see that coming up when we talk

31
01:36.030 --> 01:37.320
about that particular

32
01:37.320 --> 01:38.480
protocol.

33
01:38.480 --> 01:40.320
But it is used by Cisco devices.

34
01:40.320 --> 01:44.280
So unless I'm running multiple protocols, which usually I'm not, we're talking

35
01:44.280 --> 01:44.680
about

36
01:44.680 --> 01:50.290
HSRP now when I send an HSRP message out into the layer 2 network, it's only

37
01:50.290 --> 01:51.000
going to be

38
01:51.000 --> 01:54.680
delivered to the other HSRP node or nodes.

39
01:54.680 --> 01:58.390
For that matter, if we have a third or fourth node out there, those nodes will

40
01:58.390 --> 01:59.280
receive it

41
01:59.280 --> 02:01.120
and process it.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

41
01:59.280 --> 02:01.120
and process it.

42
02:01.120 --> 02:03.800
And so the goal has been accomplished there.

43
02:03.800 --> 02:06.760
Now we're not quite done yet because this is great from a layer 3 perspective,

44
02:06.760 --> 02:07.160
but we do

45
02:07.160 --> 02:11.480
still need to worry about layer 2.

46
02:11.480 --> 02:15.640
So we're going to need that virtual MAC address that gets mapped to each or to

47
02:15.640 --> 02:16.400
the virtual

48
02:16.400 --> 02:19.280
IP address that we're also using on the network.

49
02:19.280 --> 02:23.440
And so this is going to require that virtual MAC address configuration.

50
02:23.440 --> 02:28.080
And what we'll find is that this group ID, for example, group 10, is going to

51
02:28.080 --> 02:29.040
help us determine

52
02:29.040 --> 02:31.240
what the virtual MAC is going to be.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

52
02:29.040 --> 02:31.240
what the virtual MAC is going to be.

53
02:31.240 --> 02:35.530
So once again, we have a version 1 and version 2 version, if I can say it that

54
02:35.530 --> 02:36.080
way, version

55
02:36.080 --> 02:41.840
1, virtual MAC address is going to be 0, 0, 0, 0, 0, c.

56
02:41.840 --> 02:45.320
And then we have 0, 7, AC.

57
02:45.320 --> 02:50.480
And then these last two characters can be defined by the group ID.

58
02:50.480 --> 02:54.630
So when we take a group ID of let's say 10, we can translate 10 into hexadec

59
02:54.630 --> 02:55.280
imal, which

60
02:55.280 --> 02:56.840
would be 0a.

61
02:56.840 --> 03:00.480
And 0a would insert itself at the end of the MAC address.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

61
02:56.840 --> 03:00.480
And 0a would insert itself at the end of the MAC address.

62
03:00.480 --> 03:03.200
That would be the virtual MAC address we use for group 10.

63
03:03.200 --> 03:08.440
So 20 would have a hexadecimal equivalent of 1, 4.

64
03:08.440 --> 03:13.040
And so we would use the group ID to determine what the V MAC is.

65
03:13.040 --> 03:15.440
But that raises an interesting point here.

66
03:15.440 --> 03:20.540
Each hex character is 4 bits, which means we have 8 total bits to use for group

67
03:20.540 --> 03:21.080
IDs.

68
03:21.080 --> 03:30.870
Now, 2 to the 8th power means that I get 256 group IDs when I use HSRP version
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

68
03:21.080 --> 03:30.870
Now, 2 to the 8th power means that I get 256 group IDs when I use HSRP version

69
03:30.870 --> 03:31.840
1.

70
03:31.840 --> 03:35.680
But next with version 2, we're going to find we have a few extra bits.

71
03:35.680 --> 03:41.160
Because the V MAC that we use for version 2 is 0, 0, 0, 0, 0.0 c.

72
03:41.160 --> 03:42.960
So the same 6 characters.

73
03:42.960 --> 03:49.400
And then it's 9 F F. And then 3 hex characters reserved for the group ID.

74
03:49.400 --> 03:51.680
Well 3 characters gives us 4 extra bits.

75
03:51.680 --> 03:53.360
So that's 12 bits in total.

76
03:53.360 --> 04:01.160
2 to the 12th power tells us that we get 4,096 group IDs.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

76
03:53.360 --> 04:01.160
2 to the 12th power tells us that we get 4,096 group IDs.

77
04:01.160 --> 04:05.360
And so we get a whole lot more group IDs with HSRP version 2.

78
04:05.360 --> 04:09.880
And that might lead us to one to use HSRP version 2 over version 1.

79
04:09.880 --> 04:13.200
Now that said, might be looking at this and saying, but when in the real world

80
04:13.200 --> 04:13.400
would we

81
04:13.400 --> 04:16.920
ever need more than 256 group IDs?

82
04:16.920 --> 04:20.000
And the answer for the most part is we're not going to.

83
04:20.000 --> 04:26.050
I'm very rarely will we have 256 VLAN interfaces or more, I guess, on a

84
04:26.050 --> 04:27.920
particular layer 3 or

85
04:27.920 --> 04:29.040
a switch.

86
04:29.040 --> 04:31.120
So why do we need more group IDs?
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

86
04:29.040 --> 04:31.120
So why do we need more group IDs?

87
04:31.120 --> 04:35.000
Well it's really not about needing more than 256.

88
04:35.000 --> 04:40.160
It's having access to group IDs that exceed 255.

89
04:40.160 --> 04:48.450
So for example, let's say that I have VLAN 50 and I want to associate an HSRP

90
04:48.450 --> 04:49.040
group with

91
04:49.040 --> 04:50.040
that.

92
04:50.040 --> 04:53.710
Well I would choose group 50 not from it because it's required, but because

93
04:53.710 --> 04:54.320
from a human

94
04:54.320 --> 04:59.080
perspective it's easier for me to look at HSRP group 50 and know that that ties

95
04:59.080 --> 04:59.960
to VLAN

96
04:59.960 --> 05:00.960
50.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

96
04:59.960 --> 05:00.960
50.

97
05:00.960 --> 05:01.960
So it's a human thing.

98
05:01.960 --> 05:07.460
I could map this to group ID 51 and HSRP configuration has no problem with that

99
05:07.460 --> 05:07.840
, but

100
05:07.840 --> 05:12.120
from a human perspective we wouldn't really enjoy that mismatch.

101
05:12.120 --> 05:14.360
But what if I have VLAN 500?

102
05:14.360 --> 05:18.470
Well now with HSRP version 1 I have a problem because I can only go as high as

103
05:18.470 --> 05:19.320
255.

104
05:19.320 --> 05:24.640
So maybe I would choose group 50 or if I already have a VLAN 50 maybe I'd have

105
05:24.640 --> 05:26.280
to go with group

106
05:26.280 --> 05:29.800
150 maybe group 18.

107
05:29.800 --> 05:33.240
I mean it doesn't matter at this point it's not going to match.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

107
05:29.800 --> 05:33.240
I mean it doesn't matter at this point it's not going to match.

108
05:33.240 --> 05:38.240
And so that gets to be very difficult when I only have 256 group IDs.

109
05:38.240 --> 05:42.800
Well with HSRP version 2 I have 4,096.

110
05:42.800 --> 05:45.600
So I guess what that perfectly aligns with.

111
05:45.600 --> 05:49.960
That perfectly aligns with the IDs that I can use for my VLANs because VLANs

112
05:49.960 --> 05:50.800
have 12 bits

113
05:50.800 --> 05:51.800
as well.

114
05:51.800 --> 05:58.580
So now when I have VLAN 500 using HSRP version 2 I can match this up with group

115
05:58.580 --> 06:00.040
500 using
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

115
05:58.580 --> 06:00.040
500 using

116
06:00.040 --> 06:02.840
again HSRP version 2.

117
06:02.840 --> 06:06.780
And it doesn't matter what VLAN ID I choose I have a group ID that I can match

118
06:06.780 --> 06:08.000
with it.

119
06:08.000 --> 06:14.160
So 4,096 group IDs with HSRP version 2, 256 with HSRP version 1.

120
06:14.160 --> 06:19.380
Again in a production modern network we should absolutely be using HSRP version

121
06:19.380 --> 06:20.200
2.

122
06:20.200 --> 06:23.040
And the number of group IDs that we get is just another reason for that.
