Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick CIDR Question

Status
Not open for further replies.

Huminie

ISP
Dec 26, 2001
3
US
I have a quick CIDR notation question for you folks.

If I have a network stated as: x.x.35.0/23 (x.x.35.0 mask 255.255.254.0)

Does this mean x.x.35.0 through x.x.36.255

or does this mean x.x.34.0 through x.x.35.255

Sorry if this is too basic of a question. I need to make sure I am documenting something correctly or not.

TIA!
 
192.1.34.1 to 192.1.35.254

cheers, netwho


__________________________________
DOS -> Windows -> Linux -> FreeBSD
**** The evolution of a geek ****
 
I meen x.x.34.1 to x.x.34.1 to correct ;-)

__________________________________
DOS -> Windows -> Linux -> FreeBSD
**** The evolution of a geek ****
 
I thought the first one was correct, netwho. The second one only contains one ip address.
Another thing:
If I calculated right there's no network address like x.x.35.0 for a /23 network.
The /23 network that starts with x.x.34.1 and ends with x.x.35.254 has the network address x.x.34.0 mask 255.255.254.0
 
It's been a while since a bitwise demonstration was posted, so....

Green indicates the network identifying part, purple the host part.
Code:
IP: [COLOR=green]xxxxxxxx.xxxxxxxx.0010001[/color][COLOR=purple]0.00000000[/color] (x.x.34.0)
SN: [COLOR=green]11111111.11111111.1111111[/color][COLOR=purple]0.00000000[/color] (netmask /23)

Reserved addresses:
IP: [COLOR=green]xxxxxxxx.xxxxxxxx.0010001[/color][COLOR=purple]0.00000000[/color] (x.x.34.0)
IP: [COLOR=green]xxxxxxxx.xxxxxxxx.0010001[/color][COLOR=purple]1.11111111[/color] (x.x.35.255)
The 2 reserved addresses are those where the host number is all 0s or all 1s.

There's a great tutorial at
<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top