From owner-freebsd-current Sun Jul 7 2:31:11 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3D7F37B400; Sun, 7 Jul 2002 02:31:04 -0700 (PDT) Received: from isrv.tric.tomsk.gov.ru (isrv.tric.tomsk.gov.ru [80.89.134.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FFE043E54; Sun, 7 Jul 2002 02:31:02 -0700 (PDT) (envelope-from mike@tric.tomsk.gov.ru) Received: from draco (bond3.dialup.sobes [192.168.1.230]) by isrv.tric.tomsk.gov.ru (8.12.3/8.12.3) with SMTP id g679UeIm087386; Sun, 7 Jul 2002 16:30:52 +0700 (NOVST) (envelope-from mike@tric.tomsk.gov.ru) Message-ID: <009901c22598$f48f3d80$e601a8c0@draco> From: "Michael O. Boev" To: Cc: Subject: ifconfig problem Date: Sun, 7 Jul 2002 16:30:35 +0700 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello! I've upgraded one of my boxes (4.5-RELEASE to FreeBSD 4.6-RELEASE) and encountered the following problem: After the upgrade it won't bring one of its two identical interfaces (ed0 and ed1) up at the boot-time. The internal one(ed1) was brought up cleanly, the external one(ed0) didn't get up. The only difference between them was that i was setting a specific MAC address on ed0. My rc.conf line for ed0 was like: ifconfig_ed0="inet 1.2.3.4 lladdr 01:02:03:04:05:06" And the ifconfig at the boot time said that it: "can't set link-level netmask or broadcast". Changing "lladdr" to "link" or "ether" didn't help, nor did interchanging the order of these addresses on the config line. Now I've found that I still can bring the interface up by executing two separate ifconfigs like: ifconfig ed0 lladdr 01:02:03:04:05:06 ifconfig ed0 inet 1.2.3.4 My current workaround is to set MAC in /etc/rc.early and the IP in rc.conf. My investigation revealed that this error message was introduced during the MFC of /src/sbin/ifconfig/ifconfig.c, version 1.51.2.16, 2002/04/03 by ru. I suspect that I've no real intention to set any link level netmask or broadcasts. Therefore, there must be an programming error somewhere in ifconfig.c, I even suppose it is in the setifaddr function, but I can't say it for sure, because I lack knowledge to understand the code in whole. I will make a PR soon, if there're no sudden objections. Best wishes, Mike Boev. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message