From owner-freebsd-questions Fri Feb 21 9:19:59 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6812D37B401 for ; Fri, 21 Feb 2003 09:19:57 -0800 (PST) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-13.pit.adelphia.net [24.53.161.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5017D43F3F for ; Fri, 21 Feb 2003 09:19:56 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) by pa-plum1b-166.pit.adelphia.net (8.12.3/8.12.3) with ESMTP id h1LHJsrX007780; Fri, 21 Feb 2003 12:19:55 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E565FBA.9020308@potentialtech.com> Date: Fri, 21 Feb 2003 12:19:54 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021127 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joseph Noonan Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Bizarre Networking Problem References: <27.39e39215.2b869c70@aol.com> <20030220155544.V84973@pcjfn.msc.com> <3E5570B3.2090201@potentialtech.com> <20030221105259.Y87091@pcjfn.msc.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Joseph Noonan wrote: > On Thu, 20 Feb 2003 at 7:20pm Bill Moran wrote: > >>Perhaps some output form 'netstat -rn' and 'ifconfig' might >>provoke some more useful answers. > > Well the problem is solved, but I am not happy about the solution > as it makes absolutely no sense to me. > > xl0: flags=8943 mtu 1500 > options=3 > inet 192.246.38.10 netmask 0xffffff00 broadcast 255.255.255.0 > inet 208.23.240.10 netmask 0xffffff00 broadcast 208.23.240.255 > ether 00:04:75:b0:24:12 > media: Ethernet autoselect (100baseTX ) > status: active > > The above was the ifconfig when I had the problem. Notice the > broadcast addresses. The commands that brought up the interface > at boot are: > > /sbin/ifconfig xl0 192.246.38.10 netmask 255.255.255.0 > /sbin/ifconfig xl0 alias 208.23.240.10 netmask 255.255.255.0 > > (note that the netmask really is not required as those IP's are > from traditional class C, but I like to always be specific so I > don't forget one when I'm working in 'A' or 'B' space.) > > So those commands give two different kinds of broadcast addresses > and to my way of thinking, the second one (on the 208...) is > correct. But if I alias the interface like so: > > ifconfig inet 208.23.240.10 netmask 0xffffff00 broadcast 255.255.255.0 That doesn't look right. The broadcast address should be 208.23.240.255 for that IP and 192.246.38.255 for the other one. Can you try these broadcast addys and see if the problem is fixed there as well? > The sluggishness on the 208 net goes away. I don't understand it, > but it works. I don't like stuff this, it creeps me out. Can't argue with you. I don't see how what you did would fix anything. However, I'm not surprised that ifconfig doesn't guess the right action all the time. I wouldn't get upset if you have to specify the broadcast addy to be sure it's right. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message