Netctl: Using netctl-ifplugd and netctl-auto simultaneously?

Hi! I've recently been having difficulties with Wicd, and have decided to try replacing it netctl. I've already got working profiles, but one thing that I would like to have working is multiple-interface automatic connection. As it is now (having both services enabled) a race condition exists, where one interface may hijack the default route, have no default route if one of them disconnects, or have a gateway conflict where no IP or Route is assigned to the interface.
I have two profiles for my home network, and I'd like to be able to use ethernet while at my desk and wireless while moving about the house. I'm currently dealing with this by leaving -ifplugd enabled, and only enabling -auto if I need to use a wireless connection, then disabling it before I reconnect to wired.
Is there a better, and more automated way of dealing with this situation?
Thanks in advance.

djo: The issue with that in my situation is that I require a static IP, and my locked-down Comcast gateway's pseudo-static DHCP option is extremely buggy. As crappy as it is, it does the job well enough to not warrant a separate router, especially since most of the good ones that support OpenWRT are quite pricey. I haven't really found a solution to the original problem, and still employ my original workaround, since entering my password once isn't much of an inconvenience.
Šaran: Well they're both in the subnet, and can automatically connect at the same time. Both are supposed to be used as my machine's default route, so things get kinda wonky when two interfaces are connected to the same network fighting over who gets to provide the default route. Since your situation has only one interface that needs to serve the machine's default gateway, you don't run into that problem when both of them are trying to connect/disconnect at the same time.
WonderWoofy: I was actually messing around with this as a possible solution when I first posted the problem. If I remember correctly, I couldn't manage to get it to play nicely, but I'll give it another shot in the morning to see if I can figure it out. I'd only messed with the ExecUp/ExecDown options, but hooks actually look like a far better candidate to solve this issue (as well as re-implementing some of my wicd-scripts.)

