From owner-freebsd-net@FreeBSD.ORG Wed Nov 10 14:38:22 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D41116A4CE for ; Wed, 10 Nov 2004 14:38:22 +0000 (GMT) Received: from mail.trippynames.com (mail.trippynames.com [38.113.223.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F58B43D2F for ; Wed, 10 Nov 2004 14:38:22 +0000 (GMT) (envelope-from sean@chittenden.org) Received: from localhost (localhost [127.0.0.1]) by mail.trippynames.com (Postfix) with ESMTP id AD879A6C8E; Wed, 10 Nov 2004 06:38:21 -0800 (PST) Received: from mail.trippynames.com ([127.0.0.1]) by localhost (rand.nxad.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 85263-08; Wed, 10 Nov 2004 06:38:20 -0800 (PST) Received: from [192.168.123.123] (unknown [38.113.223.82]) by mail.trippynames.com (Postfix) with ESMTP id 12D22A6C86; Wed, 10 Nov 2004 06:38:20 -0800 (PST) In-Reply-To: <20041110140554.GN98623@cicely12.cicely.de> References: <7070775A-331F-11D9-A34C-000A95C705DC@chittenden.org> <20041110140554.GN98623@cicely12.cicely.de> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <29838DF3-3326-11D9-A34C-000A95C705DC@chittenden.org> Content-Transfer-Encoding: 7bit From: Sean Chittenden Date: Wed, 10 Nov 2004 06:38:18 -0800 To: ticso@cicely.de X-Mailer: Apple Mail (2.619) cc: net@freebsd.org Subject: Re: Ability to live lock 5.3 via routing... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 14:38:22 -0000 >> Pretty easy for me to reproduce. The machine live locks so I can't >> get >> anything out of it, serial console or otherwise. :( Imagine a >> machine >> with two NICs, fxp0 and fxp1 (though it could be any two NICs). The >> following commands should lead to a lock: >> >> # Add the primary address on the external NIC >> ifconfig fxp0 192.168.1.2 netmask 255.255.255.0 media 100baseTX >> mediaopt full-duplex >> >> # Add the default gateway >> route add default 192.168.1.1 >> >> # Add a network to the internal interface >> ifconfig fxp1 10.10.10.1 netmask 255.255.255.0 media 100baseTX >> mediaopt >> full-duplex >> >> # On the external interface, on the same VLAN, there are two other >> networks. >> # Add aliases that way the machine can participate on those networks. >> ifconfig fxp0 alias 192.168.2.250 netmask 255.255.255.255 >> ifconfig fxp0 alias 192.168.3.250 netmask 255.255.255.255 > > You should use the correct netmask for the networks: > e.g.: > ifconfig fxp0 alias 192.168.2.250 netmask 255.255.255.0 > or: > ifconfig fxp0 alias 192.168.2.250/24 > /32 is only correct if you are adding an alias for a network you > already participate. *grabs pointy hat* You're right, I knew better. When using the correct netmasks to the interface aliases, everything works without a hitch. Forgot to change the netmasks when "evolving" this particular mess of subnets and fired off an inquiry. Still, setting /32's and designating routes that hang off of a host address works (and rightfully it should) until that third route is added, then everything goes apeshit. Regardless, thanks for the obvious fix... still not sure why it does this though. If someone doesn't pick it up in the next week, I'll file a PR so it doesn't get lost. -sc -- Sean Chittenden