lspci -vdmesg | grep module_namemodule_name is the kernel module shown when running lspci -v. For instance: rtl8821ae (wireless) or r8169 (ethernet)
Listing network interfaces
ls /sys/class/net or ip link
Enabling and disabling network interfaces
ip link set interface up|downList of network managers: https://wiki.archlinux.org/index.php/Network_manager
# pacman -S wpa_supplicantLog in as root (not sudo)
# wpa_passphrase MOVISTAR_CFCD QlatrCMgyBpDGySYSekK > /etc/wpa_supplicant/foo.conf# wpa_supplicant -B -i wlp3s0 -c /etc/wpa_supplicant/foo.conf# dhcpcd wlp3s0Method 1 (netctl)
# pacman -S dialog# wifi-menu -o# netctl enable wlp3s0-MOVISTAR_CFCDMethod 2 (systemd-networkd)
# pacman -S wpa_supplicantLog in as root (not sudo)
# wpa_passphrase MOVISTAR_CFCD QlatrCMgyBpDGySYSekK > /etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf# systemctl enable wpa_supplicant@alp3s0.confNow make a file at /etc/systemd/network/wlp3s0-wireless-dhcp.network (it can really be named whatever you want):
[Match]Name=wlp3s0[Network]DHCP=yesNow ensure that systemd-networkd.service is enabled.
# systemctl enable systemd-networkd.serviceReboot
Method 3 (nmcli)
# pacman -S networkmanagerLog in as root (not sudo):
Turn wifi on or off
nmcli radio wifi <on|off>List available access points(AP) to connect to
nmcli device wifi listCreate a new connection to a password protected AP
nmcli device wifi connect <SSID|BSSID> password <password># ip link set enp2s0 up# dhcpcd enp2s0# systemctl enable dhcpcd@enp2s0.service