Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Sep 2001 19:11:15 -0400
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        "John Daniel" <john@cell-works.com>
Cc:        <questions@freebsd.org>
Subject:   Re: can't change IP
Message-ID:  <004001c14872$e0c7b2e0$1200a8c0@gsicomp.on.ca>
References:  <Pine.BSF.4.05.10109281901510.1223-100000@cell-works.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Subject: Re: can't change IP


> here is some additional information. I did a reinstall and changed which
> card is the one i configure. It is now a linksys card de0. The error is
> the same  no matter which card I use.
>
> here are my dmesg and rc.conf
>
> I can't figure out why the first octet is 052. in dmesg.

[ snip ]

> de0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> inet 52.220.255.140 netmask 0xfffff000 broadcast 52.220.255.255
> inet6 fe80::240:5ff:fe36:39c7%de0 prefixlen 64 tentative scopeid 0x2
> ether 00:40:05:36:39:c7
> media: Ethernet autoselect (10baseT/UTP)
> status: active

[ snip ]

> ifconfig_de0="inet 064.220.255.140  netmask 255.255.240.000"

Here's your problem.  When you specify a number with a leading 0, the system
treats it as an octal number.  64 decimal = 52 octal.  If you remove the
leading 0, the computer should treat it as 64.

In addition, there's no reason to pad all of the components of your IP
addresses to 3 digits (I see 064 and 000 above.  Use 64 and 0 instead.)

--
Matt Emmerton


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004001c14872$e0c7b2e0$1200a8c0>