netctl
netctl(1) is a minimal network manager. It leverages systemd(1).
Contents
Installation
For Arch Linux, install the netctl package.
Setup
Create a profile as a configuration file in /etc/netctl. A basic example of a wired profile is:
Interface=enp1s0 Connection=ethernet IP=dhcp
A wireless profile is considerably more complicated, but can be created interactively using wifi-menu(1). An example of a wireless profile is:
Description='A simple WPA encrypted wireless connection using 256-bit PSK' Interface=wlp2s2 Connection=wireless Security=wpa IP=dhcp ESSID=your_essid Key=\"64cf3ced850ecef39197bb7b7b301fc39437a6aa6c6a599d0534b16af578e04a
See netctl.profile(5) for more details on profile syntax.
Finally, start and enable the service.
netctl start PROFILE netctl enable PROFILE
To reload a profile after making changes, use netctl reenable PROFILE.
Configuration
All configuration for netctl(1) is handled by the profiles. Profiles are shell scripts, making use of bash arrays.
Static IPs
To obtain a static IP, configure the interface address (including subnet mask), routing gateway address, and nameserver address.
IP=static Address=('10.1.10.2/24') Gateway='10.1.10.1' DNS=('10.1.10.1')