All language subtitles for 24 - Routing - Reverse Engineering Subnet Problems-eng

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian Download
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,496 --> 00:00:05,226 >> Up till now, we have talked about subnetting based on the number of networks you need, 2 00:00:05,496 --> 00:00:09,076 the number of hosts per network that you need, and now we've fallen 3 00:00:09,076 --> 00:00:12,436 into what I call reverse engineering a subnet problem 4 00:00:12,646 --> 00:00:17,056 which is actually probably the most common thing that you will do. 5 00:00:17,296 --> 00:00:23,806 It is extremely common to walk into an environment where you see an IP address 6 00:00:23,856 --> 00:00:27,886 and a subnet mask and you need to find an answer to the question 7 00:00:27,886 --> 00:00:30,516 of what network is that IP address on? 8 00:00:30,726 --> 00:00:36,006 Or what would be another host on the same network as that IP address? 9 00:00:37,496 --> 00:00:41,246 It's best explained with an example so let's jump back in the pool again, right? 10 00:00:41,246 --> 00:00:51,296 So we've got a computer here - let's say a happy computer - had the IP address 1921681.127. 11 00:00:51,296 --> 00:00:54,896 Now in the real world, you may be saying, "Okay well, this guy maybe can't connect 12 00:00:54,896 --> 00:00:58,156 to the internet" or you know "Can't ping some other device. 13 00:00:58,156 --> 00:00:58,776 What's wrong? 14 00:00:58,776 --> 00:00:59,216 What's...?" 15 00:00:59,216 --> 00:01:03,476 And so you want to find out what other devices are on the same network as this one? 16 00:01:03,786 --> 00:01:07,116 Or on a certification exam, you might be asked a question, 17 00:01:07,116 --> 00:01:12,426 you know you've got a happy computer here, "What would be the broadcast for his network?" 18 00:01:12,426 --> 00:01:14,196 Or "What would be his network ID?" 19 00:01:14,196 --> 00:01:16,906 Or "What computer would be on the same host? 20 00:01:16,906 --> 00:01:18,996 A-B -- or on the same network, A-B-C-D?" 21 00:01:18,996 --> 00:01:20,316 And you've got to pick it from a lineup. 22 00:01:20,316 --> 00:01:24,536 So regardless of what situation you're in, you have to work backwards. 23 00:01:25,206 --> 00:01:32,476 In my opinion, you can do these much faster than the previous examples that we've seen 24 00:01:32,476 --> 00:01:35,326 in the last [inaudible] - finding the number of networks and finding the number of hosts - 25 00:01:35,326 --> 00:01:37,976 because they've actually given you the answer. 26 00:01:38,446 --> 00:01:42,516 Well at least from the perspective of what we were trying to find previously. 27 00:01:42,516 --> 00:01:45,576 Remember previously we were like, "Okay, we've got this network 28 00:01:45,576 --> 00:01:50,406 and we need 30 hosts per network, so what subnet mask will do this and what other [inaudible]?" 29 00:01:50,766 --> 00:01:53,016 Well in this kind of thing, they're kind of like, 30 00:01:53,016 --> 00:01:55,326 "Well we haven't really given you any of that." 31 00:01:55,326 --> 00:02:00,346 We just say, you know somebody figured out that they wanted to use this subnet mask, 32 00:02:00,536 --> 00:02:06,076 so now they're asking you to work backwards or essentially maybe work forward one step 33 00:02:06,126 --> 00:02:09,866 because remember Step 1 was you know converted to binary. 34 00:02:09,866 --> 00:02:12,376 So if you add 30 hosts, you would convert that number to binary. 35 00:02:12,376 --> 00:02:16,466 Step 2 would be to reserve the bytes in the mask and find your increment. 36 00:02:16,466 --> 00:02:19,636 And then Step 3 would be to find your network ranges. 37 00:02:19,936 --> 00:02:24,926 So essentially with this problem, you're starting right here. 38 00:02:25,806 --> 00:02:31,046 You've found the subnet mask if you will and now you just have to find the increment 39 00:02:31,046 --> 00:02:32,536 and then find your network ranges. 40 00:02:32,826 --> 00:02:34,306 So let me ask you this. 41 00:02:34,306 --> 00:02:36,346 If somebody through a subnet mask at you and said, 42 00:02:36,346 --> 00:02:39,336 "Hey here's a subnet mask, what increment does it have? 43 00:02:39,406 --> 00:02:41,946 What increment would I use for my Step 3?" 44 00:02:42,686 --> 00:02:43,396 How would you approach it? 45 00:02:44,776 --> 00:02:47,776 Well you would say, "Okay, well what is the increment?" 46 00:02:47,986 --> 00:02:51,766 The increment is the lowest network bid converted back to a decimal number. 47 00:02:51,766 --> 00:02:55,556 So looking at this, I need to find out what the lowest network bid is. 48 00:02:55,556 --> 00:02:58,536 Now if I take you know this, it'd be a whole bunch of ones. 49 00:02:58,536 --> 00:03:02,576 Well I'm not really that concerned about all of these ones right here 50 00:03:02,576 --> 00:03:03,986 because they're not going to give me anything. 51 00:03:04,246 --> 00:03:08,176 I'm really concerned at where the lowest network bid is: that 224. 52 00:03:08,176 --> 00:03:15,796 So if I convert that to a decimal number, it would be 1, 2, 3, 0, 0, 0, 0, 0. 53 00:03:16,916 --> 00:03:19,536 That's the binary version -- did I say the decimal number? 54 00:03:19,536 --> 00:03:25,236 If I converted that decimal number to a binary version, it would end up being this. 55 00:03:25,536 --> 00:03:29,876 So then I would look and say, "Okay well lowest network byte as a decimal number? 56 00:03:30,166 --> 00:03:31,066 That would be what? 57 00:03:32,696 --> 00:03:33,396 Thirty-two. 58 00:03:34,026 --> 00:03:38,986 Right? Okay, okay so I've not got this magic number if you will. 59 00:03:39,186 --> 00:03:41,416 Let's jump back to the original. 60 00:03:41,416 --> 00:03:43,946 You know I would look at that and say, "Well at some point they had 61 00:03:43,946 --> 00:03:47,536 to start 192 dot 168 dot 1 dot 0. 62 00:03:47,536 --> 00:03:50,816 I mean I would -- they have to start from zero at some point. 63 00:03:50,816 --> 00:03:56,026 So I would then say, "Okay well let's do 32, 64, 96." 64 00:03:56,026 --> 00:03:57,546 I'm just adding my increment right here. 65 00:03:57,826 --> 00:04:03,516 One twenty-eight, 1 -- well actually stop right there because I pass 127. 66 00:04:03,516 --> 00:04:04,466 That's my IP address. 67 00:04:05,006 --> 00:04:09,296 So I would then -- again if you want to you can fill in all the ranges 68 00:04:09,296 --> 00:04:11,846 but really the only one I'm concerned with is this one. 69 00:04:14,766 --> 00:04:22,996 So this happy computer comes from the network 192168 dot 1 dot 96 thru 127. 70 00:04:22,996 --> 00:04:26,776 That's his network and whoa, hello, major problem. 71 00:04:27,126 --> 00:04:28,506 What's wrong with this picture? 72 00:04:29,886 --> 00:04:30,906 One twenty-seven is what? 73 00:04:31,356 --> 00:04:35,476 The broadcast address of that happy computer. 74 00:04:35,756 --> 00:04:36,746 He's not happy at all. 75 00:04:37,006 --> 00:04:41,406 He's not working because we assigned him the broadcast IP address 76 00:04:41,406 --> 00:04:43,046 for the network, he is not going to function. 77 00:04:43,196 --> 00:04:48,706 Now matter of fact, if you try to assign that IP address in Windows or OSX 78 00:04:48,706 --> 00:04:52,486 or whatever operating system, it will give you an error because Windows is smart enough to say, 79 00:04:52,486 --> 00:04:54,656 "Whoa, that's not a valid IP address. 80 00:04:54,656 --> 00:04:55,476 Try that again." 81 00:04:55,856 --> 00:04:58,486 But that would be a great test question where they're 82 00:04:58,486 --> 00:05:00,086 like you know, "What's wrong with that guy?" 83 00:05:00,376 --> 00:05:01,136 And do you see? 84 00:05:01,446 --> 00:05:03,476 You wouldn't be able to tell what's wrong with that guy 85 00:05:03,476 --> 00:05:05,566 without really figuring out the network ranges. 86 00:05:05,566 --> 00:05:08,516 I mean if you didn't see this, if that was hidden from you, 87 00:05:08,666 --> 00:05:09,916 and they're like, "Well what's wrong with that?" 88 00:05:10,206 --> 00:05:11,986 And you're like, "I don't know. 89 00:05:11,986 --> 00:05:12,736 What's wrong with that? 90 00:05:12,736 --> 00:05:16,546 You tell me because from my perspective, it's just an IP address," 91 00:05:17,386 --> 00:05:20,096 but the subnet mask puts it in such context. 92 00:05:21,336 --> 00:05:24,186 Okay, let's do another example of this so you can see just how -- 93 00:05:24,436 --> 00:05:28,236 just how key this skill is and how tricky the questions can be. 94 00:05:28,486 --> 00:05:32,456 Let's just say this is an exam situation or maybe even a real world situation 95 00:05:32,666 --> 00:05:37,326 where they're saying, "Hey, this host cannot surf the internet. 96 00:05:37,326 --> 00:05:41,136 They're not able to get out and you know do their day to day functions. 97 00:05:41,416 --> 00:05:43,186 Please identify what's wrong with this picture?" 98 00:05:43,666 --> 00:05:48,136 Now of course in the real world and on the exam, of course it wouldn't be just left to this. 99 00:05:48,136 --> 00:05:50,106 There would be a lot more distractors in there. 100 00:05:50,106 --> 00:05:52,146 There would be, "Well is the internet up? 101 00:05:52,146 --> 00:05:53,686 Is the -- you know how many other routers? 102 00:05:53,686 --> 00:05:55,256 How many other hosts are having this issue?" 103 00:05:55,256 --> 00:05:57,516 I mean there should be a lot of other distracting things 104 00:05:57,516 --> 00:05:58,906 but let's just focus on the core. 105 00:05:59,316 --> 00:06:03,666 We've got this host who has this IP address: 172 16 68 65. 106 00:06:03,946 --> 00:06:11,616 His default gateway - and they line up - you know is 172 16 68 62 which looks good you know 107 00:06:11,696 --> 00:06:13,996 because that's the IP address assigned to the router. 108 00:06:14,296 --> 00:06:17,796 You know and down here is the internet or whatever network we're connecting to. 109 00:06:18,516 --> 00:06:20,596 Okay, well it seems okay. 110 00:06:20,596 --> 00:06:23,456 Well let's reverse engineer and se f we can figure out. 111 00:06:23,506 --> 00:06:27,426 We look at that subnet mask, we've got 3 octets of ones. 112 00:06:27,766 --> 00:06:34,736 That's the Class C. And then let's see, this last octet would be 1, 2, 3, 4, 0, 0, 0, 0. 113 00:06:34,736 --> 00:06:37,526 That'd be if we're converting 240 to binary. 114 00:06:37,526 --> 00:06:41,166 And you will get used to a lot of like well 240 is 4 bytes, 115 00:06:41,166 --> 00:06:43,886 you know 224, 3, bytes, those kind of things. 116 00:06:43,886 --> 00:06:48,936 So we look and we go, "Okay well the increment - that means the increment - is 16. 117 00:06:50,486 --> 00:06:52,746 Okay. Well let's do this. 118 00:06:52,746 --> 00:07:00,806 So we go 172 dot 16 dot 68 dot -- well they would have had to have started at zero 119 00:07:00,806 --> 00:07:04,116 at some point so I can go, "Okay 16, 32." 120 00:07:04,266 --> 00:07:06,486 I'm just counting up until I can pass those networks. 121 00:07:06,486 --> 00:07:08,976 So it would be 48, 48, plus 16. 122 00:07:09,476 --> 00:07:12,786 That's where my muscle memory wears out. 123 00:07:12,786 --> 00:07:15,336 So it would 64 plus again, that would be 80. 124 00:07:15,336 --> 00:07:16,966 And okay, okay, I've stopped. 125 00:07:16,966 --> 00:07:19,016 I've passed those so I can start filling in the [inaudible]. 126 00:07:19,016 --> 00:07:20,456 It just goes through 47. 127 00:07:20,726 --> 00:07:22,476 This goes through 63. 128 00:07:22,716 --> 00:07:24,256 This goes through 79. 129 00:07:24,256 --> 00:07:25,206 Whoa, wait a sec. 130 00:07:25,666 --> 00:07:26,676 Whoa, wait a sec. 131 00:07:26,676 --> 00:07:28,346 Okay, [inaudible] stop the train. 132 00:07:28,346 --> 00:07:32,186 First off, are either of these IP addresses invalid? 133 00:07:33,656 --> 00:07:34,826 No, they're not. 134 00:07:35,146 --> 00:07:39,776 The router happens to have the last valid IP address from this range. 135 00:07:39,776 --> 00:07:46,106 The router is in 172 dot 16 dot 68 dot 48 through 60 [inaudible]. 136 00:07:46,106 --> 00:07:47,556 He's got a valid IP address. 137 00:07:47,556 --> 00:07:48,446 It's not a broadcast. 138 00:07:48,446 --> 00:07:49,086 It's not a network. 139 00:07:49,256 --> 00:07:52,266 But it's the last one from that range and this computer happens 140 00:07:52,266 --> 00:07:56,426 to have the first valid IP address from this range. 141 00:07:57,636 --> 00:07:58,696 What's the problem? 142 00:07:58,696 --> 00:08:00,216 You know 65 is not the network. 143 00:08:00,216 --> 00:08:01,666 It's the first real IP address. 144 00:08:01,666 --> 00:08:03,526 The problem is they're in different networks. 145 00:08:03,526 --> 00:08:07,136 Even though they're plugged into the same network, they're in different networks. 146 00:08:07,136 --> 00:08:08,866 Now that doesn't work. 147 00:08:08,866 --> 00:08:11,376 That's what a router is supposed -- a router is supposed 148 00:08:11,376 --> 00:08:13,006 to the one that moves you between networks. 149 00:08:13,006 --> 00:08:17,426 As in the router should be in your network like this host should be 150 00:08:17,426 --> 00:08:18,896 in the same network as the router. 151 00:08:19,146 --> 00:08:21,736 And then the router would move you to say that network 152 00:08:21,736 --> 00:08:24,296 or some other network that you're trying to reach. 153 00:08:24,296 --> 00:08:27,066 You can't have the computer be on a different network 154 00:08:27,066 --> 00:08:29,016 than the router that's supposed to get him off his network. 155 00:08:29,346 --> 00:08:30,626 Does that make sense? 156 00:08:30,626 --> 00:08:32,686 So that is -- therein lies the problem. 157 00:08:32,776 --> 00:08:36,176 Now do you see how tricky that could be because you're looking and you're like -- 158 00:08:36,176 --> 00:08:41,606 you know first off, if we hadn't broken that out, this totally looks okay. 159 00:08:41,816 --> 00:08:46,596 We would look at this and go, "Well 65, 62, they seem close together. 160 00:08:46,706 --> 00:08:48,946 They're only 3 IP addresses apart, right? 161 00:08:48,946 --> 00:08:50,746 It seems like that should work okay." 162 00:08:50,746 --> 00:08:54,276 So you wouldn't even know until you reverse engineer it and find this. 163 00:08:54,276 --> 00:08:59,386 Now expect if you're planning to get certified that this will be embedded in a much bigger, 164 00:08:59,386 --> 00:09:02,036 more complex situation that involves [inaudible] 165 00:09:02,036 --> 00:09:04,576 and all the other technologies that are out there. 166 00:09:04,576 --> 00:09:06,826 And they're like, "Okay, well try and figure out what's wrong." 167 00:09:06,826 --> 00:09:09,906 And you'll be thinking of really advanced stuff but then you're like, "Oh wait. 168 00:09:10,126 --> 00:09:11,396 These guys are in different networks." 169 00:09:11,846 --> 00:09:17,286 That's why I say this form of subnetting is probably the most common kind of subnetting 170 00:09:17,286 --> 00:09:22,736 that you're going to encounter is because it's so easy to write a question for it, 171 00:09:22,736 --> 00:09:29,136 but also so common of a situation where you want to figure out what network a device comes from. 172 00:09:29,656 --> 00:09:35,586 Okay, at this point you have seen subnetting based on the number of networks, 173 00:09:36,116 --> 00:09:39,496 hosts and reversed engineering or subnet mask. 174 00:09:39,896 --> 00:09:42,816 If you've got all that, if you're like, "Okay, I've got those skills," 175 00:09:42,816 --> 00:09:45,936 I would call you a subnetting quasi Jedi. 176 00:09:45,936 --> 00:09:48,146 The only reason that quasi is in there is 177 00:09:48,146 --> 00:09:51,516 because you probably just need more practice to solidify those skills. 178 00:09:51,816 --> 00:09:54,896 There is one more method and that's VLSM but you'll find 179 00:09:54,896 --> 00:09:56,836 in the next nugget that it's nothing new. 180 00:09:56,836 --> 00:09:59,816 It's just doing what we've seen already again and again and again and again. 181 00:09:59,986 --> 00:10:04,186 So before I launch you into VLSM, I want to make you aware of a rule. 182 00:10:04,326 --> 00:10:10,816 And the only reason this rule exists is because we as humans don't think about zero. 183 00:10:11,406 --> 00:10:16,166 As in -- let's say you had a cell phone in your hand and somebody looked at it and they're like, 184 00:10:16,166 --> 00:10:18,466 "Oh how many of those cell phones do you have?" 185 00:10:18,886 --> 00:10:21,576 You would look at him and you'd say, "I just have 1 cell phone." 186 00:10:21,986 --> 00:10:26,536 Now the person you're talking to wouldn't interpret that as 2 because you know you said 1. 187 00:10:26,536 --> 00:10:29,346 And they wouldn't say, "Oh well there's the zero value as well 188 00:10:29,346 --> 00:10:30,976 so you must really have 2 cell phones." 189 00:10:31,286 --> 00:10:32,006 You see what I mean? 190 00:10:32,096 --> 00:10:33,156 But a computer does. 191 00:10:33,296 --> 00:10:38,036 A computer counts zero as a value even though it's really a zero value. 192 00:10:38,456 --> 00:10:42,856 Or for example, if there are paper clips on your desk and you said, "I have 10 paper clips." 193 00:10:42,856 --> 00:10:45,116 The person wouldn't think, "Well you must really mean 11 194 00:10:45,116 --> 00:10:48,676 because zero through 10 gives you 11 values." 195 00:10:48,676 --> 00:10:49,766 But computers do. 196 00:10:49,766 --> 00:10:54,656 And it's the same thing when you're working in binary, computers count that binary zero value. 197 00:10:54,656 --> 00:10:59,066 So these values might throw off your calculations but if you're aware 198 00:10:59,066 --> 00:11:01,086 of the rule, it really becomes a nonissue. 199 00:11:01,156 --> 00:11:03,386 So for example, let me give you a scenario here. 200 00:11:03,466 --> 00:11:12,306 If somebody said, "Take 192 dot 168 dot 1 and break that into 4 networks." 201 00:11:14,366 --> 00:11:15,846 You would look at it and go, "Okay, great. 202 00:11:15,846 --> 00:11:21,746 Let me lay out my binary chart, 128, 64, 32, 16, 8, 4, 2, 1." 203 00:11:21,746 --> 00:11:25,146 So you'd go, "Okay, Step 1 is to say how many bytes to get the number 4?" 204 00:11:25,146 --> 00:11:27,446 And I'd look and I'd go, "Okay, well -- 4 zero, zero. 205 00:11:27,656 --> 00:11:28,646 Then it would be 4." 206 00:11:28,806 --> 00:11:31,026 And you would say, "Okay, well 3 bytes to get to the number 4." 207 00:11:31,526 --> 00:11:38,386 Well in actuality because of the zero value, you can get the number 4 with 3 bytes. 208 00:11:38,586 --> 00:11:40,676 And I'd say, "Well how's that possible?" 209 00:11:40,846 --> 00:11:43,666 Well if you look at this, you've got 2 in 1 which gives you 3. 210 00:11:43,876 --> 00:11:46,106 You know that's the biggest number you can get with 2 bytes. 211 00:11:46,106 --> 00:11:47,146 But then we start working it down. 212 00:11:47,146 --> 00:11:48,366 We go, "Okay, well there's 2. 213 00:11:48,596 --> 00:11:57,856 There's 1 and then there is zero you know or binary values would be 0- 0, 0-1, 1-0 and 1-1." 214 00:11:57,856 --> 00:11:58,936 Those are the binary values. 215 00:11:58,936 --> 00:12:02,296 So you can actually -- the truth is you can get 4 networks 216 00:12:02,296 --> 00:12:05,476 with 2 bytes because of counting from zero. 217 00:12:05,516 --> 00:12:10,266 So essentially if you look at the binary chart and there's any kind of question asking you 218 00:12:10,266 --> 00:12:14,646 to figure out how many networks and it's an exact binary number, you just have to remember, 219 00:12:14,646 --> 00:12:16,726 "Well okay binary always counts from zero. 220 00:12:16,726 --> 00:12:21,256 So we can just simply subtract 1 when we're doing that." 221 00:12:21,256 --> 00:12:23,216 Now it's similar on the host side. 222 00:12:23,216 --> 00:12:29,416 Slightly different but similar on the host side because of the zero but it's somewhat offset. 223 00:12:29,416 --> 00:12:30,276 And let me explain. 224 00:12:30,346 --> 00:12:35,186 So let's say you've got the same situation: 192168 dot 1 dot zero. 225 00:12:35,186 --> 00:12:40,116 And someone says, "Okay I want you to subnet that into networks of 7 hosts per network." 226 00:12:40,326 --> 00:12:42,996 And I would say if they're asking that they're probably trying to trick you or something. 227 00:12:42,996 --> 00:12:44,916 Seven hosts per network. 228 00:12:44,916 --> 00:12:48,826 And you would look at that and you would go, "Okay, well Step 1, let's convert 7 to binary." 229 00:12:48,826 --> 00:12:50,736 And I would go, "Okay, let's see, okay. 230 00:12:50,986 --> 00:12:52,576 One, that's where my first one would go. 231 00:12:52,876 --> 00:12:55,196 Two, three -- so all three of those bytes. 232 00:12:55,196 --> 00:12:59,846 One, 0, 0, 0, 0, 0, 1, 1, 1 is how I get the number 7." 233 00:13:00,196 --> 00:13:03,686 Well therein lies a problem that you know we're after number 7. 234 00:13:03,686 --> 00:13:07,656 So we would say, "Okay, it takes 3 bytes to get to number 7 so in the next one, 235 00:13:08,336 --> 00:13:11,696 you know Step 2, we would save 3 bytes." 236 00:13:11,696 --> 00:13:13,906 We would go, "Okay, well we started with the slash 24 237 00:13:13,906 --> 00:13:15,936 which is [inaudible] you know a whole bunch of ones. 238 00:13:15,936 --> 00:13:19,286 And we go 0, 0, 0, 0, 0, 0, 0, 0" -- is that 8? 239 00:13:19,326 --> 00:13:19,946 That's amazing. 240 00:13:19,946 --> 00:13:20,486 How'd I do that? 241 00:13:20,696 --> 00:13:24,326 So we would save 3 bytes so I'd say, "One, 2, 3 are saved. 242 00:13:24,496 --> 00:13:26,746 So these would all flip over to the network side." 243 00:13:27,076 --> 00:13:28,216 So that'd be right there. 244 00:13:28,446 --> 00:13:31,696 So our increment would be an 8, right? 245 00:13:32,906 --> 00:13:35,866 Well there's our problem because when we started doing our increments, 246 00:13:35,936 --> 00:13:43,416 we have to start realizing we're going to go 192 dot 168 dot 1 dot 0 dot 1 dot 8 dot 1 dot 16 247 00:13:43,416 --> 00:13:44,666 and you know down and down we would go. 248 00:13:44,666 --> 00:13:48,436 And we'd fill this in and we'd go, "Okay well it looks like we've got you know 8 [inaudible]" 249 00:13:48,436 --> 00:13:53,286 but therein lies the problem that we actually only have 6 valid addresses. 250 00:13:53,286 --> 00:13:54,516 We end up with one short. 251 00:13:54,686 --> 00:13:56,926 Now how did that happen? 252 00:13:57,126 --> 00:14:02,576 Well we ended up 1 short because we always subtract 2 from that value, right? 253 00:14:02,576 --> 00:14:06,696 We always -- you know whenever we're saying 7 hosts per network, we always have to think well, 254 00:14:06,696 --> 00:14:09,816 but we also have to account for the network and the broadcast. 255 00:14:09,816 --> 00:14:13,056 But it somewhat gets accounted for because of the zero value. 256 00:14:13,286 --> 00:14:16,256 Because of zero, but you know it's -- 257 00:14:16,356 --> 00:14:21,746 so zero covers one of the IP addresses that we would be short but we are still one more short. 258 00:14:21,836 --> 00:14:22,426 Does that make sense? 259 00:14:22,426 --> 00:14:24,716 Because there's a network and there's a broadcast. 260 00:14:24,716 --> 00:14:28,946 So zero covers one but we still end up one short so here's the exception. 261 00:14:29,716 --> 00:14:33,226 To be safe, always subtract one when finding networks. 262 00:14:33,226 --> 00:14:36,896 It will never hurt you to subtract one when you're finding the number of networks 263 00:14:36,896 --> 00:14:40,486 or always add one when finding the number of hosts per network. 264 00:14:40,486 --> 00:14:44,176 [Inaudible] you know if they ask you to calculate 7 hosts per network, calculate 8. 265 00:14:44,376 --> 00:14:47,946 If they ask you to calculate 101 hosts per network, calculate 102. 266 00:14:48,216 --> 00:14:53,996 It will never harm you to add 1 to the value nor will it harm you to subtract 1 267 00:14:54,196 --> 00:14:55,446 when finding the number of networks. 268 00:14:55,476 --> 00:14:56,536 And that will be the rule. 269 00:14:56,906 --> 00:15:01,626 And when you get to the point where you just get so familiar with how binary works, 270 00:15:01,626 --> 00:15:05,206 you just look at it, what -- it will sound a red flag. 271 00:15:05,206 --> 00:15:09,396 When you see something that you're like, "Wow, they're asking for exactly the binary number?" 272 00:15:09,676 --> 00:15:12,596 Okay, that's going to give me -- like it will just send -- 273 00:15:12,596 --> 00:15:15,926 like you know that spidey-sense [phonetic] that you get inside of yourself 274 00:15:15,926 --> 00:15:17,276 when evil is about to attack you? 275 00:15:17,276 --> 00:15:19,656 It's that same kind of thing. 276 00:15:19,806 --> 00:15:23,116 When you're seeing enough of these subnetting problems and you're like, "Ooh that's -- 277 00:15:23,116 --> 00:15:27,546 they're asking me for something weird like why would they ask me for 15 hosts per network? 278 00:15:27,546 --> 00:15:32,666 And when I figure that out, it comes out to a binary value of a solid 1 block. 279 00:15:32,666 --> 00:15:36,336 Okay let me just -- you know spidey-sense is going off here. 280 00:15:36,336 --> 00:15:38,846 Something's wrong with that situation." 281 00:15:39,076 --> 00:15:44,216 So you'll start to navigate and figure it out on your own but if you want a rule to remember, 282 00:15:44,386 --> 00:15:46,556 that will be a solid rule that will never fail. 283 00:15:47,796 --> 00:15:51,026 Alright, well you are well on your way to subnetting mastery. 284 00:15:51,356 --> 00:15:54,856 One more topic coming up and that variable length subnet masking, 285 00:15:55,126 --> 00:15:59,466 but for now we have seen reverse engineering which is the third and final method 286 00:15:59,466 --> 00:16:03,876 of subnetting that is very unique and then we saw of course the great exception. 287 00:16:04,416 --> 00:16:07,346 I hope this has been informative for you and I'd like to thank you for viewing. 27531

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.