-2

So, I've been looking on different websites, and using different subnet calculators, where in some cases it's possible and others it isn't possible.

Are these IPs possible?

Class A: 11.66.12.49/6 (Less than 8 network bits)

Class B: 133.22.15.1/10 (Less than 16 net bits)

Class C: 201.2.115.25/18 (Less than 24 net bits)

Sources:

http://jodies.de/ipcalc?host=201.2.115.25&mask1=18&mask2=

http://www.subnet-calculator.com/subnet.php?net_class=C

So basically, can you have a class C IP address with 5 netbits? or a class B for that matter?

RohitWagh
  • 1,999
  • 3
  • 22
  • 43
Nicholas
  • 783
  • 2
  • 7
  • 25
  • @glglgl still a useful skill, what terrible CS program were you in? – Woot4Moo Mar 22 '12 at 20:35
  • useful? it is obsolete, outdated and hasn't any relevance any longer except for computer archaeologists. – glglgl Mar 22 '12 at 20:36
  • To make myself clear: it MAY be useful to know about them, but only passively (know what it is about) and not actively (use it). And not at all *only* knowing it. – glglgl Mar 22 '12 at 20:43

2 Answers2

2

There haven't been classes A, B and C since CIDR was introduced in 1993.

So all of your given networks are possible.

glglgl
  • 89,107
  • 13
  • 149
  • 217
1

Yes, it is possible.

Basically, the classes are the IP address ranges:

  - Class A: 0.0.0.0 - 126.255.255.255
  - Class B: 128.0.0.0 - 191.255.255.255
  - Class C: 192.0.0.0 - 223.255.255.255
  - Class E: ...
  - Class F: ...

With that said, if your in a classful network, you have to use the default subnet masks: /8 - /16 - /24.

On the other hand, if your in a classless network, you may use any subnet mask, no matter the value of the first octet.

Hope this helps!

Sources:

Corb3nik
  • 1,177
  • 7
  • 26