IPv4, CIDR, and VPC Subnets Made Simple!

  Рет қаралды 198,030

Ryan Schachte

Ryan Schachte

Күн бұрын

Пікірлер: 212
@Eriddoch
@Eriddoch 4 жыл бұрын
This is seriously, such a good video. AWS is actually the reason I was curious about the topic in the first place, so your example VPC was 100% relevant to me. You're a stud.
@zulhilmizainudin
@zulhilmizainudin 4 жыл бұрын
CIDR part starts at 12:25. You're welcome.
@yukan3908
@yukan3908 3 жыл бұрын
That's cool!
@raymundoo2879
@raymundoo2879 3 жыл бұрын
Thank you king 🤴🏽
@apidas
@apidas 3 жыл бұрын
no. you can show yourself out
@lampham7874
@lampham7874 3 жыл бұрын
That's helpful, thanks
@hammadahmed3897
@hammadahmed3897 3 жыл бұрын
Without a doubt the best video available to learn about IPs, subnets and VPCs!
@Ankit_ness
@Ankit_ness 5 жыл бұрын
This has been so far best content available to actually understand Subnet / CIDR and binary calculations ...you got a subscriber ...amazing explanation
@TheSimpleEngineer
@TheSimpleEngineer 5 жыл бұрын
Glad you liked it !
@ofabinho
@ofabinho 2 жыл бұрын
Oh my, your english is very clear. I am from Brazil and it's very peaceful to listen to you haha
@ST-fu5nj
@ST-fu5nj 5 жыл бұрын
You've done such a fantastic job explaining this. Thank you very much!
@mahadikpratik1
@mahadikpratik1 2 жыл бұрын
perfect video for someone like me struggling to define CIDR ranges especially while creating AWS VPC..Thanks Ryan
@gsgunturu1473
@gsgunturu1473 2 жыл бұрын
You nailed it bro. Even a KG student can understand the networking basics form this video. Kudos
@khaledhamdy6110
@khaledhamdy6110 3 жыл бұрын
best CIDR explanation i have ever watch till now
@emilioortega9487
@emilioortega9487 2 жыл бұрын
this is the most explanatory video I've seen so far
@kunal9jaggi
@kunal9jaggi 5 жыл бұрын
Very good explanation of CIDR and IP v4
@jayasurya4121
@jayasurya4121 4 жыл бұрын
The best CIDR tutorial out there bruv! Your explanation lives upto your channel name. You just earned yourself a new subscriber. Keep up the good work!
@chiragsaxena5784
@chiragsaxena5784 3 жыл бұрын
Literally the best video on the topic. Great Work!!
@gordons1816
@gordons1816 5 жыл бұрын
"... internet-connected toothbrush..." - I'll have to see if I can find one of those! Excellent video, BTW!
@krishnaramisetti7435
@krishnaramisetti7435 4 жыл бұрын
why not, it will let the google know when you need a dentist visit. So they can run the ads..
@orrlevinger
@orrlevinger 4 жыл бұрын
The best CIDR explanation video ever!! first time i actually get it! AMAZING
@balachandrankannan2628
@balachandrankannan2628 4 жыл бұрын
Wow! Such a clear explanation. Really made the topic simple.
@pradeepmedagiri4162
@pradeepmedagiri4162 4 жыл бұрын
good information. I found it useful and in very less time i cleared the doubt i was having. Thank you
@mirceastaicu4131
@mirceastaicu4131 3 жыл бұрын
I would suggest that nodes on a local network (LAN) communicate via Ethernet frames using OSI layer 2 (data link) MAC addresses. Whenever a device wishes to send a message to another device, it needs two things, the source MAC address (which it has) and the destination MAC address of the receiver, which it doesn't have. In order to obtain the missing piece of the puzzle, the destination MAC address, the sender node broadcasts an ARP (Address Resolution Package) package to a Broadcast Address. The switch (the Broadcast Address is associated with the switch) distributes the ARP package to all devices on the network and waits for a reply. Once the reply comes back to the switch, the switch updates its CAM table and sends a reply to the initial enquiring node with the destination MAC address. The sender can now send the Ethernet frame to the destination
@rdhaundiyal1
@rdhaundiyal1 2 жыл бұрын
wow, what a great explanation! excellent video
@chadbrockman4477
@chadbrockman4477 2 жыл бұрын
Great intro - appreciate it.
@adithyasanthosh30
@adithyasanthosh30 2 жыл бұрын
Perfectly Explained 👍Thanks
@mohammadawal2383
@mohammadawal2383 4 жыл бұрын
Thanks for giving clear concept
@snvpper
@snvpper 4 жыл бұрын
Many thanks for this. As a self-taught developer, trying to define the IP ranges for my VPC subnets was really confusing me. This video explained it perfectly!
@yadugna
@yadugna 2 жыл бұрын
Great Video brother- thank you
@Wastelander1972
@Wastelander1972 5 жыл бұрын
You said 2^4 gives you 16 IP addresses... don’t you have to subtract 2 to compensate for Network and broadcast ID’s?
@injawoogie3884
@injawoogie3884 5 жыл бұрын
Both are correct. There are 14 usable IP addresses of 16 total IP addresses. Good thinking Wastelander1972
@TheSimpleEngineer
@TheSimpleEngineer 3 жыл бұрын
That is correct!
@mufaddalf4377
@mufaddalf4377 2 жыл бұрын
This video is really great. Do you have more videos related to this. Please point me to the correct playlist 👍
@alejandrocalzada9832
@alejandrocalzada9832 2 жыл бұрын
Thank you. It was an awesome video.
@jeremywang3877
@jeremywang3877 5 жыл бұрын
Great video, great explanation, man! I see how it works now. Btw a great voice too!
@obempa
@obempa 4 жыл бұрын
Great tutorial; My networking was a bit rusty but got me up to speed! Thumbs up dude!
@zachhamilton6269
@zachhamilton6269 3 жыл бұрын
Great stuff man!
@sathishthiagarajan9040
@sathishthiagarajan9040 3 жыл бұрын
Thanks!, this is really helpful
@spellmaster6
@spellmaster6 3 жыл бұрын
I love the xkcd post at 4:24! lol XD
@UbhiTS
@UbhiTS 4 жыл бұрын
you just nailed it so deep. thank you !
@abhijeetprabhu4117
@abhijeetprabhu4117 4 жыл бұрын
Awesome video! Thanks for sharing!
@alexisemilemusic
@alexisemilemusic Жыл бұрын
THIS IS BEST EXPLANATION I HAVE EVER COME ACCROSS AS FAR AS EXPLAINING HOW THE IP INTERACTS WITH THE INTERNET.THANK SO MUCH RYAN, YOU ARE THE BEST!
@Piraetsu
@Piraetsu 5 жыл бұрын
Finally i can understand CIDR completely, thank you very much
@20superFOX07
@20superFOX07 4 жыл бұрын
Simple and clear. Thank you
@twinnrova
@twinnrova 4 жыл бұрын
Excellent video!
@yogeshmittal2238
@yogeshmittal2238 4 жыл бұрын
Great video.
@aafreeenparvez
@aafreeenparvez 4 жыл бұрын
You are truly incredible. Thank you for this. SO well explained, Kudos brother!!!
@nfscarzyt6967
@nfscarzyt6967 2 жыл бұрын
Which mic did you use? Your voice is amazing!
@HarshKapadia
@HarshKapadia 3 жыл бұрын
If anyone is confused at 21:35 and further about why the 4th octet of the IP has to be a multiple of 16, then read on. - From 10.0.0.0/20, we already have a range that goes from 10.0.0.0 to 10.0.15.255. - The subnet mask: 11111111.11111111.11110000.00000000 - Now within the initial range, we need another subnet, which is 10.0.0.0/28. - 10.0.0.0/28 implies that the FIRST 28 bits of the IP have to be fixed. - New subnet mask: 11111111.11111111.11111111.11110000 - (32 bits in IPv4) - (FIRST 28 fixed bits in the new subnet) = (4 bits left AT THE END) - 2^4 = 16, so 16 IP addresses are possible for the new subnet. (2^4 since we're talking in Binary.) - Which 16 IP addresses in the given range of 10.0.0.0 to 10.0.15.255 are valid though? - There are multiple groups of contiguous 16 IP addresses that are valid. - IP addresses are composed of a Network ID and a Host (device) ID. - It is important to understand here that the first 28 bits that are supposed to be fixed are only for the routers to understand to understand which bits in the actual IP form the Network ID (the 1s) and which bits form the host IDs (the 0s). So the network ID can change, but the number of bits it can take is constant (= no. of 1s). The host IDs can be any contiguous 16 (2^4) IP addresses from the starting range. Each set of these 16 Host IDs will have a fixed Network ID though. - So it's not that the first 28 bits (Network ID) cannot change. They can change in the initial permissible range (from 10.0.0.0 to 10.0.15.255). They only have to be constant per 16 Host IDs. That is what is meant by the 1s and 0s in the subnet mask. - The first 28 bits are only used for Network ID identification. The ID can change, but once one set is chosen, the Network ID has to be same for the 16 contiguous Host IDs possible. - How do we find the groups of contiguous 16 IPs? - Start flipping bits in the 3rd and 4th octets of the subnet (keeping in mind that the last 4 bits of the 4th octet cannot change and have to be zero to get the proper starting range) and check their decimal values to be in the permissible ranges of 0 to 15 for the 3rd octet and 0 to 255 for the 4th octet. Do not change any bits of the 1st or 2nd octet. - The original subnet mask: 11111111.11111111.11110000.00000000 ^^^^^ (last 4 are fixed at 0. The other zeroes can be varied within the initial range.) - The new subnet mask: 11111111.11111111.11111111.11110000 - Eg: 10.0.0.0/28 is a valid starting range (3rd octet between 0 and 15, 4th octet between 0 and 255 and last 4 bits of 4th octet are zero). So the server will get IPs from 10.0.0.0 to 10.0.0.15. - Eg: 10.0.0.1/28 (ie, 10.0.0.1 to 10.0.0.16) is NOT a valid starting range even though 3rd octet between 0 and 15 and 4th octet between 0 and 255, as the last 4 bits of 4th octet are NOT zero. The last 4 bits have to be zero (unchanged), as there needs to be a way to identify to which subnet an IP address belongs. If IPs are assigned from 10.0.0.1 to 10.0.0.16 (as in the case of 10.0.0.1/28) for server 1, then if another subnet exists and is assigned from 10.0.0.17 to 10.0.0.32 (ie, 10.0.0.17/28) for server 2, then in binary (electronic communication is in binary) the system will not be able to route the communication to the correct server. Why? 16 in a binary octet is 00010000 and 17 is 00010001. The routing system decides the subnet to which the communication needs to be sent on the basis of ignoring the host ID bits and taking them as zeroes (as they are the IPs inside the subnet and it is not concerned with them. It only cares about which subnet it needs to reach. The router inside the subnet will find the exact device.). So with 17 (00010001), the routing system will send the communication to the 1st subnet (10.0.0.1/28) instead of the 2nd (10.0.0.17/28), as it will ignore the first 4 bits and resolve them only on reaching the first server, which will cause an error, as 16 is the last IP of the 1st server. - Eg: 10.0.0.16/28 is the next valid starting IP after 10.0.0.0/28 (3rd octet between 0 and 15, 4th octet between 0 and 255 and last 4 bits of 4th octet are zero). So the server will get IPs from 10.0.0.16 to 10.0.0.31. - Eg: 10.0.0.32/28 is the next valid starting IP after 10.0.0.16/28 (3rd octet between 0 and 15, 4th octet between 0 and 255 and last 4 bits of 4th octet are zero). So the server will get IPs from 10.0.0.32 to 10.0.0.47. - MANY more are possible. - On observation of the above examples, the decimal values of the 4th octet of the valid STARTING IPs are all multiples of 16. I hope that helps! Lmk if you have doubts by leaving a reply, I'll try to answer. I'm also available on Twitter at @harshgkapadia for any doubts. PS: - A good video on finding ranges from the CIDR notation: kzbin.info/www/bejne/g56kYWBvbJ2Zic0 - A good video on finding the usable IP range, Network ID and Broadcast ID from an IP somewhere in the range: kzbin.info/www/bejne/hoCzoHSgjKuefck
@TheSimpleEngineer
@TheSimpleEngineer 3 жыл бұрын
Nice writeup
@HarshKapadia
@HarshKapadia 3 жыл бұрын
@@TheSimpleEngineer thank you!
@rachana481
@rachana481 2 жыл бұрын
man this helped me out so much!! i was wondering the exact same thing. the bit you said about network id has to be fixed for a given subnet made all the difference!! thanks a lot for this wonderful writeup.
@HarshKapadia
@HarshKapadia 2 жыл бұрын
@@rachana481 woah! Thank you for going through this huge thing haha. Grateful!
@DanteEhome
@DanteEhome 3 жыл бұрын
Based on my understanding: In case of 10.0.0.0/20: binary: 00001010.00000000.0000 | 0000.00000000 (| represent 20). The first half is yours. "00001010.00000000.0000" this part. You cannot change this part. If you assign 10.0.16.0/28,it basically means "00001010.00000000.0001" in the first half. It's not your space anymore. And the reason why it can only be the power of 16 is because when you modifying 00001010.00000000.0000xxxx.0000 | 0000 , the last four digit is reserved. So if we take the first half in this case, 00001010.00000000.0000xxxx.0000 the minimal change you can do is change the last digit 0 to 1. Which adds 16 to the whole number. That's why it can only be the power of 16.
@PedroHenrique-qh3bl
@PedroHenrique-qh3bl 2 жыл бұрын
Your conclusion was better than the vídeo explanation :D, thx
@ruchk3872
@ruchk3872 4 жыл бұрын
Thank you, so well explained.
@Smaels
@Smaels 4 жыл бұрын
I've read/watched several tutorials on CIDR but now I FINALLY GET IT!! Thank you! Subscribed.
@calhoub
@calhoub 4 жыл бұрын
Dude, you are a heaven send. I've been sitting here for the last few days trying to understand this stuff and you just helped me get to 90% understanding. A lot better than the 30% I was at 23 minutes ago..
@miguelangelojeda8382
@miguelangelojeda8382 4 жыл бұрын
Nice explanation!
@Namita212
@Namita212 3 жыл бұрын
Thank you very much.
@jtieo84
@jtieo84 4 жыл бұрын
Thank you for this, amazingly well broken down explanation!
@meenakshisundaram3231
@meenakshisundaram3231 3 жыл бұрын
Excellent👍
@BrandenLaCour
@BrandenLaCour 4 жыл бұрын
Quick note. I think he meant 10.0.0.0/12 where he did 20. 10.0.0.0/20 is not 4,096 addresses.
@seetsamolapo5600
@seetsamolapo5600 Жыл бұрын
I think it'd be nicer to put show the Maths behind things like why there are 4.2 billion addresses. I just derived it and it's 256*256*256*256. For me it makes the whole things less mystical - like where are all these magic numbers coming from. Anyways don't mind me just making myself some notes below: IP addresses - how devices communicate/are located on a network Total IPv4 addresses - 2^32 Class A - 8 bits allocated to the network and 24 bits allocated to the hosts. 2^24 IP addresses allocated to hosts in this range. Class B - 16 bits allocated to the network and 16 bits to the hosts. 2^16 IP addresses allocated to hosts in this range. Class C - 24 bits allocated to the network and 8 bits to the hosts. 2^8 IP addresses -Companies determine how many IPs they need to get the right class range by calculating the least highest number of base 2 addresses A router is assigned an address within a 2^32 in a local network where all the devices in the local network are assigned private addresses. We're only using one public IP address that's assisting potentially hundreds of devices in a single network
@Saitama-ur3lq
@Saitama-ur3lq 2 жыл бұрын
can someone explain why do we need "classful networking" why cant we just assign ip addresses without any class?
@cutemilli1982
@cutemilli1982 4 жыл бұрын
This is a very helpful video specially for people having absolutely no idea about networking. Thanks a ton.
@techtesiaj
@techtesiaj 6 ай бұрын
Can you explain why its 2*32. Where does the 2 come from when calculating total address possibilities
@dprice06468
@dprice06468 4 жыл бұрын
Best explanation of IPv4 and CIDR i've seen. Awesome! Thanks!
@_a-g_4407
@_a-g_4407 3 жыл бұрын
the AWS demonstration is really awesome; was it just me or any Mac user would be curious about how the calculator was deployed in such a convenient and cool way?
@abhishekkachala3543
@abhishekkachala3543 Жыл бұрын
Nice video
@femiemmanuel9933
@femiemmanuel9933 4 жыл бұрын
Very Apt
@robertbrancato1679
@robertbrancato1679 3 жыл бұрын
In the IT industry, most would say "fake it till you make it". With that approach, you may never get the opportunity to grasp basic concepts. This lesson has tied up a lot of loose ends on the fundamentals of IPv4. Thank you!
@eyadbustanji2921
@eyadbustanji2921 3 жыл бұрын
Thank you so much but I have question a think this is an example of subnetting but the cidr is deferent!!
@felixf4378
@felixf4378 Жыл бұрын
Jesus dude you talk too much, almost 10 min of useless information before you start getting to the point.
@enamrik
@enamrik 2 жыл бұрын
He said internet connected tooth brush and I laughed so hard I forgot everything and had to watch the whole video again.
@princearora8184
@princearora8184 5 жыл бұрын
Would you mind explaining the routing table used in NAT ?
@jonnycoates653
@jonnycoates653 2 жыл бұрын
Amazing, thank you very much! I've spent the last few days trying to work out CIDR (and how to get the actual IP addresses that are part of it) and this is the first resource that's been clear enough to get me to understand!
@MikkoVille
@MikkoVille 4 жыл бұрын
Thanks for the very informative video. It made the whole thing much clearer even though I've been watching a lot of AWS tutorials lately. None of them went into trouble of explaining CIDR blocks.
@_zelatrix
@_zelatrix 3 жыл бұрын
You said when you created the VPC that 10.0.0.0/20 was 4096 IP addresses. How do you know that?
@HelgiFelixson
@HelgiFelixson 3 жыл бұрын
I'm studying for the AWS Solution Architect Associate certificate and needed by VPC knowledge beefed up. This video really helps!
@hungrypersian
@hungrypersian 3 жыл бұрын
same! :)
@seetsamolapo5600
@seetsamolapo5600 Жыл бұрын
How is it going?
@akrammohammed1167
@akrammohammed1167 3 жыл бұрын
Why does it have to be evenly divisible by 16? Why does 10.0.15.15/28 give you an error?
@Rorypandanda
@Rorypandanda 3 жыл бұрын
Wow, watched countless videos and this one is the only video where I feel the concept finally sticks to my head.
@dagumak
@dagumak 4 жыл бұрын
In VPCs, why should I becareful and allocate less addresses instead of more? If my architecture is ever expanding then wouldn't make sense to always allocate more to reduce future overhead of migration?
@PrakashAdidam
@PrakashAdidam 2 жыл бұрын
Great explanation!!! thanks for doing this video!!!
@akrishnadevotee
@akrishnadevotee Жыл бұрын
Why does the last byte require offset by the number of bits we specify?
@lijojacob12
@lijojacob12 4 жыл бұрын
Thank you!
@VishalRaoOnYouTube
@VishalRaoOnYouTube 3 жыл бұрын
Awesome video. Will share with my youngins.
@gillianduncan222
@gillianduncan222 Жыл бұрын
17:50secs lost you at how the binary 1’s turns into 15 & 255??
@creazyengineer8080
@creazyengineer8080 Жыл бұрын
sorry it can't help me....cidir is confussion...
@paurushgargtube
@paurushgargtube Жыл бұрын
Thanks
@vipagrawal
@vipagrawal Жыл бұрын
Thanks
@SuperBoi45
@SuperBoi45 2 жыл бұрын
Thanks
@shahanalways
@shahanalways 3 жыл бұрын
Very well explained. one more subscriber for sure.
@michaelreyes9353
@michaelreyes9353 Жыл бұрын
Great video and explanation. Helped me out. Keep it up!
@wilfriedhouenou9560
@wilfriedhouenou9560 3 жыл бұрын
Thank you for making this video!
@rosyaleman945
@rosyaleman945 10 ай бұрын
THANK YOU SO MUCH this was an amazing video, my professor kept explaining CIDR blocks in class but i never got it so i was freaking out about an asignment he gave us but this video made it so simple for me to understand!!
@johnderinger
@johnderinger 7 ай бұрын
Clear and understandable. Thank you
@RozinaSultana
@RozinaSultana 2 жыл бұрын
Ryan Schachte, This is a great presentation. thoughtful, specific, and with the right modulation. One other feature that probably many of us don't know. Which is people with low vision, like, people with Macular degeneration eye problems who see better with black text over white background. So these graphics help to pay attention a lot easier for many people with eye problems. especially older. halfway later it got in opposite directions. white text on black background. which makes it equally harder. Please have it in your mind for further design improvement.
@jorgerivera9175
@jorgerivera9175 2 жыл бұрын
Thank you soooo much for this video!!!
@hishamahammmedkm1936
@hishamahammmedkm1936 Жыл бұрын
Like those who comming from aws
@vivekreddy7520
@vivekreddy7520 4 жыл бұрын
Thanks for detail explanation. This suffices for /20 range. But what if I want to use /16 range? It has 65,536 ip's. I want to create 8 subnets where each subnet can host 8192 ip's. How can I calculate ip cidr range for these 8 subnets?
@chetanpatteparapu9107
@chetanpatteparapu9107 3 жыл бұрын
Thank you very much for the video :)
@alissonreinaldosilva1119
@alissonreinaldosilva1119 5 жыл бұрын
What is the difference between creating a subnet with IPv4 CIDR block "10.0.15.16/28" and "10.0.15.32/28", and how many subnets can we create? Awesome video!!!
@Anime_games-_-XUnknown
@Anime_games-_-XUnknown 3 жыл бұрын
192.168.0-15.0-255 is more easier
@nitinkulkarni7942
@nitinkulkarni7942 4 жыл бұрын
What will my Subnet CIDR look like if the I select /21 or /22 as the mask value instead of /28. What should my last value be multiple of? In your example it was multiple of 16
@0xQuito
@0xQuito 3 жыл бұрын
THANK YOU BUDDY this helped a little with my cybersec course :) so much easier you explaining it haha
@cudanz
@cudanz 2 жыл бұрын
Thanks for such a clear explanation....it's cleared quite a few things up for me!
@TravelChick777
@TravelChick777 2 жыл бұрын
Thank you so much! I was struggling and you broke it down so simply that I finally understand. I appreciate you
@raidenli6602
@raidenli6602 2 жыл бұрын
Thanks Ryan! It is a very good video. Especially using AWS to show example usage. saved my days
@aloutsis
@aloutsis 3 жыл бұрын
Don't mean to sound like a fanboy but that was an awesome video to say the least. Step by step, incremental knowledge and real life application and examples. Great job!!!!!
@fernandogoncalves1473
@fernandogoncalves1473 Жыл бұрын
Amazing video! This is one of the best explanations I have seen so far about this topic. Great! I appreciate it!
@yuriirabeshko6925
@yuriirabeshko6925 2 жыл бұрын
Finally I have understood what all this means 😃 thank you Ryan so much. You explain things very clearly. Like+ subscribe
Subnet Mask - Explained
17:55
PowerCert Animated Videos
Рет қаралды 2,8 МЛН
IPv4 Addressing Lesson 2: Network IDs and Subnet Masks
20:32
NGT Academy
Рет қаралды 1,7 МЛН
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 6 МЛН
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 14 МЛН
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 3 МЛН
Spongebob ate Patrick 😱 #meme #spongebob #gmod
00:15
Mr. LoLo
Рет қаралды 20 МЛН
Dependency Injection & Inversion of Control
11:00
Ryan Schachte
Рет қаралды 197 М.
subnetting is simple
13:33
Sunny Classroom
Рет қаралды 2,5 МЛН
Sliding Window Technique - Algorithmic Mental Models
36:45
Ryan Schachte
Рет қаралды 352 М.
How DNS Works Visually
10:46
Ryan Schachte
Рет қаралды 77 М.
Introduction to AWS Networking
30:02
AWS with Chetan
Рет қаралды 449 М.
IPv4 Addressing Lesson 1: Binary and the IP Address MADE EASY
14:53
Classless Interdomain Routing (CIDR)
13:27
Etobitech Canada
Рет қаралды 178 М.
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 6 МЛН