IP address question for all u A+/MCSE geeks

jimmyhaha

Platinum Member
Jan 7, 2001
2,851
0
0
Which of the following is NOT a valid IP address.

192.168.1.1

172.23.128.227

172.300.264.12

209.247.228.201

The correct answer is the 3rd one....
hmm.. I am puzzled.. Can some one explain it briefly...

btw, if any one can point me to any A+ discussion forum, greatly appreciated..
thanks

 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
32 bit number expressed in 4 octets of 8 bits in base 10 for each octet. 8 bits=256, but since we start 0 the highest any given octet could be is 255. 300 is more than that and so is 264.
 

bigrash

Lifer
Feb 20, 2001
17,653
28
91
the highest number that you can use is 256 which is FF in hexadecimal

edit: yup, you're right Damaged
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
Why isn't the 3rd one valid?

Each octect is composed of 8 bits (hence octet), and 8 bits can hold exactly 256 values (0-255 for unsigned integral values). If you need to figure out the maximum value a certain number of bits can hold, use this formula: 2 ^ num_bits - 1

so, 2 ^ 8 - 1 = 255
 

DaemoN

Senior member
Oct 14, 1999
757
0
0
Each xxx in xxx.xxx.xxx.xxx represents eight 1's and/or 0's in binary form. an ip address is just a 32bit address in decimal form.
example: 255.255.255.255 = 11111111.11111111.11111111.11111111
Since a 1 is the highest binary number you can't have anything over a .255 in an IP address
Hope this helps.

I won't even get into loop backs and IP classes.. ;) hehe
 

nEoTeChMaN

Diamond Member
Oct 9, 1999
3,994
0
0
Don't listen to them, they are making it hard than it is. ;)

Just memorize this:

Class A: 1.0.0.0 > 126.0.0.0 subnet = 255.0.0.0 (Class A loopback: 127.0.0.1)

Class B: 128.0.0.0 > 191.0.0.0 subnet = 255.255.0.0

Class C: 192.0.0.0 > 223.0.0.0 subnet = 255.255.255.0


See the numbers in bold, it is higher than 255.

172.300.264.12

See the first numbers to the left in bold, it belongs to Class B:

172.300.264.12 (between 128.0.0.0 and 191.0.0.0)


It is very easy as long as you memorize the concepts above. It helped me passed the Network+ a few days ago. It will help with CCNA too.