Michael,

There is a convention in Linux that if you specify a leading zero on a
numeric value that it means it's in octal.  Octal 35 = decimal 29.

Mark Post

-----Original Message-----
From: Coffin Michael C [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 1:15 PM
To: [EMAIL PROTECTED]
Subject: IP Addressing Oddity


Hi Folks,

I recently had to move my VM TCPIP stack for Linux, and my Linux/390 guests
(Redhat and SuSE) to a different subnet.  The third octet was changing, so
(for example) 152.225.112.249 would become 152.225.35.249.  I made the
changes to both VM's TCPIP and my Linux/390 guests in advance of the change
then fired everything up.

I had coded the third octet as .035. instead of .35.  VM's TCPIP took the
152.225.035.249 without any difficulty.  But all of my Linux/390 guests
CHANGED the .035. to .29 - so this same address on a Linux/390 guest would
be 152.225.29.249.  I was totally perplexed, and after hours of scratching
my head I changed one of these to just .35. and low and behold it worked!

Note:  I made the changes on the SuSE machines in rc.config then ran
SuSEconfig, and on the RedHat I made them in ifcfg-ctc0, gateways and I
think network.

So my question is why did the Linux/390 guests interpret .035. to mean .29.,
and if that is a "normal" thing - why didn't VM's TCPIP do the same thing?

Any advice or opinions are most welcome.  :)

Michael Coffin, VM Systems Programmer
Internal Revenue Service - Room 6030
1111 Constitution Avenue, N.W.
Washington, D.C.  20224
Voice: (202) 927-4188   FAX:  (202) 622-6726
[EMAIL PROTECTED]

Reply via email to