Differences between revisions 1 and 2
Revision 1 as of 2020-11-10 19:41:39
Size: 1353
Comment:
Revision 2 as of 2020-11-10 19:43:23
Size: 1369
Comment:
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
Create a profile as a configuration file in `/etc/netctl`. A basic example of a wired profile is: Create a '''profile''' as a configuration file in `/etc/netctl`. A basic example of a '''wired profile''' is:
Line 29: Line 29:
Wireless profiles are considerably more complicated, but can be created interactively using '''`wifi-menu(1)`'''. An example of a wireless profile is: A '''wireless profile''' is considerably more complicated, but can be created interactively using '''`wifi-menu(1)`'''. An example of a wireless profile is:
Line 60: Line 60:
To obtain a static IP, configure the interface address ('''including''' subnet mask), routing gateway address, and nameserver address. To obtain a static IP, configure the interface address (''including'' subnet mask), routing gateway address, and nameserver address.

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

Netctl (last edited 2023-04-08 17:36:40 by DominicRicottone)