View previous topic :: View next topic |
Author |
Message |
Cr0t l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/42b615a33cca046d6e0c9.gif)
Joined: 27 Apr 2002 Posts: 945 Location: USA
|
Posted: Wed Nov 16, 2005 11:28 pm Post subject: funky.... and funny |
|
|
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 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
beatryder Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1864706406445b6f8183868.jpg)
Joined: 08 Apr 2005 Posts: 1138
|
Posted: Thu Nov 17, 2005 12:12 am Post subject: |
|
|
do some research into how the ip stack works. _________________ Dont make it idiot proof, make it work.
Neucode.org
<suppressed key> |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
widan Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/142533236243680bda6f27b.jpg)
Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Thu Nov 17, 2005 2:27 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Cr0t l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/42b615a33cca046d6e0c9.gif)
Joined: 27 Apr 2002 Posts: 945 Location: USA
|
Posted: Thu Nov 17, 2005 7:24 am Post subject: |
|
|
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 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
widan Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/142533236243680bda6f27b.jpg)
Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Thu Nov 17, 2005 10:25 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Cr0t l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/42b615a33cca046d6e0c9.gif)
Joined: 27 Apr 2002 Posts: 945 Location: USA
|
Posted: Fri Nov 18, 2005 1:36 am Post subject: |
|
|
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 ![Wink ;)](images/smiles/icon_wink.gif) _________________ cya |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|