LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 03-11-2003, 10:49 AM   #1
WeNdeL
Member
 
Registered: Oct 2002
Location: At my desk...
Distribution: RedHat, Fedora, Ubuntu
Posts: 344

Rep: Reputation: 30
Question network address ranges


I am having trrouble wrapping my head around this certain form of cidr notation...

with this info:

Network = 192.168.1.128 (last byte = 1000 0000)
Netmask = 255.255.255.192 (last byte = 1100 0000)
First address: 192.168.1.128 (including network)
Last address: 192.168.1.191 (including broadcast)

How can the address range be represented by:

192.168.1.128/26

I can't seem to make since of this in my head... I fully understand the concepts behind this network and all it entails but don't seem to follow this form of notation. What is it telling me?
 
Old 03-11-2003, 11:08 AM   #2
WeNdeL
Member
 
Registered: Oct 2002
Location: At my desk...
Distribution: RedHat, Fedora, Ubuntu
Posts: 344

Original Poster
Rep: Reputation: 30
ok...

looks to me like this notation is telling me that the hosts within this network range from:

192 168 1 128
1100 0000 1010 1000 0000 0001 1000 0000

to

192 168 1 191
1100 0000 1010 1000 0000 0001 1011 1111

all three together:

1100 0000 1010 1000 0000 0001 1000 0000
1100 0000 1010 1000 0000 0001 1011 1111
1111 1111 1111 1111 1111 1111 1100 0000

yields the address range resulting in a bitmask of 26 bits...



Weeeeeeeeeeeeeeeeeee!!!!

edit: which one could gather from the netmask...

Last edited by WeNdeL; 03-11-2003 at 11:11 AM.
 
Old 03-11-2003, 11:33 AM   #3
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: SuSe 9.2 & 10, Gentoo, knoppix, DSL
Posts: 769

Rep: Reputation: 101Reputation: 101
Correct. The network is derived by from the IP address by ANDing it with the subnet mask -

192.168.1.128
AND
255.255.255.192 (/26)

or

11000000 10101000 00000001 10000000
AND
11111111 11111111 11111111 11000000
=
11000000 10101000 00000001 10000000 or 192.168.1.128



Do the same with 192.168.1.191 -

11000000 10101000 00000001 10111111
AND
11111111 11111111 11111111 11000000
=
11000000 10101000 00000001 10000000 or 192.168.1.128

See, same network! Try the same thing with 192.168.1.192 and you'll see that the resultant network is different.
 
Old 03-11-2003, 11:41 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,835

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
wow, that makes sense.... i've always been ropey with that... so i just always pretended it didn't exist!
 
Old 03-12-2003, 10:56 AM   #5
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: SuSe 9.2 & 10, Gentoo, knoppix, DSL
Posts: 769

Rep: Reputation: 101Reputation: 101
Hey, a million ostrich's can't be wrong!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4 I get IP address (on any network) but I can't access to outside the network bodhisattva Fedora 10 02-07-2006 06:58 AM
network without ip address bruse Linux - Networking 3 06-09-2005 04:56 AM
Blocking IP Address ranges in dhcpd.conf pmcdaid Linux - Networking 4 06-09-2004 09:18 AM
What is Gateway address and what is Network address? abefroman Linux - Networking 1 03-17-2004 08:25 PM
question about network address and broadcast address yuzuohong Linux - Networking 1 09-18-2002 11:47 AM


All times are GMT -5. The time now is 08:54 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration