From owner-freebsd-questions Fri Sep 28 16:14:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tomts12-srv.bellnexxia.net (tomts12.bellnexxia.net [209.226.175.56]) by hub.freebsd.org (Postfix) with ESMTP id 1BE6137B40C for ; Fri, 28 Sep 2001 16:14:14 -0700 (PDT) Received: from xena.gsicomp.on.ca ([65.93.38.74]) by tomts12-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010928231413.WIIJ2526.tomts12-srv.bellnexxia.net@xena.gsicomp.on.ca>; Fri, 28 Sep 2001 19:14:13 -0400 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.11.1) with SMTP id f8SN7Ru95376; Fri, 28 Sep 2001 19:07:27 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <004001c14872$e0c7b2e0$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "John Daniel" Cc: References: Subject: Re: can't change IP Date: Fri, 28 Sep 2001 19:11:15 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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