From owner-freebsd-stable Tue Apr 23 0: 0:27 2002 Delivered-To: freebsd-stable@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id 0655737B419 for ; Tue, 23 Apr 2002 00:00:19 -0700 (PDT) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020423070018.MYVO12144.rwcrmhc53.attbi.com@blossom.cjclark.org>; Tue, 23 Apr 2002 07:00:18 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g3N70HJ85261; Tue, 23 Apr 2002 00:00:17 -0700 (PDT) (envelope-from cjc) Date: Tue, 23 Apr 2002 00:00:17 -0700 From: "Crist J. Clark" To: Robin Blanchard Cc: stable@FreeBSD.ORG Subject: Re: multiple interfaces problem Message-ID: <20020423000017.E84809@blossom.cjclark.org> References: <3CC46237.2B82743E@gactr.uga.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3CC46237.2B82743E@gactr.uga.edu>; from Robin_Blanchard@gactr.uga.edu on Mon, Apr 22, 2002 at 03:19:19PM -0400 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Apr 22, 2002 at 03:19:19PM -0400, Robin Blanchard wrote: > Sometime within the last month, ifconfig has changed so that the > following rc.conf entries do not properly initialise the second (in this > case fxp0) interface. > > network_interfaces="auto" > ifconfig_ti0="inet 10.10.10.221 netmask 255.255.0.0" > ifconfig_fxp0="inet 10.10.10.222 netmask 255.255.0.0" > defaultrouter="10.10.0.1" > hostname="test.servers.nat" > > there is still a sysctl knob > # sysctl -a |grep arp > net.link.ether.inet.log_arp_wrong_iface: 0 > > that deals with multiple interfaces on the same net, so seems that this > behaviour should be allowed, whether frowned upon or not. I ran into > this this morning after brining up this test box and installing a new > world onto it (it had been sleeping for about a month when it had a > previous 4.5 STABLE world). This configuration is broken for the same reason putting two aliases on the same interface on the same network is. When the system goes to assign the route for the second ifconfig(8), it already exists and it fails. It has nothing to do with net.link.ether.inet.log_arp_wrong_iface sysctl(8). This, ifconfig_ti0="inet 10.10.10.221 netmask 255.255.0.0" ifconfig_fxp0="inet 10.10.10.222 netmask 255.255.255.255" Will work fine for you and is effectively what your system was doing before it started flagging the configuration error. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message