Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Apr 2002 00:00:17 -0700
From:      "Crist J. Clark" <cjc@FreeBSD.ORG>
To:        Robin Blanchard <Robin_Blanchard@gactr.uga.edu>
Cc:        stable@FreeBSD.ORG
Subject:   Re: multiple interfaces problem
Message-ID:  <20020423000017.E84809@blossom.cjclark.org>
In-Reply-To: <3CC46237.2B82743E@gactr.uga.edu>; from Robin_Blanchard@gactr.uga.edu on Mon, Apr 22, 2002 at 03:19:19PM -0400
References:  <3CC46237.2B82743E@gactr.uga.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020423000017.E84809>