netctl

netctl(1) is a minimal network manager built on top of systemd.


Installation

Install the netctl package through your preferred package manager.


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

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')


CategoryRicottone