automating network configuration

Erik Norgaard norgaard at
Sun Jan 24 14:38:27 UTC 2010

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        

More information about the freebsd-questions mailing list