You are not logged in.

#1 2015-07-11 17:58:17

drrossum
Member
From: Chicago
Registered: 2009-02-24
Posts: 83

netctl-ifplugd: how to force switch-to static profile?

I use netctl-auto and netctl-ifplugd to automatically activate different netctl profiles. Netctl switches between eth and wlan profiles very well. I have an eth.dhcp and an eth.static profile. If I set the eth.static priority to 2 (per man page) netctl activates this instead of the eth.dhcp profile. All is well so far. Now the problem:

Q: How can I tell netctl-ifplugd to use eth.static when I need it, _without_ manually changing the priority in the eth.static profile?

I use the eth.static profile only on one certain network and need eth.dhcp on other networks. I understand that ifplugd can't know when I need the static profile, but how can I tell it to? The intuitive approach

# netctl switch-to eth.static

fails with an error message that leaves little clue about what is not working

netctl@eth.uchicago.service: Main process exited, code=exited, status=1/FAILURE

Last edited by drrossum (2015-07-11 17:59:52)

Offline

Board footer

Powered by FluxBB