regarding IpAddressiing

In the sysinit.1 file, I use ifconfig en1 192.168.010.071, but after i boot,
ifconfig en1 reports me
back with 192.168.8.57. later on, In the sysinit.1 file, I use ifconfig en1
192.168.0.071, ifconfig en1
reports me back with 192.168.0.57, what’s happening here?

ran zhang <rzhang@vamcointernational.com> wrote:

In the sysinit.1 file, I use ifconfig en1 192.168.010.071, but after i boot,
ifconfig en1 reports me
back with 192.168.8.57. later on, In the sysinit.1 file, I use ifconfig en1
192.168.0.071, ifconfig en1
reports me back with 192.168.0.57, what’s happening here?

The leading “0” makes the number octal.

-xtang

“ran zhang” <rzhang@vamcointernational.com> wrote in message
news:aa8ujj$dol$1@inn.qnx.com

In the sysinit.1 file, I use ifconfig en1 192.168.010.071, but after i
boot,
ifconfig en1 reports me
back with 192.168.8.57. later on, In the sysinit.1 file, I use ifconfig
en1
192.168.0.071, ifconfig en1
reports me back with 192.168.0.57, what’s happening here?

I’d guess you have dhcp.client started somewhere?

Xiaodan Tang <xtang@qnx.com> wrote:

ran zhang <> rzhang@vamcointernational.com> > wrote:
In the sysinit.1 file, I use ifconfig en1 192.168.010.071, but after i boot,
ifconfig en1 reports me
back with 192.168.8.57. later on, In the sysinit.1 file, I use ifconfig en1
192.168.0.071, ifconfig en1
reports me back with 192.168.0.57, what’s happening here?

The leading “0” makes the number octal.

Yup.

010 = 8 decimal
071 = 7*8+1 = 57 decimal

If you had 192.168.0x10.71 and got back:

192.168.16.71

would you b surprised? Same behaviour.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.