|
Jim's guide to IP Subnetting IP subnetting, interesting, logical, but a shit to remember when someone asks you to explain it! To understand IP subnetting you need to understand how and why IP uses a hierarchical system and why we need to subnet large networks behind our internet routers (information hide). Here's my notes on IP subnetting Remember the 3 usable IP classes: Decimal Binary (Leading
bit) Default Subnet's Subnetting a class B address with a (/24)
255 bit mask. IP
182.16.18.60
= 10110110.00010000.00010010.10111111 To find out the number of possible
subnets: (Note: Most TCP/IP stacks will allow these subnets however. So it's up to you. Cisco router's do not use them by default but can be programmed to do so). To find out the number of possible hosts
per subnet we do a similar calculation: Now lets do that again using a (/28) 240 bit mask. IP
182.16.18.60
= 10110110.00010000.00010010.10111111 First, how do we get 240? 128 64
32 16
8 4 2 1 Now, count the decimal bits that have a masked bit. 128+64+32+16 = 240. Now, how many Subnets? And to work out where the subnet begins? One way to figure out which subnet
ID your IP belongs to is to do the following
calculation. IP
182.16.18.60 = 10110110.00010000.00010010.10111111 This works like this: Which as you can see means that our 182.16.18.60 IP belongs on the first subnet ID 16
|