LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-04-2006, 09:53 PM   #1
carlosruiz
Member
 
Registered: Jul 2003
Location: Japan
Distribution: Mandrake
Posts: 53

Rep: Reputation: 15
Valid subnets.


Hello guys, I am currently getting ready for the ccna test, the course I am taking is suggesting that the ip address 192.168.55.1/30 is a valid host ip, I believe it is not since the first usable host address with that netmask will be 192.168.55.5 I am correct?

thanks in advance.
 
Old 03-04-2006, 11:20 PM   #2
blinkey
Member
 
Registered: Mar 2006
Posts: 30

Rep: Reputation: 15
this is a valid address and netmask. not sure why you think the 1st address would be nn.55.5

http://grox.net/utils/whatmask/

------------------------------------------------
TCP/IP NETWORK INFORMATION
------------------------------------------------
IP Entered = ..................: 192.168.55.1
CIDR = ........................: /30
Netmask = .....................: 255.255.255.252
Wildcard Bits = ...............: 0.0.0.3
------------------------------------------------
Network Address = .............: 192.168.55.0
Broadcast Address = ...........: 192.168.55.3
Usable IP Addresses = .........: 2
First Usable IP Address = .....: 192.168.55.1
Last Usable IP Address = ......: 192.168.55.2
 
Old 03-05-2006, 12:47 AM   #3
carlosruiz
Member
 
Registered: Jul 2003
Location: Japan
Distribution: Mandrake
Posts: 53

Original Poster
Rep: Reputation: 15
Hello Blinkey, thanks for your reply, here is the logic of my post:
in binary the network address and the netmask:

11000000.10101000.00110111.00000000 -> 192.168.55.0
11111111.11111111.11111111.11111100 -> 255.255.255.252
-----------------------------------

As you can see the the first network id bit is in the 3rd position from right to left, that bit has a value of 4, since we can't use all 1 in an address neither all 0 that bit has to be on for the first valid network id that will give us an address of 192.168.55.4 for the first available network, in binary:
11000000.10101000.00110111.00000100 now the first bit for the host has to be on for the first valid host address that will give us a first valid host of 192.168.55.5 in binary:
11000000.10101000.00110111.00000101
so in the case of 192.168.55.1 11000000.10101000.00110111.00000001
will require all the network bits in that octet to be 0 which is not possible, now the problem is that the source of the course I am taking seems to be a source you can thrust, that is why I have doubts, any help will be appreciated.

Last edited by carlosruiz; 03-05-2006 at 12:56 AM.
 
Old 03-05-2006, 01:12 AM   #4
blinkey
Member
 
Registered: Mar 2006
Posts: 30

Rep: Reputation: 15
Does the all zero rule apply to an octet, or the whole 32 bits? I think it is all 32 bits. Actually, it should apply to both sides of the net mask. (Network id and host id)

I thought the octet was purely used to make the address more "human" readable. Computers don't need such help.

If it is an Octet, then 192.168.0.n with a netmask of 255.255.255.0 would not be vaild. Yet this must be the most widely used address anywhere.
 
Old 03-05-2006, 01:21 AM   #5
carlosruiz
Member
 
Registered: Jul 2003
Location: Japan
Distribution: Mandrake
Posts: 53

Original Poster
Rep: Reputation: 15
I also thought about the 192.168.0.n but maybe there is not a problem since there no subnetting involved.
That is what I am not sure about, check this up:
http://www.networkcert.net/network/subnetting.htm they call it "delta"

Last edited by carlosruiz; 03-05-2006 at 01:24 AM.
 
Old 03-05-2006, 04:10 AM   #6
blinkey
Member
 
Registered: Mar 2006
Posts: 30

Rep: Reputation: 15
Subnetting is always involved.

The ip address is a binary number, that is 32 bits long. Don't be fooled by the human readable form where we see 4 numbers that are equivilant to a binary octet separated by dots.

The ip address in binary form has no dots.

