LinuxCommandLibrary

netctl

TLDR

Start a profile

$ sudo netctl start [profile]
copy
Stop a profile
$ sudo netctl stop [profile]
copy
Enable profile at boot
$ sudo netctl enable [profile]
copy
List all profiles
$ netctl list
copy
Check profile status
$ netctl status [profile]
copy
Switch profile
$ sudo netctl switch-to [profile]
copy

SYNOPSIS

netctl command [profile]

DESCRIPTION

netctl is Arch Linux's network profile manager. It manages network configurations through profile files, supporting wired, wireless, bridges, bonds, and VLANs.
netctl uses systemd and can work alongside NetworkManager (but typically not simultaneously).

PARAMETERS

start profile

Start network profile.
stop profile
Stop network profile.
enable profile
Enable at boot.
disable profile
Disable at boot.
list
List all profiles.
status profile
Show profile status.
switch-to profile
Switch to profile.

PROFILE EXAMPLE

$ # /etc/netctl/ethernet-static
Interface=eth0
Connection=ethernet
IP=static
Address=('192.168.1.10/24')
Gateway='192.168.1.1'
DNS=('8.8.8.8')
copy

PROFILE LOCATION

$ /etc/netctl/
/etc/netctl/examples/
copy

CAVEATS

Arch Linux specific. One profile per interface. Don't use with NetworkManager simultaneously.

HISTORY

netctl was developed for Arch Linux as a replacement for netcfg, using systemd integration for network management.

SEE ALSO

Copied to clipboard