Date: Mon, 29 Nov 2004 16:38:24 -0600 From: Paul Schmehl <pauls@utdallas.edu> To: Yannack <yannick_bre@yahoo.fr>, freebsd-questions@freebsd.org Subject: Re: Multiple NICs Message-ID: <633FEE8B3C1437C2102199D6@utd49554.utdallas.edu> In-Reply-To: <41AB94C9.7040901@yahoo.fr> References: <41AB94C9.7040901@yahoo.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
--On Monday, November 29, 2004 10:29:45 PM +0100 Yannack <yannick_bre@yahoo.fr> wrote: > > None of the above work (ie: they both make the default route go through > an0 - wifi - and i suspect this is because the wifi dhcp is slower to > answer than the ethernet one), I suspect you are right. Per the dhclient-script(8) man page: If more than one interface is being used, there's no obvious way to avoid clashes between server-supplied configuration parameters - for example, the stock dhclient-script rewrites /etc/resolv.conf. If more than one interface is being configured, /etc/resolv.conf will be repeatedly initialized to the values provided by one server, and then the other. Assuming the information provided by both servers is valid, this shouldn't cause any real problems, but it could be confusing. I haven't tried this, so I don't know if it will work, but you might try adding the "metric" keyword to your /etc/rc.conf file. "metric n Set the routing metric of the interface to n, default 0. The routing metric is used by the routing protocol (routed(8)). Higher metrics have the effect of making a route less favorable; metrics are counted as addition hops to the destination network or host." If you set the metric higher for the wireless interface, that *should* make the ethernet interface the preferred route *if* it's up. BTW, I don't see any "DHCP" keyword in man ifconfig(8). I'm not sure that entry will do anything in your /etc/rc.conf file. Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer The University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?633FEE8B3C1437C2102199D6>