[nos-bbs] JNOS on Debian Etch

Jay Nugent jjn at nuge.com
Thu Mar 5 20:10:51 EST 2009


Greetings Skip,

On Thu, 5 Mar 2009, George [Skip] VerDuin wrote:

> Recently I fell on to a couple details where two Linux distros act 
> differently.
> Fedora 10 is the OS for my station and my neighbors.
> Debian Etch is one of several distros I'm using for a project.
> 
> The first is seen on the establishment of tun bridge.  In the statement:
>     ...ifconfig tun0 192.168.1.32 pointtopoint 44.102.132.20 mtu 1500 up
> it matters if the address carries a preceding zero.  This means that
>   a) 44.102.132.20           is OK
>   b) 44.102.132.020        fails -- resulting in an IP of 44.102.132.39
> as seen later in both "ifconfig" and "route".  When it fails, the 
> session acts badly.

   It is not failing, it is doing exactly what you told it to do.  But it
is a common mistake, so don't feel bad.  Linux lets you enter dotted-quad
IP addresses in any of several numberical forms.  You *can* enter them in
decimal, octal, hex, even binary!

   .20 decimal is 20 decimal
   .020 hex is 32 decimal (you seemed to get 39 for some reason ????)
   

   Anyway, try entering an IP address in hex, like 0x9a434b63

ifconfig eth0:99 0x9a434b63

eth0:99   Link encap:Ethernet  HWaddr 00:10:dc:38:fa:d9
          inet addr:154.67.75.99  Bcast:154.67.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 Base address:0xe000

   9a434b63 hex == 154.67.75.99

   Fun stuff :)

   Enjoy!
      --- Jay WB8TKL

Train how you will Operate, and you will Operate how you were Trained.
+------------------------------------------------------------------------+
| Jay Nugent   jjn at nuge.com    (734)484-5105    (734)649-0850/Cell       |
|   Nugent Telecommunications  [www.nuge.com]                            |
|   Internet Consulting/Linux SysAdmin/Engineering & Design/ISP Reseller |
| ISP Monitoring [www.ispmonitor.org] ISP & Modem Performance Monitoring |
| Web-Pegasus    [www.webpegasus.com] Web Hosting/DNS Hosting/Shell Accts|
+------------------------------------------------------------------------+
  7:01pm  up 96 days,  3:43,  5 users,  load average: 1.34, 1.19, 1.18





More information about the nos-bbs mailing list