# Subnetting

Paddy995
Junior MemberRegistered Users Posts:

**2**■□□□□□□□□□
Hi, Ill be getting similar question to this one on my exam tomorrow. Subnetting wouldn't be my strong side so If someone could go through this with a good explanation i'd really appreciate it !

Given the following network address: 186.150.0.0 Scenario: We want to have the maximum possible number of subnets but we need to accommodate at least 980 hosts per subnet. Provide the following information: The custom subnet mask.... The total and legal number of subnets.... The total and legal number of hosts per subnet....The total number of legal hosts on the entire network..... The base address for the first four legal subnets..... The broadcast address for the first four legal subnets..... The first and last host address for the first four legal subnets..... What is the subnet address for subnet 28?.... What is the broadcast address for subnet 28?.... What are the valid host addresses for subnet 28?

Given the following network address: 186.150.0.0 Scenario: We want to have the maximum possible number of subnets but we need to accommodate at least 980 hosts per subnet. Provide the following information: The custom subnet mask.... The total and legal number of subnets.... The total and legal number of hosts per subnet....The total number of legal hosts on the entire network..... The base address for the first four legal subnets..... The broadcast address for the first four legal subnets..... The first and last host address for the first four legal subnets..... What is the subnet address for subnet 28?.... What is the broadcast address for subnet 28?.... What are the valid host addresses for subnet 28?

#### Categories

- 111.8K All Categories
- 353 Welcome Center
- 73 Announcements
- 10 Forum Rules of Engagement
- 197 Introduce Yourself
- 56 TechExams Support
- 88.6K Certification Preparation
- 131 Check Point: CCSA & CCSE
- 32.9K Cisco
- 21.6K CCNA & CCENT
- 370 CCDA & CCDP
- 9K CCNP
- 7 Cisco CyberOps
- 1.7K CCIE
- 533 Cloud Certifications
- 195 Amazon Web Services (AWS)
- 38 Azure
- 119 CCSP
- 78 Cloud+ & Cloud Essentials
- 15.5K CompTIA
- 5K A+
- 245 CASP+
- 114 CySA+
- 973 Linux+
- 4.4K Network+
- 34 PenTest+
- 266 Project+
- 3.9K Security+
- 335 Server+
- 251 Other CompTIA Certifications
- 1.2K EC-Council
- 586 CHFI
- 625 CEH
- 1.4K GIAC
- 47 IAPP
- 1K ISACA
- 28 CRISC
- 284 CISA
- 706 CISM
- 4.3K (ISC)²
- 666 CISSP
- 35 CSSLP
- 3.6K SSCP
- 926 Juniper
- 737 LPI, Red Hat & Linux Foundation
- 18.6K Microsoft
- 150 MCSA 2016 / MCSE 2016
- 161 Windows 10 exams
- 139 Windows 8 exams
- 1.4K Windows 7 exams
- 1.6K MCSA / MCSE on Windows 2012 General
- 2.3K MCTS / MCITP on Windows 2008 General
- 828 Exchange Server & Office Communications Server Exams
- 537 Other Microsoft Electives
- 349 MCSA/MCSE: Security
- 300 Microsoft Developers Certifications
- 485 SQL Server exams
- 160 Offensive Security: OSCP & OSCE
- 2K Other Security Certifications
- 345 Virtualization Certifications
- 231 Citrix Certifications
- 104 VMware
- 1.9K Other Certifications
- 14 Business Analyst Certifications
- 391 CWNP Certifications
- 873 ITIL Certifications
- 220 Project Management Certifications
- 85 Apple Mac OS X Certifications
- 62 Novell Certification
- 81 Oracle Certifications
- 52 Sun Microsystems Java Certification
- 114 Storage Certifications
- 6.7K General Certification
- 18K Education & Development
- 64 Colleges & Schools
- 89 Educational Resources
- 17.7K IT Jobs / Degrees
- 74 Professional Development
- 371 Cybersecurity
- 19 Auditing & Compliance
- 16 Cloud Security & IoT
- 14 Cryptography & PKI
- 36 Cybersecurity Management
- 5 Data Science & Machine Learning
- 9 Forensics
- 8 ICS/SCADA Security
- 29 Incident Response
- 7 Linux Security
- 11 OWASP
- 33 Pentesting
- 41 Security Awareness & Training
- 52 Security News & Breaches
- 11 Windows Security
- 20.2K General
- 31 Conferences & Events
- 21 Computer Gaming
- 7 Data Center
- 83 Classifieds
- 50 For Sale
- 6 Wanted (ISO)
- 16 Help Wanted
- 16 Just for Fun
- 16 Networking
- 17.5K Off-Topic
- 20 Scripting
- Show Us Your Tech!
- 23 Troubleshooting
- 2.4K Virtualization

## Comments

1,722Know your powers of two. You can pretty much get away with knowing 2^1 to 2^8 by heart and as much more as you can. The octet powers are useful to know at least roughly, too. So, 2^8, 2^16, 2^24, 2^32

980 hosts per subnet, and make sure to consider also the network and broadcast addresses, and if specified any "room for growth". You then need to find the closest power of two that exceeds. It's 1024, which is 2^10. If you subtract 10 from 32 (the total number of bits for IPv4) you get 22, which is your CIDR subnet mask.

Now to find out how many subnet you can fit in you divide 2^22 by 2^16, which is simply two to the power of the difference between 22 and 16, which is 2^6, which is 64.

Now, as we said each subnet is 1024 addresses. This means that we increment each subnet by 1024. But each octet is 256. So, the first one is 186.150.

0.0 to 186.0.3.255, the second is 186.150.4.0 to 186.0.7.255, the third is 186.150.8.0 then 186.150.12.0 and so on. What you notice is that you increment the third octet by 4 for each subnet. Another way to realise this is that you are taking 2 bits from the 3rd octet for your hosts, and 2 bits is 2^2 or 4. Or that since you have 64 subnets, you are using 6 bits for the subnets, leaving 2 bits for the hosts.So, if each subnet increases by 4, then counting (from zero) the 28th subnet will start with 4x27 (because we start from 0), which is 108. So, the subnet address is 186.150.

108.0, the broadcast address is one less than the next subnet or 186.150.111.255. This means that your range for hosts would be the remaining addresses of 186.150.108.1to 186.150.111.254.The quick way in your head becomes: 980 means 1024 hosts, means 2^10, means

/22, means (22-16) 2^6 (64) total subnets, means a subnet every 2^2 in the third octet. Means that the nth subnet starts at 4*(n-1), meaning first 4 are0,4,8,12and the 28th is108, the broadcast is one less than the next subnet (112) 111.255. The hosts are everything in between.Something Cisco, Something Linux,Agile PM2■□□□□□□□□□One more question " What are the valid host addresses for subnet 28" ? Would that be everything between 185.150.108.1 and 185.150.111.254 ?

Oh and what would be the total number of hosts on the entire network ? I divided 255 by 4, got 63.75 , then multiplied that by 1024 = 65280. Would that be correct ?

Thanks again !! You're a life saver !

1,722It sounds like you are doing homework, though. So, I'm not going to make it too easy. The best thing to do is just keep doing these exercises. It might take a dozen, or it might take 23 or 187, but eventually it becomes easy enough to do mostly in your head.

Something Cisco, Something Linux,Agile PM