You are not logged in.
Hey guys!
I have a pretty specific workflow that I'm trying to setup for auto switching netctl. This is what I want at a very high level:
If a cable is plugged into eno1 (my ethernet device), try to start my "wired" ethernet and my "bridge" profile, then start hostapd.
if the cable is unplugged, stop hostapd try to start one of my wifi profiles.
So it should automatically switch everytime I plug/unplug an ethernet cord into my laptop.
Here are my netctl profiles that I'm testing with:
$ sudo cat /etc/netctl/wired
Description='A basic dhcp ethernet connection'
Interface=eno1
Connection=ethernet
IP=dhcp
## for DHCPv6
#IP6=dhcp
## for IPv6 autoconfiguration
#IP6=stateless
ExecUpPost="netctl start bridge || true"
ExecDownPre="netctl stop bridge || true"
$ sudo cat /etc/netctl/bridge
Description="Wired Connection with Wifi Bridge"
Interface=br0
Connection=bridge
BindsToInterfaces=(eno1)
IP=dhcp
ExecUpPost="systemctl start hostapd || true"
ExecDownPre="systemctl stop hostapd || true"
$ sudo cat /etc/netctl/homewifi
Description='Automatically generated profile by wifi-menu'
Interface=wlp3s0
Connection=wireless
Security=wpa
ESSID=minenotyours
IP=dhcp
Key=itsasecret
Also, note that I have netctl-auto and netctl-ifplugd installed and enabled.
So, from my understanding, this should work but it doesn't. When I reboot, my "wired" profile starts but nothing else.
Am I doing something wrong here? Or should I be doing this some other way? Thanks!
Offline
Also, how do you know what profile is active when using netctl-ifplugd and netctl-auto? (netctl list shows none active)
Offline
Hey, I am currently grappling with a similar issue of automatically between wired and wireless smartly.
For your second question though
netctl-auto list
should do it and I have also started using netmon-git for some graphical feedback.
If you've had any progress on the auto-switching though I'd like to know. Thanks!
Offline