You are not logged in.
ok, i have searched, asked and tried.
i have this:
ethernet-dhcp
Description='A basic dhcp ethernet connection'
Interface=eth0
Connection=ethernet
IP=dhcp
## for DHCPv6
#IP6=dhcp
## for IPv6 autoconfiguration
#IP6=statelessand wireless-wpa-static
Description='A simple WPA encrypted wireless connection using a static IP'
Interface=wlan0
Connection=wireless
Security=wpa-configsection
ESSID='internet'
Key='91089108'
IP=static
Address='192.168.2.23/24'
Gateway='192.168.2.1'
DNS=('192.168.2.1')
# Uncomment this if your ssid is hidden
#Hidden=yesi would like to have eth when my cable is connected, and wlan when there is no cable connected.
can someone please tell me how to do that, without linking to the wiki or anywhere. i saw netctl, ifplugd, bonding, etc.
just tell me what to write in the terminal. should i edit a filef? tell me what to write in that file.
thank you much.
Last edited by pvinis (2013-07-09 22:50:30)
Offline
I actually don't know that this is possible with netctl. I think you might have to use a more full featured network management solution. Or patch things yourself to be able to handle this. The nice thing about netctl is that is is really just a set of convenient scripts, so changing things is super easy.
Offline
II think you might have to use a more full featured network management solution.
any recommendations?
Offline
There are not all that many out there. But I keep all the common ones on my machine. Currently I am using connman-git (unlike the one in the repos, the pkgbuild does not include vpn support, which makes it able to be installed along side netctl). But I also have NetworkManager and wicd. I also sometimes use Trilby's swifer as well.
Offline
Thanks for the mention, but in this case swifer would not be suitable as it is wifi only (no ethernet). Though this thread had started me brainstorming on whether I should include it.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Yeah, I realized that when I included it. But I figured since I had mentioned all the other things I use, I might as well throw that one in there.
Offline
well, i just did 'systemctl enable netctl-auto@wlan0.service' and 'systemctl enable netctl-ifplugd@eth0.service', and now i have both up and with ips, or just the wifi, so its perfect.
Offline
Okay, so try establishing a wifi connection (probably what you have going right now), then go and plug an ethernet cable into the machine. I don't think it will automagically switch between the two. I have heard this doens't work in the past, but I am not 100% sure if this is still the case.
Offline