Netctl

From wikinotes

Locations

/etc/netctl/* SSID configs
/etc/systemd/system/multi-user.target.wants/*.service network autostart

Configuration

autostart network

sudo pacman -S wpa_supplicant iw dialog wpa_actiond

# wireless
sudo systemctl enable netctl-auto@${IFACE}.service            # autostart
sudo systemctl enable netctl-auto@${NETCTL_CFG_NAME}.service  # autostart on specific network

# wired
sudo systemctl enable netctl-ifplugd@eno0.service           # only start if ethernet plugged in
sudo systemctl enable dhcpcd@enp7s0.service                 # permanent fixed ethernet connection

wifi-menu

wifi-menu is a nice curses interface for making wireless connections with the netctl system. It makes it very simple.

wifi-menu wlp3s0	# add connection (to autoconnect to)

troubleshooting

Wifi Dropping

This is not specific to netctl/netcfg, but there is a bug with the intel wifi drivers that causes it to drop wifi connections.

# test to see if fixes problem
modprobe iwlwifi 11n_disable=1 swcrypto=1
# /etc/modprobe.d/iwlwifi.conf
#
# permanent solution

options iwlwifi 11n_disable=1 swcrypto=1