9

I've been reading about IPv4, networking, subnetting and the different classes of addresses.

I understand that IP addresses beginning with numbers from 1 to 126 are considered "Class A" addresses.

However suppose I created a private network for my company (accessible to the internet through a router/gateway) of 100 people, is there anything stopping me from giving out addresses like 15.0.0.1 - 15.0.0.100 ?

Would this be a bad idea for some reason, or does it not matter at all?

Ron Maupin
  • 98,218
  • 26
  • 115
  • 191
CodyBugstein
  • 559
  • 1
  • 6
  • 14
  • 21
    Network classes are dead, killed in 1993 by RFCs 1517, 1518, and 1519, which defined CIDR (_Classless_ Inter-Domain Routing). Modern networking doesn't use network classes. Please let them rest in peace. – Ron Maupin Feb 13 '18 at 23:54
  • @RonMaupin somebody needs to tell this guy then https://www.lynda.com/IT-Infrastructure-tutorials/Class-addresses/653248/687923-4.html – CodyBugstein Feb 14 '18 at 02:01
  • 4
    @RonMaupin: While you are absolutely correct, we still get new employees fresh out of education who have just been taught classful networking like it was invented yesterday. It's remarkable. – Lightness Races in Orbit Feb 14 '18 at 02:43
  • 6
    @CodyBugstein: That is why we do not learn professional engineering skills from random tutorials on the internet – Lightness Races in Orbit Feb 14 '18 at 02:43
  • 2
    @LightnessRacesinOrbit that's why the link is a Lynda course taught by a professional teacher of 20+ years and not some random Youtube guy to prove my point – CodyBugstein Feb 14 '18 at 04:53
  • 1
    Semi-related, I once tried to set up a network of 127.127.127.0/24, after redefining teh loopback localhost interface to be a /24 not a /8 It worked perfectly, except for windows VMs who whinged as soon as I entered the first octet. Linux and BSD were all happy with it though. – Criggie Feb 14 '18 at 06:30
  • 7
    @CodyBugstein: Even if he has 20 years of experience, that still means he started teaching in 1998. Which is 5 years since the end of network classes. – MSalters Feb 14 '18 at 08:57
  • 7
    @CodyBugstein: He may be a professional teacher of 20+ years. He's still teaching stuff that became irrelevant years ago. You're right, maybe somebody needs to tell him :-) – psmears Feb 14 '18 at 09:20
  • 2
    @CodyBugstein: And to prove _my_ point, the end result is hopelessly out of date and now dangerous misinformation. – Lightness Races in Orbit Feb 14 '18 at 10:56
  • 1
    I still see Class "A"/"B"/"C" used very commonly to represent networks of those sizes that may or may not even be in the correct ranges for the old classes. I don't get worked up about it as it's turned into a convenient shorthand. I haven't run into anyone that actually believed we were still routing classful. Even the kids fresh out of schools with outdated information know about CIDR. – Brian Knoblauch Feb 14 '18 at 12:59
  • 1
    A few years back I was working primarily with SCO OpenServer, and one particular customer's setup used 10.x.y.z network addresses. (192.168.y.z was normal.) I recall a problem reaching another 10.a.b.c subnet, despite having a default route that should have handled it fine. I found that adding an explicit 10.0.0.0/8 route with the same router as the default solved the problem, and concluded there was code somewhere in the OS that ignored the explicit subnet mask and ASS|U|MEd that 10. meant "Class A /8". So it's still good to know the history, in case you run into this sort of thing. – Monty Harder Feb 14 '18 at 19:17

2 Answers2

19

As long as you are translating your "15.0.0.0" address space to something unique on the Internet that doesn't overlap, things will "work fine".

However, you won't be able to communicate (easily) to any users who own "the real" 15.0.0.0/8. At the moment some of that space seems to be owned by HP:

$ whois 15.0.0.1
[Querying whois.arin.net]
[whois.arin.net]

NetRange:       15.0.0.0 - 15.103.255.255
CIDR:           15.96.0.0/13, 15.64.0.0/11, 15.0.0.0/10
NetName:        HP-INTERNET
Organization:   Hewlett-Packard Company (HP)

That is why this approach is not recommended. Your users (who don't know any better) will, for reasons they won't understand, not be able to speak to random companies on the Internet -- like HP in the 15.0.0.0/8 example above.

As Ron Maupin pointed out, the recommended addresses to use on the internal network are the RFC 1918 addresses. Since no one is permitted to use those addresses on the Internet, there will never be another entity you won't be able to communicate with.

Eddie
  • 14,808
  • 6
  • 42
  • 82
  • 3
    Hewlett-Packard used to own all of 15/8 and 16/8. Since 2015 the situation is probably more complicated. – OrangeDog Feb 14 '18 at 14:54
  • @OrangeDog Yup. The `whois` above only shows a /10, /11, and /13 in use by HP. I didn't whois the rest remaining blogs because I assumed the OP threw `15.0.0.0 - .100` out there as an example, and not as the specific one they were intending to use. – Eddie Feb 14 '18 at 18:41
  • ^remaining *blocks, rather – Eddie Feb 15 '18 at 16:55
12

Any network addresses you use in your own company that are in use or assigned to a different company on the public Internet will be inaccessible to your users trying to reach those addresses on the public Internet, and you will not be able to advertise to the public Internet any addresses assigned to a different company.

There are three ranges of private addresses assigned by RFC 1918:

  1. 10.0.0.0/8
  2. 172.16.0.0/12
  3. 192.168.0.0/16

You are free to use those within you own company if you NAT the addresses when using the public Internet.

To do business on the public Internet, you need to be assigned your own unique public address(es).

Ron Maupin
  • 98,218
  • 26
  • 115
  • 191
  • Right, but so long as the addresses I use are behind a router with a unique IP on the internet, I can use whatever addresses on my machines as I want right? – CodyBugstein Feb 14 '18 at 02:04
  • 2
    As long as you don't EVER need to talk to the Real Internet Hosts(tm) with those addresses, sure. – Ricky Feb 14 '18 at 02:09
  • 7
    If the private address ranges are too small for your network, I'd love to see your layout. Combined, that's 2^24+2^20+2^16 = almost 18,000,000 addresses! – ErikF Feb 14 '18 at 06:13
  • If those ranges are too small for your network you probably have enough infrastructure to set up private NAT on routers within your network, instead of having to use addresses outside those ranges. – IllusiveBrian Feb 14 '18 at 16:13