Similar Messages

  • Inquiring about the issue of using PCI-5922 and PCI-5412 simultaneously under Linux OS! Thank you!

    hi all,I am lily and I an AE from NI shanghai .Now I confronted a pullze from customer,and I really feel at a loss! Hope some one of you would come and land me a hand,thank you in advance!
    The problem is as follows:
    Customer use PCI-5922 and PCI -5412 under Linux OS, if they use either of the two cards seperately,there would be OK. but if the use both of the two cards simultaneously, the error will occured as attachment shows. "Error code:-50258 occured at niscope_DAQmx Create Channel (AI-Voltage-Base).vi:2  Possible reason(s):The specified software component failed to initialize."
    Can I know is there any solution vs this probelm?Thank you in advance!!
    Attachments:
    Screenshot-NI-DAQmx Test Panels.png ‏17 KB
    NI-NEW_error.txt ‏8 KB
    shortsyms.txt ‏973 KB

    This is the wrong board for this question, you should re-post here
    Regards
    Ray Farmer

  • How can I use web-console and element inspector simultaneously in Firefox 20+ as I could in Firefox 19-?

    Yes, new web-developer all-in-one tools are total mess.
    I didn't find the answer to this question either https://support.mozilla.org/en-US/questions/955612 but downgrade to Firefox 19.
    But nor in Nightly, nor in Aurora, nor in Firefox Beta, nor in Firefox 20.0 I can use simultaneously web-console (where I test some style changing javascript code) and element inspector (where I instantly observe a reaction to my code). The only option I see is to switch every three seconds between them. How can I fix this except downgrading?

    You can consider to use the DOM Inspector extension instead of the built-in Inspector.
    *DOM Inspector: https://addons.mozilla.org/firefox/addon/dom-inspector-6622/

  • Using nic nas and usb internet simultaneously

    i use my nic card to connect to a nas.  i use a usb device for internet.
    both work simultaneously on my pc and worked on my older g4 which both were connected to a router and were able to also share pc-pc.
    i now have a g5 (ppc) and cannot get the nic/nas and usb internet device to work at the same time.
    I reassigned device order with ethernet ontop (worked on the g4) and it doesn't work.  I have to constantly turn one device off and the other on and vice versa for which device i need to use at that time.
    how can this be resolved please...it's very frustrating.
    thanks.

    The Interface that connects to the Internet, needs to be drug to the top of System Preferences>Network>Show:>Network Port Configurations and checked ON.
    10.5.x/10.6.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712

  • Using wifi streaming and USB transfer simultaneously

    Hello I want to write files to this wireless stick from a PC connected via USB and at same time wireless stick is streaming another file to some other device.  Is this use case scenario possible in this product ?Thanks 

    Hello, Yes this feature for now is possible when you connect the wireless tick to the pc via usb and then use a ios device to access it wirelessly and access the files with the app. Unfortunatelly it is not working while plugged on the usb port with an android device.  

  • HT4587 Is it possible to use AirPort Express and wired speakers simultaneously?

    While playing music via AirPort Express for AirPlay and iTunes can I additionally play the same music through a speaker wired directly (through the 3.5mm jack) from my iMac?

    Ok so the answer is in itunes help all the time! I was directed to - Itunes Help - Listen and Watch - Choose Speakers. Thanks to the guys at Western Computers Cirencester for their help. All now setup.

  • HP Color LaserJet CP2025dn Printer Wired Connectivity and have USB simultaneously?

    Hello to all;
    Thank you in advance.
    I have a HP Color LaserJet CP2025dn Printer. 
    The question, can I use ethernet connection and have USB simultaneously?  Ethernet is faster, right?
    Currently, I have the printer connected to network via Ethernet Wired Connectivity through an Apple Aiirport Extreme base station.  I have several Mac's all operating under 10.9.1, and two PC's (one is WIN XP, and the other WIN 8.1), which all operate fine with 2008 wired/wireless technology. I know what a dinosour. I am in the process of upgrading the household to current wireless technology with a NetGear AC1900 Nighthawk Smart WiFi Router (Model: R7000), 802.11ac Dual Band Gigabit, with two USB ports ((1) 2.0 and (1) 3.0) . I connected the printer directly into the Netgrar router, and it wouldn't print, ran setup through the Mac and Win computers and still wouldnt pring. One of the reasons that sold me on the Netgear router was the ReadySHARE® USB access—Wirelessly access & share. In order for me to utilize the ReadySHARE® feature is to connect via a USB cable.  Sob story, the longest USB cable off the shelf usually 16",  and to reach where the printer is now, I need @25-28 feet of cable. Is ther a maximum length of USB that I can use with out suffering loss of speed/functionality?
    Again thank you for your time

    I am sorry, but to get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial printer. You can do this at http://h30499.www3.hp.com/hpeb/
    Here is the HP Color LaserJet CP2025 Printer series Support page.
    I hope this helps.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Am I able to use both Carbonite and Time Machine as back-ups for my iMac?

    HI,
    I have a iMac, and I have recently recently completed the initial back up for Carbonite. I also have a 2TB Seagate external hard drive that I would like to use with Time Machine. I am wondering if I am able to use both Carbonite and Time Machine simultaneously.

    Hi, and welcome to the forums.
    As bdmarsha says, yes, you can run both simultaneously.
    But one caution; there are some reports here that some of the online backup apps keep some fairly large, frequently-changing files on your system. Time Machine will back them up along with everything else, which can take some extra time and space on your TM drive.
    After your initial TM backup, see how large the incremental backups are (by watching the progress bar and info on the +Time Machine Preferences+ window). If those seem too large for the changes you've made since the previous backup, see #A2 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of this forum), for a couple of apps that will show exactly what was backed-up.
    If you find such things, you can exclude them from TM backups, per #10 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum).

  • Netctl-auto and dropbox

    Hi, I've been reading the wiki. The only difference is my interface name is wlp2s0 instead of wlan0. So I went to /etc/netctl/interfaces and I created a new file called wlp2s0 with the contents
    ExecUpPost="su -c 'DISPLAY=:0 /usr/bin/dropboxd &' root || true"
    ExecDownPre="killall dropbox"
    However, this doesn't seem to do anything. I've disabled the "Start Dropbox on system startup" option, but everytime I restart, there's no dropbox icon in the dock like there normally is. What am I doing wrong?
    Internet roaming still seems to work, even after putting the computer to sleep.
    Last edited by boogerlad (2013-11-16 22:01:34)

    Wonderwoofy,
    I'm having a similar problem with my [email protected] connecting at startup. It loads fine but stays on connecting....... . I can stop and restart it using
    # systemctl stop/start dropbox@dmy
    and it works as expected. I can use the same method that boogerland describes in the first post and it works fine but I wanted to get it to work with systemd if possible. Any thoughts? Here's my [email protected]
    [Unit]
    Description=Dropbox
    After=local-fs.target network.target netctl-auto@wlan0 netctl-ifplugd@enp3s0
    Wants=netctl-auto@wlan0 netctl-ifplugd@enp3s0
    [Service]
    Type=simple
    Environment=DISPLAY=:0
    ExecStart=/home/dmy/.dropbox-dist/dropboxd
    ExecReload=/bin/kill -HUP $MAINPID
    KillMode=process
    Restart=always
    User=%I
    [Install]
    WantedBy=multi-user.target

  • Netctl-auto & netctl-ifplugd prefer wired?

    Hi,
    On my laptop running Arch Linux I've got both netctl-auto and netctl-ifplugd running. I have both ethernet and wireless set up in my house, and I'd like to have it set up so that it prefers wired over the wireless connection. So that if it's plugged in I can know for sure it is using the wired connection and not the wireless connection, and if I unplug it it should switch to wireless.
    There's a 'priority' variable but that only applies to wireless connections and so it has no effect on the wired profile. I've gone through the manpages for netctl-auto and ifplugd and gone through the relevant sections for netcl in the wiki multiple times but there doesn't seem to be anything on getting this kind of setup.
    So is there a way to have Arch prefer wired connections over wireless?

    https://wiki.archlinux.org/index.php/ne … s_failover

  • [SOLVED] netctl-auto not working, and I cannot remove netctl instance

    Hi, I installed Arch a few days ago, netctl-auto was working yesterday but today it's not.
    Note that
    netctl start
    works: I have a problem with netctl-auto only.
    $ ping -c 3 8.8.8.8
    connect: Network in unreachable
    I have created only one netctl profile so far, it's called wlp4s0-VM581389-2G (wlp4s0 is the name of my wireless interface)
    $ ls /etc/netctl
    examples hooks interfaces wlp4s0-VM581389-2G
    $ netctl list
    wlp4s0-VM581389-2G
    wpa_actiond is installed, and I have done
    systemctl enable [email protected]
    But for some reason I have some extra netctl@ instances that shouldn't be there. I am wondering if they could be the cause of netctl-auto not working properly:
    $ systemctl | grep netctl
    [email protected] loaded active running Automatic wireless network connection using netctl profiles
    ● netctl@my\x2dnetwork.service loaded failed failed Networking for netctl profile my-network
    ● netctl@wlp4s0\x2dVM581389\x2d2G.service loaded failed failed Networking for netctl profile wlp4s0-VM581389-2G
    system-netctl.slice loaded active active system-netctl.slice
    system-netctl\x2dauto.slice loaded active active system-netctl\x2dauto.slice
    - What are these bullet points at the beginning of these two lines?
    - Where do netctl@my\x2dnetwork.service and netctl@wlp4s0\x2dVM581389\x2d2G.service come from? They might be instances that I had enabled in the past.
    These instances are not enabled and they are inactive, but they are loaded!
    $ systemctl is-enabled netctl@my\x2dnetwork.service
    Failed to get unit file state for [email protected]: No such file or directory
    $ systemctl status netctl@my\x2dnetwork.service
    [email protected] - Networking for netctl profile myx2dnetwork
    Loaded: loaded (/usr/lib/systemd/system/[email protected]; static; vendor preset: disabled)
    Active: inactive (dead)
    Docs: man:netctl.profile(5)
    I have tried to get rid of them, but not managed:
    $ systemctl stop netctl@my\x2dnetwork.service
    $ systemctl disable netctl@my\x2dnetwork.service
    $ systemctl | grep netctl
    [email protected] loaded active running Automatic wireless network connection using netctl profiles
    netctl.service loaded active exited (Re)store the netctl profile state
    ● netctl@my\x2dnetwork.service loaded failed failed Networking for netctl profile my-network
    ● netctl@wlp4s0\x2dVM581389\x2d2G.service loaded failed failed Networking for netctl profile wlp4s0-VM581389-2G
    system-netctl.slice loaded active active system-netctl.slice
    system-netctl\x2dauto.slice loaded active active system-netctl\x2dauto.slice
    [user@mascip-toshiba ~]$ systemctl daemon-reload
    [user@mascip-toshiba ~]$ systemctl | grep netctl
    [email protected] loaded active running Automatic wireless network connection using netctl profiles
    netctl.service loaded active exited (Re)store the netctl profile state
    ● netctl@my\x2dnetwork.service loaded failed failed Networking for netctl profile my-network
    ● netctl@wlp4s0\x2dVM581389\x2d2G.service loaded failed failed Networking for netctl profile wlp4s0-VM581389-2G
    system-netctl.slice loaded active active system-netctl.slice
    system-netctl\x2dauto.slice loaded active active system-netctl\x2dauto.slice
    Also, I have tried to check with
    netctl-auto list
    , which gives an empty output. I am guessing that it's normal, because the netctl-auto instances are managed by systemd?
    Now, trying to understand what is happening to [email protected]: as seen before with systemctl | grep netctl, it is active and running.
    Then I do:
    $ journalctl -u [email protected]
    -- Reboot --
    Feb 10 17:34:23netctl-auto[270]: Included profile: 'wlp4s0-VM581389-2G'
    wpa_actiond[310]: Starting wpa_actiond session for interface 'wlp4s0'
    So, a wpa_actiond session was started, but I still cannot ping 8.8.8.8. Why?
    Investigating further:
    $ netctl status wlp4s0-VM581389-2G
    ● netctl@wlp4s0\x2dVM581389\x2d2G.service - Networking for netctl profile wlp4s0-VM581389-2G
    Loaded: loaded (/usr/lib/systemd/system/[email protected]; static; vendor preset: disabled)
    Active: failed (Result: exit-code) since Tue 2015-02-10 19:43:17 GMT; 3min 16s ago
    Docs: man:netctl.profile(5)
    Process: 274 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
    Main PID: 274 (code=exited, status=1/FAILURE)
    Feb 10 19:43:15 mascip-toshiba network[274]: Failed to initialize control interface '/run/wpa_supplicant'.
    Feb 10 19:43:15 mascip-toshiba network[274]: You may have another wpa_supplicant process already running or the file was
    Feb 10 19:43:15 mascip-toshiba network[274]: left by an unclean termination of wpa_supplicant in which case you will need
    Feb 10 19:43:15 mascip-toshiba network[274]: to manually remove this file before starting wpa_supplicant again.
    Feb 10 19:43:17 mascip-toshiba network[274]: The WPA supplicant did not start for interface 'wlp4s0'
    Feb 10 19:43:17 mascip-toshiba network[274]: Failed to bring the network up for profile 'wlp4s0-VM581389-2G'
    Feb 10 19:43:17 mascip-toshiba systemd[1]: netctl@wlp4s0\x2dVM581389\x2d2G.service: main process exited, code=exited, status=1/FAILURE
    Feb 10 19:43:17 mascip-toshiba systemd[1]: Failed to start Networking for netctl profile wlp4s0-VM581389-2G.
    Feb 10 19:43:17 mascip-toshiba systemd[1]: Unit netctl@wlp4s0\x2dVM581389\x2d2G.service entered failed state.
    Feb 10 19:43:17 mascip-toshiba systemd[1]: netctl@wlp4s0\x2dVM581389\x2d2G.service failed.
    "You may have another wpa_supplicant process already running or the file was left by an unclean termination of wpa_supplicant in which case you will need to manually remove this file before starting wpa_supplicant again."
    What does this mean? Which file might have been left by an unclean termination? I tried to find this info in the wpa_supplicant documentation, and by searching on Google, but couldn't find anything.
    Now I am lost:
    - how do I get rid of these two undesired netctl instances?
    - where can I investigate next, to get netctl-auto@wlp4s0 to work?
    Any help greatly appreciated :-)
    Last edited by mascip (2015-02-13 11:15:38)

    What is the output of:
    ls -l /etc/systemd/system/multi-user.target.wants
    netctl-auto cannot be used with explicitly enabled profiles (ie, those for which you have used `netctl enable <profile>`).

  • [SOLVED]netctl-auto no longer working

    Can some kind person point me in the right direction to fix this? Seems to have stopped working after latest upgrade.  Manually netctl start works OK.  Haven't been able to find the solution in man pages or googling.
    [email protected] - Automatic wireless network connection using netctl profiles
    Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled)
    Active: failed (Result: exit-code) since Wed 2014-07-09 08:00:20 UTC; 1h 14min ago
    Docs: man:netctl.special(7)
    Process: 231 ExecStart=/usr/bin/netctl-auto start %I (code=exited, status=1/FAILURE)
    Jul 09 08:00:20 arch systemd[1]: Failed to start Automatic wireless network connection using netctl profiles.
    Jul 09 08:00:50 arch netctl-auto[231]: Included profile 'wlp16s0-Matviak'
    Jul 09 08:00:51 arch netctl-auto[231]: Included profile 'wlp16s0-WIRELESS'
    Jul 09 08:00:51 arch netctl-auto[231]: Successfully initialized wpa_supplicant
    Jul 09 08:00:51 arch netctl-auto[231]: ctrl_iface exists and seems to be in use - cannot override it
    Jul 09 08:00:51 arch netctl-auto[231]: Delete '/run/wpa_supplicant/wlp16s0' manually if it is not used anymore
    Jul 09 08:00:51 arch netctl-auto[231]: Failed to initialize control interface '/run/wpa_supplicant'.
    Jul 09 08:00:51 arch netctl-auto[231]: You may have another wpa_supplicant process already running or the file was
    Jul 09 08:00:51 arch netctl-auto[231]: left by an unclean termination of wpa_supplicant in which case you will need
    Jul 09 08:00:51 arch netctl-auto[231]: to manually remove this file before starting wpa_supplicant again.
    Last edited by hilltownboy (2014-08-02 12:41:03)

    journalctl -b | grep wlp16s0:
    ul 29 11:27:17 arch systemd-udevd[148]: renamed network interface wlan0 to wlp16s0
    Jul 29 11:27:28 arch kernel: IPv6: ADDRCONF(NETDEV_UP): wlp16s0: link is not ready
    Jul 29 11:27:28 arch kernel: IPv6: ADDRCONF(NETDEV_UP): wlp16s0: link is not ready
    Jul 29 11:27:19 arch dhcpcd[225]: wlp16s0: adding address fe80::ea40:c74b:8e70:d43a
    Jul 29 11:27:23 arch wpa_actiond[317]: Starting wpa_actiond session for interface 'wlp16s0'
    Jul 29 11:27:24 arch dhcpcd[230]: wlp16s0: waiting for carrier
    Jul 29 11:27:24 arch dhcpcd[230]: wlp16s0: carrier acquired
    Jul 29 11:27:25 arch dhcpcd[230]: wlp16s0: IAID e0:20:c5:69
    Jul 29 11:27:28 arch dhcpcd[230]: wlp16s0: carrier lost
    Jul 29 11:27:25 arch systemd[1]: netctl@wlp16s0\x2dWIRELESS.service: main process exited, code=exited, status=1/FAILURE
    Jul 29 11:27:25 arch systemd[1]: Unit netctl@wlp16s0\x2dWIRELESS.service entered failed state.
    Jul 29 11:27:28 arch network[222]: Starting network profile 'wlp16s0-WIRELESS'...
    Jul 29 11:27:28 arch network[222]: Delete '/run/wpa_supplicant/wlp16s0' manually if it is not used anymore
    Jul 29 11:27:28 arch network[222]: The WPA supplicant did not start for interface 'wlp16s0'
    Jul 29 11:27:28 arch network[222]: Failed to bring the network up for profile 'wlp16s0-WIRELESS'
    Jul 29 11:27:28 arch netctl-auto[223]: Included profile 'wlp16s0-Matviak'
    Jul 29 11:27:28 arch netctl-auto[223]: Included profile 'wlp16s0-WIRELESS'
    Jul 29 11:27:28 arch dhcpcd[230]: wlp16s0: soliciting a DHCP lease
    Jul 29 11:27:28 arch dhcpcd[230]: wlp16s0: if_sendrawpacket: Network is down
    Jul 29 11:27:28 arch dhcpcd[230]: wlp16s0: dhcp if_readrawpacket: Network is down
    Jul 29 11:31:21 arch dbus[227]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.7" (uid=1000 pid=605 comm="systemctl restart netctl-auto@wlp16s0 ") interface="org.freedesktop.systemd1.Manager" member="RestartUnit" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/sbin/init ")
    Jul 29 11:31:22 arch dhcpcd[230]: wlp16s0: if_sendrawpacket: Network is down
    Jul 29 11:31:22 arch dhcpcd[230]: wlp16s0: dhcp if_readrawpacket: Network is down
    Jul 29 11:31:25 arch dhcpcd[230]: wlp16s0: if_sendrawpacket: Network is down
    Jul 29 11:31:25 arch dhcpcd[230]: wlp16s0: dhcp if_readrawpacket: Network is down
    Jul 29 11:31:29 arch dhcpcd[230]: wlp16s0: if_sendrawpacket: Network is down
    Jul 29 11:31:29 arch dhcpcd[230]: wlp16s0: dhcp if_readrawpacket: Network is down
    Jul 29 11:31:29 arch sudo[607]: norman : TTY=pts/1 ; PWD=/home/norman ; USER=root ; COMMAND=/usr/bin/systemctl restart netctl-auto@wlp16s0
    Jul 29 11:31:29 arch wpa_actiond[317]: Terminating wpa_actiond session for interface 'wlp16s0'
    Jul 29 11:31:33 arch dhcpcd[230]: wlp16s0: if_sendrawpacket: Network is down
    Jul 29 11:31:33 arch dhcpcd[230]: wlp16s0: dhcp if_readrawpacket: Network is down
    Jul 29 11:31:37 arch dhcpcd[230]: wlp16s0: if_sendrawpacket: Network is down
    Jul 29 11:31:37 arch dhcpcd[230]: wlp16s0: dhcp if_readrawpacket: Network is down
    Jul 29 11:31:41 arch netctl-auto[633]: Included profile 'wlp16s0-Matviak'
    Jul 29 11:31:41 arch netctl-auto[633]: Included profile 'wlp16s0-WIRELESS'
    Jul 29 11:31:41 arch dhcpcd[230]: wlp16s0: if_sendrawpacket: Network is down
    Jul 29 11:31:41 arch dhcpcd[230]: wlp16s0: dhcp if_readrawpacket: Network is down
    Jul 29 11:31:41 arch kernel: IPv6: ADDRCONF(NETDEV_UP): wlp16s0: link is not ready
    Jul 29 11:31:41 arch wpa_actiond[651]: Starting wpa_actiond session for interface 'wlp16s0'
    Jul 29 11:31:43 arch kernel: wlp16s0: authenticate with f8:1a:67:d3:6f:aa
    Jul 29 11:31:43 arch kernel: wlp16s0: send auth to f8:1a:67:d3:6f:aa (try 1/3)
    Jul 29 11:31:43 arch kernel: wlp16s0: authenticated
    Jul 29 11:31:43 arch kernel: wlp16s0: associate with f8:1a:67:d3:6f:aa (try 1/3)
    Jul 29 11:31:43 arch kernel: wlp16s0: RX AssocResp from f8:1a:67:d3:6f:aa (capab=0x421 status=0 aid=2)
    Jul 29 11:31:43 arch kernel: wlp16s0: associated
    Jul 29 11:31:43 arch kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp16s0: link becomes ready
    Jul 29 11:31:43 arch dhcpcd[230]: wlp16s0: carrier acquired
    Jul 29 11:31:43 arch wpa_actiond[651]: Interface 'wlp16s0' connected to network 'WIRELESS'
    Jul 29 11:31:43 arch dhcpcd[230]: wlp16s0: adding address fe80::ad30:b256:e3a3:dbd0
    Jul 29 11:31:43 arch dhcpcd[230]: wlp16s0: IAID e0:20:c5:69
    Jul 29 11:31:43 arch dhcpcd[230]: control command: dhcpcd -4 -q -t 30 -K -L wlp16s0
    Jul 29 11:31:43 arch dhcpcd[230]: wlp16s0: soliciting a DHCP lease
    Jul 29 11:31:43 arch dhcpcd[230]: wlp16s0: offered 192.168.0.100 from 192.168.0.1
    Jul 29 11:31:44 arch dhcpcd[230]: wlp16s0: soliciting an IPv6 router
    Jul 29 11:31:48 arch dhcpcd[230]: wlp16s0: leased 192.168.0.100 for 7200 seconds
    Jul 29 11:31:48 arch dhcpcd[230]: wlp16s0: adding route to 192.168.0.0/24
    Jul 29 11:31:48 arch dhcpcd[230]: wlp16s0: adding default route via 192.168.0.1
    Jul 29 11:31:56 arch dhcpcd[230]: wlp16s0: no IPv6 Routers available
    Blank line omits dozens of repeated "Network is down", etc.

  • Netctl profile works flawlessly unless called by netctl-auto

    I have four wireless profiles in /etc/netctl and all of them work just fine when used manually, i.e. netctl enable <profile> or netctl start <profile>, but when I set up netctl-auto one of them keeps failing.
    The three others are identical except for the SSID and the WPA key so I'm including just one of them here along with the one the keeps failing, but there's really nothing special here. The only difference is that the one that keeps failing has a hidden SSID.
    One of the three which work:
    Description='WiFi: AMPERSAND'
    Interface=wlan0
    Connection=wireless
    Security=wpa
    IP=dhcp
    ESSID='ampersand'
    # Prepend hexadecimal keys with \"
    # If your key starts with ", write it as '""<key>"'
    # See also: the section on special quoting rules in netctl.profile(5)
    Key='0f20f8g0fg2'
    # Uncomment this if your ssid is hidden
    #Hidden=yes
    The one that doesn't:
    Description='WiFi: HANLUKIO'
    Interface=wlan0
    Connection=wireless
    Security=wpa
    IP=dhcp
    ESSID='kjKJls83jpkskKkkUyasjqKAS'
    # Prepend hexadecimal keys with \"
    # If your key starts with ", write it as '""<key>"'
    # See also: the section on special quoting rules in netctl.profile(5)
    Key='CCyzJvIVljL9hsHSbhspPhs929c0hLssh38sPssofo382d8OS320dgSop3hfIGdi32GF'
    # Uncomment this if your ssid is hidden
    Hidden=yes
    The wiki doesn't seem to mention anything specific concerning a hidden SSID and netctl-auto, and since all four work flawlessly when used manually, I'm out of ideas. I'll try setting $NETCTL_DEBUG on the next try and hopefully that will output something meaningful but that wont be till next week and I was curious if anyone knew off the bat what the issue might me.

    As I understand man netctl.special, the netctl-auto does not honor the WPADriver parameters in the profiles, because it works on the interface level. Hence, the "Hidden=yes" is not parsed and the hidden ones are probably discarded.
    You should be able to add the parameter "scan_ssid=1" (or "Hidden=yes" - not sure) to a hook for the interface in /etc/netctl/interfaces/
    edit: wrong semantics striked; see below.
    Last edited by Strike0 (2013-12-16 22:16:36)

  • Netctl-auto cannot connect after unblocking wifi

    Hello,
    I'm using netctl as a connection manager. Systemd automatically starts "netctl-auto@wlp1s0" and if I boot system with wifi unblocked (rfkill) it is working fine. But when I boot my system with wifi blocked (from previous session) and after boot I manually unblock it (using rfkill unblock wifi), it doesn't pick up network. And when I try "sudo netctl-auto swtich-to <network_name> it prints out:
    WPA association/authentication failed for interface 'wlp1s0'
    It also happens when I'm working without connection with blocked wifi (for saving the battery) and then I turn wifi on - it also doesn't pick up a network.
    I have to first do:
    systemctl restart netctl-auto@wlp1s0
    which blocks wifi (when I try rfkill list, I can see that this restart blocked it) and only if I immediately switch wifi on (also using rfkill), it connect as usual.
    Does anyone experience same issue? Is it normal behaviour? Thanks

    I think you are seeing a manifestation of this bug.
    Note that I wrote that report.
    Last edited by ewaller (2014-03-27 15:01:50)

  • Netctl-auto@wlp3s0.service broken after wpa_supplicant upgrade

    A few hours ago, I upgraded from wpa_supplicant-2.3-1 to wpa_supplicant-2.4-1. Subsequently [email protected] stopped working. After I started it, it would be reported as "active (running)" but fail to connect to any WIFI network (I wouldn't get assigned a DHCP IP address):
    Apr 25 12:44:47 sauron wpa_actiond[6952]: Interface 'wlp3s0' connected to network 'Edward'
    Apr 25 12:44:47 sauron dhcpcd[6974]: DUID xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
    Apr 25 12:44:47 sauron dhcpcd[6974]: wlp3s0: IAID xx:xx:xx:xx
    Apr 25 12:44:47 sauron dhcpcd[6974]: wlp3s0: rebinding lease of 192.168.1.20
    Apr 25 12:44:51 sauron dhcpcd[6974]: wlp3s0: leased 192.168.1.20 for 43200 seconds
    Apr 25 12:44:51 sauron dhcpcd[6974]: wlp3s0: adding route to 192.168.1.0/24
    Apr 25 12:44:51 sauron dhcpcd[6974]: wlp3s0: adding default route via 192.168.1.1
    12:55 ~$ journalctl -xe -u [email protected]
    Apr 25 12:36:28 sauron netctl-auto[5505]: Included profile 'wlp3s0-cz'
    Apr 25 12:36:28 sauron netctl-auto[5505]: Successfully initialized wpa_supplicant
    Apr 25 12:36:28 sauron netctl-auto[5505]: Could not read interface p2p-dev-wlp3s0 flags: No such device
    Apr 25 12:36:28 sauron systemd[1]: Started Automatic wireless network connection using netctl profiles.
    -- Subject: Unit [email protected] has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Unit [email protected] has finished starting up.
    Notice the "Could not read interface...". I downgraded back to 2.3-1 and the problem went away. Could this be a wpa_supplicant bug (new bug in 2.4-1) or netctl bug (incompatibility with the new wpa_supplicant)?
    There's nothing special about the profile files in /etc/netctl. In addition to the ones for wired network, I have a few files named like "wlp3s0-XXX" and they look like this (password crossed out):
    Connection=wireless
    Description='Edward'
    Interface=wlp3s0
    Security=wpa
    ESSID='Edward'
    Key='????'
    Hidden=yes
    IP=dhcp

    I'm having exactly the same problem.
    # wpa_supplicant -D wext -i wlp2s0 -c /tmp/wpap
    Successfully initialized wpa_supplicant
    ioctl[SIOCSIWENCODEEXT]: Invalid argument
    ioctl[SIOCSIWENCODEEXT]: Invalid argument
    ioctl[SIOCSIWSCAN]: Device or resource busy
    wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
    ioctl[SIOCSIWSCAN]: Device or resource busy
    wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
    ioctl[SIOCSIWSCAN]: Device or resource busy
    wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
    ioctl[SIOCSIWSCAN]: Device or resource busy
    wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
    wlp2s0: Trying to associate with 00:1e:e5:6d:83:6f (SSID='Driesen-Peeters' freq=2437 MHz)
    ioctl[SIOCSIWFREQ]: Device or resource busy
    wlp2s0: Association request to the driver failed
    wlp2s0: Authentication with 00:1e:e5:6d:83:6f timed out.
    ioctl[SIOCSIWMLME]: Transport endpoint is not connected
    ioctl[SIOCSIWAP]: Device or resource busy
    wlp2s0: CTRL-EVENT-DISCONNECTED bssid=00:1e:e5:6d:83:6f reason=3 locally_generated=1
    ioctl[SIOCSIWSCAN]: Device or resource busy
    wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
    ioctl[SIOCSIWSCAN]: Device or resource busy
    wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
    ^Cwlp2s0: CTRL-EVENT-TERMINATING
    # wpa_supplicant -D wext -i wlp2s0 -c /tmp/wpap
    Successfully initialized wpa_supplicant
    Could not read interface p2p-dev-wlp2s0 flags: No such device
    wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
    wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
    wlp2s0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
    wlp2s0: SME: Trying to authenticate with 00:1e:e5:6d:83:6f (SSID='My-Network' freq=2437 MHz)
    wlp2s0: SME: Authentication request to the driver failed
    ^C
    nl80211: deinit ifname=p2p-dev-wlp2s0 disabled_11b_rates=0
    p2p-dev-wlp2s0: CTRL-EVENT-TERMINATING
    nl80211: deinit ifname=wlp2s0 disabled_11b_rates=0
    wlp2s0: CTRL-EVENT-TERMINATING
    This also break wifi-menu by the way, so the only option now is trying a manual wpa_supplicant connect. I should mention that this morning (after troubleshooting all night with no result) I managed to connect to my AP once (while begin connected via ethernet as well). After disconnecting the ethernet cable and trying again it failed again. I have not been able to reproduce this.
    Other possibly interesting information:
    # dmesg
    [ 734.004304] wlp2s0: authenticate with 00:1e:e5:6d:83:6f
    [ 734.004343] iwlwifi 0000:02:00.0: No available PHY context
    [ 734.004378] iwlwifi 0000:02:00.0: No available PHY context
    [ 737.496406] wlp2s0: authenticate with 00:1e:e5:6d:83:6f
    [ 737.496431] iwlwifi 0000:02:00.0: No available PHY context
    [ 741.388469] wlp2s0: authenticate with 00:1e:e5:6d:83:6f
    [ 741.388493] iwlwifi 0000:02:00.0: No available PHY context
    [ 963.953904] wlp2s0: authenticate with 00:1e:e5:6d:83:6f
    [ 963.956708] wlp2s0: send auth to 00:1e:e5:6d:83:6f (try 1/3)
    [ 963.958860] wlp2s0: authenticated
    [ 963.961363] wlp2s0: associate with 00:1e:e5:6d:83:6f (try 1/3)
    [ 963.964229] wlp2s0: RX AssocResp from 00:1e:e5:6d:83:6f (capab=0x411 status=0 aid=1)
    [ 963.965539] wlp2s0: associated
    [ 966.651095] wlp2s0: deauthenticating from 00:1e:e5:6d:83:6f by local choice (Reason: 3=DEAUTH_LEAVING)
    [ 966.655984] cfg80211: Calling CRDA to update world regulatory domain
    [ 966.659308] cfg80211: World regulatory domain updated:
    [ 966.659312] cfg80211: DFS Master region: unset
    [ 966.659313] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
    [ 966.659315] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [ 966.659317] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [ 966.659319] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
    [ 966.659321] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
    [ 966.659323] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
    [ 966.659324] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
    [ 966.659326] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
    [ 966.659327] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
    [ 1033.789418] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
    [ 1043.308740] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
    [ 1046.718632] wlp2s0: authenticate with 00:1e:e5:6d:83:6f
    [ 1046.718644] iwlwifi 0000:02:00.0: No available PHY context
    [ 1046.718654] iwlwifi 0000:02:00.0: No available PHY context
    [ 1050.109123] wlp2s0: authenticate with 00:1e:e5:6d:83:6f
    [ 1050.109147] iwlwifi 0000:02:00.0: No available PHY context
    [ 1072.258284] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
    [ 1075.694370] wlp2s0: authenticate with 00:1e:e5:6d:83:6f
    [ 1075.697180] wlp2s0: send auth to 00:1e:e5:6d:83:6f (try 1/3)
    [ 1076.003982] iwlwifi 0000:02:00.0: No association and the time event is over already...
    [ 1076.004017] wlp2s0: Connection to AP 00:1e:e5:6d:83:6f lost
    [ 1080.255382] wlp2s0: authenticated
    # pacman -Q wpa_supplicant
    wpa_supplicant 2.4-1
    # uname -r
    3.19.3-3-ARCH
    # lspci -v | grep Wireless -A 15
    02:00.0 Network controller: Intel Corporation Wireless 7265 (rev 59)
    Subsystem: Intel Corporation Dual Band Wireless-AC 7265
    Flags: bus master, fast devsel, latency 0, IRQ 50
    Memory at f7000000 (64-bit, non-prefetchable) [size=8K]
    Capabilities: [c8] Power Management version 3
    Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [40] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Device Serial Number 60-57-18-ff-ff-4a-6a-8c
    Capabilities: [14c] Latency Tolerance Reporting
    Capabilities: [154] L1 PM Substates
    Kernel driver in use: iwlwifi
    Kernel modules: iwlwifi
    I'm on a Zenbook UX305, what are you guys on and could you post the output of those last three commands I posted?
    Cheers!

Maybe you are looking for