IP address basics 01-07-2017, 06:50 AM
#1
I had a good time learning this today during my CCNA self-study, and I thought I"d share it.
So everyone understands what an IP address is, I assume. In case you don't, an IP address (IPv4 specifically) is a set of 4 numbers divided by a decimal, and usually looks like
192.168.10.1
Familiar, right?
An IP address is a logical address used to identify a computer on a network. This is different from a physical address in that the physical address of a computer (aka MAC address) is burned into the ROM of the network adapter.
Anyway, IP addresses identify 2 things in them, the network address and the host address. Using the example above we have the network 192.168.10 and the host address is 1.
IP addresses have 3 main classes they use, A, B, and C. The class of the IP address dictates which part of the address is the network ID and which part identifies the host. Let's look at another example.
10.10.142.183
In this case, the 10.x.x.x IP is a Class A IP address. The first octet identifies the network, and the remaining 3 octets specify the individual hosts on the network.
172.16.223.86
This is a Class B address, the first 2 octets identify the network, the remaining 2 identify the host.
IP Class Ranges first octet
A 1-126
B 128-191
C 192-223
So, using the table above, which class IP is the following?
14.28.72.183
Did you say Class A? Then you're right.
How about this one?
183.82.173.69
Class B.
You get the idea here, right?
Can you count binary? If not, you're about to learn, because that's how IP addresses exist.
Quick and dirty binary Math:
A single Byte of information is made up of 8 bits. A bit is a 1 or a 0, a yes or no, a electrical charge, or a lack of electrical. So, a Byte might be something like:
00101010
Now, what if I told that that binary string I wrote represented as a decimal number would be 42? What if I also told you I can figure that out in my head fairly quickly?
I'll show you how.
Above each bit (one or zero), imagine a table that looks like this:
128|64|32|16|8|4|2|1
In the case of binary, a 1 is true, and a 0 is false. Let's plug some numbers into the table we made:
128|64|32|16|8|4|2|1
1 | 0 | 0| 1 | 1| 1|1| 0
Now, we add up each number that has a 1 under it, so
128+16+8+4+2 = 158
Do that 3 more times and you have an IP address!
That's enough for now, this is a bit of a ramble. If you want to know how the Class A, B and C are dictated, let me know. That was the whole point I wanted to make in this thread, but I feel like it's gotten too long.
So everyone understands what an IP address is, I assume. In case you don't, an IP address (IPv4 specifically) is a set of 4 numbers divided by a decimal, and usually looks like
192.168.10.1
Familiar, right?
An IP address is a logical address used to identify a computer on a network. This is different from a physical address in that the physical address of a computer (aka MAC address) is burned into the ROM of the network adapter.
Anyway, IP addresses identify 2 things in them, the network address and the host address. Using the example above we have the network 192.168.10 and the host address is 1.
IP addresses have 3 main classes they use, A, B, and C. The class of the IP address dictates which part of the address is the network ID and which part identifies the host. Let's look at another example.
10.10.142.183
In this case, the 10.x.x.x IP is a Class A IP address. The first octet identifies the network, and the remaining 3 octets specify the individual hosts on the network.
172.16.223.86
This is a Class B address, the first 2 octets identify the network, the remaining 2 identify the host.
IP Class Ranges first octet
A 1-126
B 128-191
C 192-223
So, using the table above, which class IP is the following?
14.28.72.183
Did you say Class A? Then you're right.
How about this one?
183.82.173.69
Class B.
You get the idea here, right?
Can you count binary? If not, you're about to learn, because that's how IP addresses exist.
Quick and dirty binary Math:
A single Byte of information is made up of 8 bits. A bit is a 1 or a 0, a yes or no, a electrical charge, or a lack of electrical. So, a Byte might be something like:
00101010
Now, what if I told that that binary string I wrote represented as a decimal number would be 42? What if I also told you I can figure that out in my head fairly quickly?
I'll show you how.
Above each bit (one or zero), imagine a table that looks like this:
128|64|32|16|8|4|2|1
In the case of binary, a 1 is true, and a 0 is false. Let's plug some numbers into the table we made:
128|64|32|16|8|4|2|1
1 | 0 | 0| 1 | 1| 1|1| 0
Now, we add up each number that has a 1 under it, so
128+16+8+4+2 = 158
Do that 3 more times and you have an IP address!
That's enough for now, this is a bit of a ramble. If you want to know how the Class A, B and C are dictated, let me know. That was the whole point I wanted to make in this thread, but I feel like it's gotten too long.
---
Click here to get started with Linux!
If I helped you, please +rep me, apparently we've started over on Rep and I'd like to break 100 again...
Click here to get started with Linux!
If I helped you, please +rep me, apparently we've started over on Rep and I'd like to break 100 again...
Inori Wrote: got clickbaited by roger









![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)















![[Image: A993dMx.png?1]](https://i.imgur.com/A993dMx.png?1)
:p


