Class C IP Address

PPLdude

Expert Member
Joined
Oct 3, 2011
Messages
1,618
I was wondering,

Class C addresses start with 11000000 which makes up the 192.

Where does the rest of the IP Address come from? Is the rest of the Network IP Address bound to the rule of specific binary digits?

Does it have to be 192.168.100.1 - 192.168.100.254
 

Sinbad

Honorary Master
Joined
Jun 5, 2006
Messages
81,152
I was wondering,

Class C addresses start with 11000000 which makes up the 192.

Where does the rest of the IP Address come from? Is the rest of the Network IP Address bound to the rule of specific binary digits?

Does it have to be 192.168.100.1 - 192.168.100.254
A class C address is anything with a /24 subnet mask.
The generally accepted Class C address range is from 192.0.1.1 to 223.255.254.255
 

dj_jyno

Expert Member
Joined
Sep 22, 2007
Messages
4,206
I was wondering,

Class C addresses start with 11000000 which makes up the 192.

Where does the rest of the IP Address come from?
IPv4 addresses are 32-bit... you've only shown one of the four octets.
 

roligov

Well-Known Member
Joined
Dec 11, 2007
Messages
438
A class C address is anything with a /24 subnet mask.
Subnet mask doesn't dictate the class at all. You can have a class A address (10.0.0.x) with a /24 subnet mask.

The generally accepted Class C address range is from 192.0.1.1 to 223.255.254.255
Typo? Class C is from 192.0.0.1 (first usable host address) to 223.255.255.254 (last usable host address).
 

Sinbad

Honorary Master
Joined
Jun 5, 2006
Messages
81,152
I think the zero subnet is excluded...?
But yeah you could be correct from a theoretical point of view.
 

PPLdude

Expert Member
Joined
Oct 3, 2011
Messages
1,618
Sorry my bad,

The example was just using 192.168.100.node to show the host address set to all 0's (192.168.100.0) and all 1's (192.168.100.255)

I see now that its just the 1st octet that the 110 binary applies to.
 

syntax

Executive Member
Joined
May 16, 2008
Messages
8,656
Subnet mask doesn't dictate the class at all. You can have a class A address (10.0.0.x) with a /24 subnet mask.

originally Class A, refers to 255.0.0.0
Class B is 255.255.0.0
Class C is 255.255.255.0

This changed when it became wasteful and impractical to do this
 

Johnatan56

Honorary Master
Joined
Aug 23, 2013
Messages
30,957
Classes you look at the first octet.
Class A:
0000 0001 up to
0111 1111
Then you move the 0 one further.
Class B:
1000 0000 up to
1011 1111
And again, move it one further.
Class C:
1100 0000 up to
1101 1111
And again, move it one further
Class D:
1110 0000 up to
1110 1111
And the rest is class E.

For private addresses, there are those you have to know off by heart, Class A,B,C all have one.
A: 10.0.0.0-10.255.255.255 (and 127.0.0.1 is loopback, so the device itself)
B: 172.16.0.0 - 172.31.255.255
C: 192.168.0.0- 192.168.255.255

The above you use for your LAN networks, no internet page will have those IP addresses.
 
Last edited:
Top