4

i am from non networking background. I suddenly wondered why the companies i worked almost always had the ip's like 192.168.x.x . Why can't they have something like 1.2.3.4

I understand that ip has and there is a concept called subneting.

Also, 192.168.0.0 to 192.168.255.255 seems to used for private use.

Question:

1) How does IP address matters thought all devices are connected to internet through roughter?

Any wisdom pls?

DrunkenMaster
  • 1,218
  • 3
  • 14
  • 28

2 Answers2

18

According to RFC 1918, addresses in the 192.168.0.0-192.168.255.255 range are private. Such addresses can be used internally by any network so they're often used inside an organization. They cannot be used on the Internet since they aren't intended to be kept globally unique.

192.168.X.X isn't the only private range defined in the RFC. You might also run into 10.0.0.0 - 10.255.255.255 or 172.16.0.0 - 172.31.255.255

Most other addresses are public, and have to be assigned to the network by a Regional Internet Registrty (RIR).

pseudosudo
  • 6,270
  • 9
  • 40
  • 53
Malt
  • 28,965
  • 9
  • 65
  • 105
  • Thanks for the comment Malt. I glanced over RFC1918, and realized below statement: The Internet Assigned Numbers Authority (IANA) has reserved the following three blocks of the IP address space for private internets: 10.0.0.0 - 10.255.255.255 (10/8 prefix) 172.16.0.0 - 172.31.255.255 (172.16/12 prefix) 192.168.0.0 - 192.168.255.255 (192.168/16 prefix). Shall i consider apart from these ranges can not be assigned to private? for example : 9.x.x.x ? – DrunkenMaster May 08 '17 at 05:45
  • Addresses outside these ranges are not private, but might be reserved for other reasons.Wikipedia has a nice list: https://en.wikipedia.org/wiki/Reserved_IP_addresses – Malt May 08 '17 at 07:23
0

Taken from Subnet Calculator Explanation:

First depict the ip address in binary. Take for example 10.0.0.0 and convert to binary:

ip address: 00001010.00000000.00000000.00000000

First we determine what class of address it is:

  • If the first bit is 0 it is a Class A address
  • If the first two bits are 10 it is a Class B address
  • If the first three bits are 110 it is a Class C address
  • If the first four bits are 1110 it is a Class D multicast address
  • If the first four bits are 1111 it is a Class E experimental address

You might see a kind of playing around with symmetries and numbers of 1-Bits (in brackets: number of 1-Bits for each nibble of the subnet mask prefix, just my guess what might have been thought of, since these Bit patterns were “sacrificed” for private networks):

  • class A: 00001010 (#1/nibble: 02): 10/8
  • class B: 10101001.11111110 (#1/nibble: 2243): 169.254/16 (automatic IPs)
  • class C: 11001100.0001 (#1/nibble: 221): 172.16/12
  • class C: 11000000.10101000 (#1/nibble: 2021): 192.168/16

Network Calculators:

Further links:

questionto42
  • 7,175
  • 4
  • 57
  • 90