LinuxQuestions.org
Help answer threads with 0 replies.
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 10-22-2004, 07:14 AM   #1
xedios
Member
 
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70

Rep: Reputation: 15
Dumb question


can you hellp me out from this ..


I realy don't know what this means if you specify
network addres like this 192.168.1.0/16
or sopmething like this

I realy don't know.

Thanx
 
Old 10-22-2004, 07:22 AM   #2
Black_iCE_mdk
Member
 
Registered: May 2004
Posts: 43

Rep: Reputation: 15
192.168.1.0 = ip of machine on ....

(192.168.1.0)&(255.255.0.0)= network 192.168.x.x

so basically the ip address is a 32 bit number and the subnet mask can be a 32 bit number. By preforming an AND operation you determin the network range, or atleast the range that the packet can travel from the work station.

noticed that i said 255.255.0.0 that is the same in binary as 11111111 11111111 00000000 00000000 b which can be written in shorthand as 16 consequative ones... ie /16.
 
Old 10-22-2004, 07:25 AM   #3
xedios
Member
 
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70

Original Poster
Rep: Reputation: 15
If i get it corectly


192.168.1.0/16
it is teh sam like

192.168.1.0 thru 192.168.254.254 ?

I am alitle bit confused abaut this

what if in the en you hava an 18 ?? or semething else

I konw it its a very doumb question.
 
Old 10-22-2004, 07:43 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
not a dumb question, but a dumb title if i may say so. please try to use more informative titels in the future.

possibly the easiest way to get to grips with this mask notation is to draw both addresses out in binary, and basically add them together. when you're dealing in a decimal base it's hard to understand where the seemingly arbitrary subnet blocks come from.
 
Old 10-22-2004, 07:49 AM   #5
xedios
Member
 
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70

Original Poster
Rep: Reputation: 15
Ok

I am still stuck .

can you provide me whit som tust explanations or web pages ..
whitch are pointed in this direction

thanx for the replay
 
Old 10-22-2004, 07:51 AM   #6
Black_iCE_mdk
Member
 
Registered: May 2004
Posts: 43

Rep: Reputation: 15
Quote:
192.168.1.0 thru 192.168.254.254 ?
Ok, another analigy.....
right; lets say my name is John Smith and your name is Mike Smith. So in computer terms is would be like saying

"John Smith"=192.168.10.1/255.255.255.0 and "Mike Smith"=192.168.10.2/255.255.255.0

and when we talk i say "Mike - have you gone to the beach" and you reply "Yes John, you should have seen those chick there." Notice that we don't say Smith to each other. This is silent as we both are Smiths we don't need to know the last name.

Ok now Mike Lubba walks into the room { and in computer terms he could be 192.168.20.5/255.255.0.0 }
and now he says "John how are you". Well now if i say "I am fine Mike" then who am i saying this to ? Smith or Luke? So i'll say "I am fine Mike Lubba". And as you notice saying last names the whole time gets tiring - and writing them even whorse so i'll just say Mike S and Mike L.

So we write 192.168.1.0/16 as a shorthand for 255.255.0.0 as i said Mike L

Last edited by Black_iCE_mdk; 10-22-2004 at 07:57 AM.
 
Old 10-22-2004, 08:00 AM   #7
xedios
Member
 
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70

Original Poster
Rep: Reputation: 15
Ok nice explanation

I made agen a mistake I asket the wrong thing. I met

How I calculate the /numbers

14 = ??
16 = 255.255.0.0
18 = ??

Here sits my problem.

I understend the subnet mask, I only don't understand the ending code 192.168.0.1/ xx ( colud be 14 16 18 or sonmethin else )

if you have some mor will to ansver me please do

Thanx
 
Old 10-22-2004, 08:07 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
14 = 11111111 11111100 0000000 00000000 = 255.(255-4).0.0 = 255.251.0.0

18 = 11111111 11111111 1100000 00000000 = 255.255.(128+64).0 = 255.255.192.0

unless my math is wrong.... which happens. a lot.
 
Old 10-22-2004, 08:11 AM   #9
xedios
Member
 
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70

Original Poster
Rep: Reputation: 15
OK

A litle mor clear , But I still don't know haw You did the calculation..

no mether

..

if you have time and a lot of will, then you can explain to me

Thanx
 
Old 10-22-2004, 08:12 AM   #10
Black_iCE_mdk
Member
 
Registered: May 2004
Posts: 43

Rep: Reputation: 15
PC's in general (IBM compatile machines) have come to know standards so that a form of consistency can exist on many systems.
One of these is the number of binary digits will make up an significant peace of information. The number was decided to be 8 bits of length. so now we can do this the old way to illustrate this.

Decimal:Binary
0 00000000
1 00000001
2 00000010
3 00000011
4 00000100
.... .......
[skip a few]
.... .......
255 11111111

and this is where we have the range of 0 to 255 occuring. In IP addresses they will ALWAYS be multipals of 8 ie /8 /16 /24 /32 [stop], and they will only be those numbers. so look @ it again:

"underlined to show what will be taken"

192.168.1.0/8
___
192.168.1.0/16
______
192.168.1.0/24
________
192.168.1.0/32
__________

and that is it.

Last edited by Black_iCE_mdk; 10-22-2004 at 08:16 AM.
 
Old 10-22-2004, 08:23 AM   #11
xedios
Member
 
Registered: May 2004
Location: SLO
Distribution: RH9
Posts: 70

Original Poster
Rep: Reputation: 15
Thanx

Veeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeery much !!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
dumb question xedios Linux - Software 6 08-31-2004 02:24 PM
dumb a*s question Jetta-GT- Linux - Newbie 3 01-08-2004 05:58 AM
REALLY dumb question christer Linux - Newbie 11 10-05-2003 10:43 PM
Dumb question Thetargos Linux - Software 3 05-06-2003 07:31 PM
Dumb Question!!!! cirkut5732 Linux - Newbie 3 04-16-2003 12:39 PM

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

All times are GMT -5. The time now is 04:42 AM.

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