From owner-freebsd-net Fri Oct 5 10:59:40 2001 Delivered-To: freebsd-net@freebsd.org Received: from cobalt.hytekblue.com (adsl-208-191-100-26.dsl.stlsmo.swbell.net [208.191.100.26]) by hub.freebsd.org (Postfix) with ESMTP id 4616937B403 for ; Fri, 5 Oct 2001 10:59:37 -0700 (PDT) Received: from MatthewThurman ([128.242.166.117]) by cobalt.hytekblue.com (8.9.3/8.9.3) with SMTP id MAA00660 for ; Fri, 5 Oct 2001 12:59:35 -0500 (CDT) (envelope-from mgt@hytekblue.com) Message-ID: <005601c14dc8$1c19dee0$8f64a8c0@jimsfw.com> Reply-To: "Matthew" From: "Matthew" To: Subject: ifconfig quirks Date: Fri, 5 Oct 2001 13:03:39 -0500 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 Disposition-Notification-To: "Matthew" X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I just wanted to point out something strange I ran into on my test network with release 4.4. if I use "ifconfig xl1 inet 10.0.0.007 netmask 255.255.255.0" I get upon looking at the adapter inet 10.0.0.7 netmask 0xffffff00 broadcast 10.0.0.255 however when I use "ifconfig xl1 inet 10.0.0.034 netmask 255.255.255.0" I get inet 10.0.0.28 netmask 0xffffff00 broadcast 10.0.0.255 and yet again if I use " ifconfig xl1 inet 10.0.0.52 netmask 255.255.255.0 " I get inet 10.0.0.42 netmask 0xffffff00 broadcast 10.0.0.255 and a third time I use "ifconfig xl1 inet 10.0.0.61 netmask 255.255.255.0" and I get inet 10.0.0.49 netmask 0xffffff00 broadcast 10.0.0.255 I have done this on three different freebsd 4.4 release machines with the exact same results on each. if I do not use the leading zero's in the last octet it works correctly. However I have at least three nics in each machine with multiple ip's on most interfaces to simulate my existing network so it would be nice to be able to use them as place holders to make the files look a bit cleaner. Cheers, Matthew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message