I do not know why the site you pointed at has ignored the 131.107.0.0 subnet as this is a valid network id. They have also ignored subnet 131.107.224.0. But they only needed 6 subnets, which they already had.

------------------------------------------------
TCP/IP NETWORK INFORMATION
------------------------------------------------
IP Entered = ..................: 131.107.0.0
CIDR = ........................: /19
Netmask = .....................: 255.255.224.0
Wildcard Bits = ...............: 0.0.31.255
------------------------------------------------
Network Address = .............: 131.107.0.0
Broadcast Address = ...........: 131.107.31.255
Usable IP Addresses = .........: 8190
First Usable IP Address = .....: 131.107.0.1
Last Usable IP Address = ......: 131.107.31.254
 
Old 03-05-2006, 04:29 AM   #7
blinkey
Member
 
Registered: Mar 2006
Posts: 30

Rep: Reputation: 15
One more comment. I have not done any Cisco certification, but I have done some MS ones. When I was studying I looked at lots of practice tests and aids on the net. Some were really good. But many were rubbish. They explained things poorly and some were just plain wrong.

I would recommend that you buy at least one "big fat book" from a reputable publisher.

Do lots of reading and practice tests.

Good luck.

PS: If my logic on the ip addressing above is wrong, please update this thread.
 
Old 03-05-2006, 04:50 AM   #8
carlosruiz
Member
 
Registered: Jul 2003
Location: Japan
Distribution: Mandrake
Posts: 53

Original Poster
Rep: Reputation: 15
Hello Blinkey, sorry what I meaned by subnetting was by not using default masks, the thing is I learned how to subnet on a cbtnuggets course and some other material, that is why when I saw that network address being used in some other material it triggered my doubts, then after posting I found the link that I posted here, so far I think it is necesary to substract the 000000 and the 111111 from the pool of networks ids, since the technique I learned to subnet accounts for it and that I learned from a reputable publisher, but you know how this is, and I am not 100% sure so I was hoping someone can help. cheers

Last edited by carlosruiz; 03-05-2006 at 04:58 AM.
 
Old 03-05-2006, 05:07 AM   #9
carlosruiz
Member
 
Registered: Jul 2003
Location: Japan
Distribution: Mandrake
Posts: 53

Original Poster
Rep: Reputation: 15
Finally, I got it here is a note on a cisco site.

This is the interesting part:

Note: In the past, there were limitations to the use of a subnet 0 (all subnet bits are set to zero) and all ones subnet (all subnet bits set to one). Some devices would not allow the use of these subnets. Cisco Systems devices will allow the use of these subnets when the ip subnet zero command is configured.

Blinkey Thanks for your help.

Last edited by carlosruiz; 03-05-2006 at 05:09 AM.
 
Old 03-06-2006, 04:09 AM   #10
blinkey
Member
 
Registered: Mar 2006
Posts: 30

Rep: Reputation: 15
Hey Carlosruiz, Have a read of the first few pages of this RFC.

http://rfc.net/rfc1700.html

Like the Cisco document, shows your original thinking was right, but dated.
 
Old 03-06-2006, 11:18 AM   #11
carlosruiz
Member
 
Registered: Jul 2003
Location: Japan
Distribution: Mandrake
Posts: 53

Original Poster
Rep: Reputation: 15
Hello Blinkey, thanks for the link, no doubt I got a pretty outdated course, but is good to know in case I find one of those old devices out there.

Thanks a lot for your valuable help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
subnets and subnetting johnMG Linux - Networking 25 12-20-2005 10:05 PM
help on subnets HappyGilmore Linux - Networking 12 07-07-2005 09:33 AM
two subnets at home tcma Linux - Networking 7 01-19-2005 04:06 PM
Connect two subnets dzho002 Linux - Networking 5 12-02-2003 08:50 PM
Routing between different subnets ... suvajit Linux - Networking 1 05-15-2003 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration