Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
funky.... and funny
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 945
Location: USA

PostPosted: Wed Nov 16, 2005 11:28 pm    Post subject: funky.... and funny Reply with quote

Code:
15:27:20^root@lanrouter:~ > mount -t nfs 192.168.03:/home/distfiles /usr/portage/distfiles/
15:27:21^root@lanrouter:~ > df
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/md/0     ext3    4.7G  2.0G  2.5G  45% /
udev         tmpfs     46M  2.4M   44M   6% /dev
none         tmpfs     46M     0   46M   0% /dev/shm
192.168.03:/home/distfiles
               nfs     68G   39G   30G  58% /usr/portage/distfiles


192.168.03? wtf? I have no idea why this works, but I can reach ANY machine without the last dot inside the network.

Any ideas?
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
beatryder
Veteran
Veteran


Joined: 08 Apr 2005
Posts: 1138

PostPosted: Thu Nov 17, 2005 12:12 am    Post subject: Reply with quote

do some research into how the ip stack works.
_________________
Dont make it idiot proof, make it work.
Neucode.org
<suppressed key>
Back to top
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Thu Nov 17, 2005 2:27 am    Post subject: Reply with quote

From glibc's function inet_aton() (used to convert dotted-quad IP addresses to their binary equivalent):
Code:
/*
 * Internet format:
 *   a.b.c.d
 *   a.b.c   (with c treated as 16 bits)
 *   a.b     (with b treated as 24 bits)
 */

There is another format that is not in the comment: a single number (interpreted as a 32-bit "binary" IP address, sometimes called a "long IP address").

For example, all those point to Google (64.233.183.99):
Back to top
View user's profile Send private message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 945
Location: USA

PostPosted: Thu Nov 17, 2005 7:24 am    Post subject: Reply with quote

widan wrote:
From glibc's function inet_aton() (used to convert dotted-quad IP addresses to their binary equivalent):
Code:
/*
 * Internet format:
 *   a.b.c.d
 *   a.b.c   (with c treated as 16 bits)
 *   a.b     (with b treated as 24 bits)
 */

There is another format that is not in the comment: a single number (interpreted as a 32-bit "binary" IP address, sometimes called a "long IP address").

For example, all those point to Google (64.233.183.99):

Tank you, but one STUPID little question. Can you give me the math for the conversation? For each one of the examples?
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Thu Nov 17, 2005 10:25 am    Post subject: Reply with quote

Cr0t wrote:
Thank you, but one STUPID little question. Can you give me the math for the conversation? For each one of the examples?

Back to top
View user's profile Send private message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 945
Location: USA

PostPosted: Fri Nov 18, 2005 1:36 am    Post subject: Reply with quote

widan wrote:
Cr0t wrote:
Thank you, but one STUPID little question. Can you give me the math for the conversation? For each one of the examples?


Makes sense now ;)
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum