ISagalaev
January 31st, 2010, 08:08 AM
Hello!
I'm setting up a headless home server. It has to network cards: Ethernet and WiFi. Both are working fine by themselves. What I want is to have them working on a single IP address depending on which one is connected:
- most of the time the server is not connected to a cable and should communicate over WiFi
- whenever the cable is connected it should prefer Ethernet to WiFi
Basically I want something similar to what NetworkManager does for desktop Ubuntu.
Right now I'm just doing "ifup wlan0; ifdown eth0" remotely but it's kind of boring, doesn't detect the right connection on boot and prone to errors: if I do ifdown before ifup I'm loosing connection and have to get up my *** off my chair and go to the server to reboot it :-)
I'm setting up a headless home server. It has to network cards: Ethernet and WiFi. Both are working fine by themselves. What I want is to have them working on a single IP address depending on which one is connected:
- most of the time the server is not connected to a cable and should communicate over WiFi
- whenever the cable is connected it should prefer Ethernet to WiFi
Basically I want something similar to what NetworkManager does for desktop Ubuntu.
Right now I'm just doing "ifup wlan0; ifdown eth0" remotely but it's kind of boring, doesn't detect the right connection on boot and prone to errors: if I do ifdown before ifup I'm loosing connection and have to get up my *** off my chair and go to the server to reboot it :-)