You are not logged in.

#1 2013-07-09 20:47:12

pvinis
Member
From: lost in arch
Registered: 2013-04-29
Posts: 5

one eth0 profile, one wlan0 profile, fight..[SELFSOLVED]

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=stateless

and 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=yes

i 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

#2 2013-07-09 21:06:43

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: one eth0 profile, one wlan0 profile, fight..[SELFSOLVED]

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

#3 2013-07-09 22:03:55

pvinis
Member
From: lost in arch
Registered: 2013-04-29
Posts: 5

Re: one eth0 profile, one wlan0 profile, fight..[SELFSOLVED]

WonderWoofy wrote:

II think you might have to use a more full featured network management solution.

any recommendations?

Offline

#4 2013-07-09 22:32:01

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: one eth0 profile, one wlan0 profile, fight..[SELFSOLVED]

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

#5 2013-07-09 22:34:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: one eth0 profile, one wlan0 profile, fight..[SELFSOLVED]

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

#6 2013-07-09 22:37:13

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: one eth0 profile, one wlan0 profile, fight..[SELFSOLVED]

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

#7 2013-07-09 22:50:09

pvinis
Member
From: lost in arch
Registered: 2013-04-29
Posts: 5

Re: one eth0 profile, one wlan0 profile, fight..[SELFSOLVED]

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

#8 2013-07-09 22:54:54

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: one eth0 profile, one wlan0 profile, fight..[SELFSOLVED]

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

Board footer

Powered by FluxBB