Date: Sun, 24 Jan 2010 15:38:25 +0100 From: Erik Norgaard <norgaard@locolomo.org> To: Romain Garbage <romain.garbage@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: automating network configuration Message-ID: <4B5C5B61.2020306@locolomo.org> In-Reply-To: <7ab0356e1001240604v22d59edfgcb3761b677aea2f3@mail.gmail.com> References: <7ab0356e1001240604v22d59edfgcb3761b677aea2f3@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Romain Garbage wrote: > Hello, > > I am looking for a way to automate the configuration of my network > depending on its "topology" (don't know if it's the good word) : I > would like to check the wired interface to see if a cable is plugged > in (by looking at carrier status), if so, bring up the wired > interface, if no bring up the wireless interface. > Is there a way to do this? > > I was wondering if it is possible to do so by scripting rc.conf? Normally you really don't have to think, just enable both, assuming you use dhcp. Wired configuration with dhcp will fail if there is no cable, wireless will fail if there is no signal. You usually won't experience problems even if both are configured. BR, Erik -- Erik Nørgaard Ph: +34.666334818/+34.915211157 http://www.locolomo.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B5C5B61.2020306>