Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Need to connect to specific wifi point as soon as it is in range. If it is out of range, then system must stay connected LAN. In case, any wifi-point is in range, there must be auto-switch.

share|improve this question
Look like "wicd" is close to what I want. But not the perfect, and I am looking for command line options. – SHW May 8 '12 at 6:21

Does the LAN and Wifi AP belong to the same network? If yes, then you can create a bonding device between LAN and Wifi. Bonding is done usually on servers to connect them to different network switches for redundancy and/or performance and kernel chooses which link to use. But it can be used also for your purpose (in fact, one of my colleagues uses it all the time at home - he works on Wifi, but when he want fast download speed, he just plugs in a cable and the download continues over LAN without any interruptions).

Here is a Bonding HOWTO: bonding.txt

share|improve this answer
thanks to share about Bonding. But mine both interfaces do not share the same network. – SHW May 28 '12 at 11:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.