Skip to content
Search

Netctl

lastmod 2020-06-28created 2020-06-278 edits

Example

(If needed) stop the wired LAN service:

systemctl stop netctl@ethernet-eth0
systemctl disable netctl@ethernet-eth0

Copy the example you need from the /etc/netctl/examples directory to the /etc/netctl directory.

cp /etc/netctl/examples/wireless-wpa /etc/netctl

Edit the copied example.

vi /etc/netctl/wireless-wpa

Change it to something like the following.

Description=Your Description
Interface=wlp6s0
Connection=wireless
IP=dhcp
Priority=10
Security=wpa
ESSID="<SSID Name>"
Key="<PASSPHRASE>"
Hidden=yes
  • If the SSID is hidden, you must add Hidden=yes.
  • For a static IP, copy wireless-wpa-static and fill in the Adress, Gateway, and DNS fields appropriately.

Enable and start the service.

netctl enable wireless-wpa
netctl start wireless-wpa

Check that the wireless LAN connection is complete.

ifconfig -a

See also

Favorite site

author Zer0 sitemap