Using CIDR/VLSM this calculator allows you to quickly figure out how to most efficiently setup your network. If you are using IPv6 you can use our IPv6 subnetting calculator to efficiently setup those addresses.
Variable length subnet masking (VLSM) is a more efficient way of subnetting a network. When you perform classful subnetting, all the subnets must use the same subnet mask, forcing them to each use the same number of hosts. This can lead to wasted IP space.
Classless Inter-Domain Routing (CIDR) has replaced the classful network design. Subnets no longer have to all be the same size. Network architects can now create multiple subnets all of which vary in size and subnet mask.
VLSM allows you to use different subnet masks, allowing for a more exact number of hosts to be used in each subnet. To perform VLSM subnetting, starting with the largest number of hosts needed in a single subnet, find the smallest subnet which will have that many hosts. Then do the same for the subnet needing the second largest number of hosts, all the way down to the smallest number of hosts needed.
If you want to learn more about networking and get the Cisco CCNA certification, we highly recommend the Cisco CCNA Gold Bootcamp as your CCNA training course. The CCNA is by far the most in-demand networking certification by employers, and the Gold Bootcamp is the highest rated Cisco course online. It has an average rating of 4.8 from over 30,000 public reviews:
This subnet calculator takes an IP address and netmask and calculates the resulting broadcast, network, Cisco wildcard mask, and host range. By giving a second netmask, you can design subnets and supernets. It is also intended to be a teaching tool and presents the subnetting results as easy-to-understand binary values.
You could also calculate the number of networks and the number of hosts per network based on that particular subnet mask. And then you could calculate additional networks by adding onto the CIDR notation and performing the same calculations for each possible scenario. This question that asked for 40 devices per subnet. So after creating this chart, we can then look at the host per subnet. We can see that a /27 only supports 30 devices per subnet, but a /26 allows for four networks with a total of 62 hosts per network on each of those four subnets.
We could then perform the same calculations that we did in a previous video, where we had that IP address and subnet mask. We then wrote down the binary version of both of those and designated what portion of the subnet mask was the network part of the mask, the subnet bits that we were able to borrow, and then the host bits that were left over at the end.
You can see in this example, there were 24 network bits, there are two subnet bits, and six host bits. Now, we can perform those calculations that we did from the previous video. To determine the total subnets, we take the 2 to the second power because we had two subnets available. That gives us a value of four total subnets. And then we can calculate hosts per subnet, which, in this case, is six bits in length, which would be 2 to the sixth power minus 2 or 64 minus 2, which gives us 62.
If you wanted to create a very quick chart that could help you calculate the CIDR block notation to decimal version, then you can write out something like this that uses the /9, /17, and /25 to show you, in the interesting octet, that the number you would use to convert to decimal is a 128. We can use a chart like this as we go through the magic number method or really any method that you use to perform any type of subnetting shortcut.
If we look at the chart that we created earlier for the values of 16, we can see that they range from 0, 16, 32, 48, 64, and so on. We know that the value for our IP address is 77. So if we look in our range for where 77 might sit, it is between 64 and 80. This means that our subnet ID in this particular example is 64. And we can bring that down to show the subnet ID of 165.245.64.0.
The last host is the broadcast address minus 1. So again, we can do this with no additional calculations. We simply take 165.246.79.255, subtract 1, and that gives us the value of 165.245.79.254. Now, we have all of the values that we need to be able to perform our calculations. We have our IP address, our subnet mask, our subnet ID, our broadcast address, the first host, and the last host on that subnet.
In this particular case, the first column, we bring down the subnet ID of 10, and the third and fourth octet, we bring down the values of 255. And of course, as we saw previously, our interesting octet is the second octet. We perform our magic number calculation again. 256 minus 248 gives us the same magic number of 8.
Since we already knew that, we could have possibly skipped this step at this point. And we need to calculate the broadcast address for that second octet by taking our subnet ID, adding the magic number and subtracting 1. In this case, our subnet ID is 176. We add the value of 8, subtract 1 from that to give us a value of 183.
So our broadcast address for this subnet is 10.18.255.255. Calculating the first available host and last available host then is simply adding 1 to the subnet ID and subtracting 1 from the broadcast, which means that our first host is 10.176.0.1, and the last host is 10.183.255.254.
We know from our chart that a /27 means that our interesting octet is octet 4. And in that octet, we have the value of 133. If we go to a chart that shows us those 32 hosts per subnet, we can calculate where that 133 might be. And it starts with a subnet that has a 128. That means that the 128 is the beginning of the subnet, and 1 minus 160 would be the end of that subnet.
Wenn du bereits weit, was eine IP-Adresse, ein Netz- und Hostanteil, sowie eine Subnetzmaske ist und was das mit Routing zu tun hat, bist du fr diesen Artikel bestens vorbereitet. Ansonsten kann ich dir mein Grundlagenvideo zu diesen Themen empfehlen:
Subnetting unterteilt also ein Netzwerk in mehrere kleinere Unternetze. Das Gegenteil davon wre Supernetting. Beim Supernetting wird also mit anderen Worten die Anzahl der maximalen Hosts im Netzwerk erhht oder mehrere Netze zusammengefasst.
Alle Bits in der Subnetzmaske, die auf 1 gesetzt sind, beschreiben den Netzanteil der IP-Adresse. Alle Bits, die auf 0 gesetzt sind, den Hostanteil. Der Hostanteil bestimmt, wie viele IP-Adressen in einem (Sub-)netz untergebracht werden knnen. In diesem Beispiel also 28, da 8 Bits auf 0 gesetzt sind. Wir haben also 8 Host-Bits. Wenn wir aber unser Netzwerk weiter unterteilen mchten, da wir beispielsweise vier Subnetze fr beispielsweise vier Abteilungen in einer Firma bilden mchten, mssen wir uns Bits aus dem Hostanteil "klauen" und diese dem Netzanteil hinzufgen. Die Subnetzmaske bestimmt also, in welchem Subnetz sich eine IP-Adresse befindet und wie viele IP-Adressen pro Subnetz vorhanden sind. Hier ein Beispiel:
Jetzt berechnen wir einmal, in welchem Subnetz unsere ursprngliche IP-Adresse 192.168.0.15 liegt und wie die Eckdaten dieses Subnetzes sind. Gesucht ist also die Netzwerkadresse (Netz-ID), erster und letzter Host im Subnetz und die Broadcastadresse. Um die Netzwerkadresse zu berechnen, muss die IP-Adresse und die Subnetzmaske in Binr umgerechnet werden. Dann wird auf diesen eine Bitweise-Und-Operation angewendet:
Um den ersten Host zu berechnen, nehmen wir die vorhin ausgerechnete Netzwerkadresse und setzen das letzte Host-Bit auf 1. Wir erhalten folgende IP-Adresse: 11000000.10101000.00000000.00000001 bzw. 192.168.0.1. Dadurch, dass nur das letzte Host-Bit auf 1 steht, handelt es sich um die zweite IP-Adresse im Netz. Die erste IP-Adresse ist ja fr die Netzwerkadresse reserviert, die wir vorhin schon ausgerechnet haben.
Um den letzten Host zu berechnen, nehmen wir die vorhin ausgerechnete Netzwerkadresse und setzen auer dem letzten Host-Bit alle Host-Bits auf 1. Wir erhalten folgende IP-Adresse: 11000000.10101000.00000000.00111110 bzw. 192.168.0.62. Dadurch, dass nur das letzte Host-Bit auf 0 steht, handelt es sich um die vorletzte IP-Adresse im Netz. Die letzte IP-Adresse ist fr die Broadcastadresse reserviert.
Um den Broadcast zu berechnen, nehmen wir die vorhin ausgerechnete Netzwerkadresse und setzen alle Host-Bits auf 1. Wir erhalten folgende IP-Adresse 11000000.10101000.00000000.00111111 bzw. 192.168.0.63. Dadurch, dass alle Host-Bits auf 1 gesetzt sind, handelt es sich um die letzte IP-Adresse des Netzes. Das nchste Subnetz wrde in unserem Beispiel dann mit der Netzwerkadresse 192.168.0.64 beginnen und so weiter.
Hallo Rafael!
Ich bin durch Zufall in der IT gelandet und mache meine Ausbildung zur Fachinformatikerin. Ich bin vorher nie mit IT Themen in Berhrung gekommen und oft fiel es mir schwer die Gebiete zu verstehen. Deine Beitrge sind die ersten die ich vollends verstehe. Lieben lieben Dank!
Hallo ich finde diese Seite sehr hilfreich, aber ich habe zwei Fragen: einmal zur Hostadresse: wird nicht die Subnetzmaske ber die IP gelegt und dann die Bits von der IP abgeschrieben wenn das Bit auf der SM 0 ist wird das Bit von der IP bernommen und der Rest auf 0 gesetzt und als zweites wegen der Broadcastadresse: es wird doch der ganze Host-Anteil auf 1 gesetzt, was ist mit den ersten zwei Nullen hinter dem Punkt?? Oder wieso und im welchen Schritt wird das Netzteil um 2 Bits erweitert?
Hallo Vanessa,
die Netzadresse wird berechnet, indem die Subnetzmaske ber die IP-Adresse gelegt wird (Bitweise-Und-Operation). Die Bits, die in der IP-Adresse UND in der Subnetzmaske auf "1" gesetzt sind, werden in der Netzadresse ebenfalls "1".
Richtig, bei der Broadcastadrese werden alle Bits aus dem Hostanteil auf "1" gesetzt. Warum die ersten zwei Bits im vierten Oktett der Broadcastadresse auf "0" gesetzt sind, liegt daran, dass wir das Netz so unterteilt haben, dass wir vier Subnetze haben. Wir haben also den Hostanteil um diese zwei Bits verkleinert (siehe Abschnitt "Subnetting in der Praxis").
Hier kannst du dir die Aufgabe inkl. Rechenweg aus dem Artikel nochmal in Ruhe anschauen: =192.168.0.15&asnm=24&nsnm=26
LG Rafael