Networking
Device driver
lspci -v
dmesg | grep module_name
module_name is the kernel module shown when running lspci -v. For instance: rtl8821ae (wireless) or r8169 (ethernet)
Network interfaces
Listing network interfaces
ls /sys/class/net or ip link
Enabling and disabling network interfaces
ip link set interface up|down
https://wiki.archlinux.org/index.php/Network_configuration
Wireless network configuration
List of network managers: https://wiki.archlinux.org/index.php/Network_manager
Activating WiFi manually non persistant (example with wlp3s0)
# pacman -S wpa_supplicant
Log in as root (not sudo): su
# wpa_passphrase MOVISTAR_CFCD QlatrCMgyBpDGySYSek > /etc/wpa_supplicant/foo.conf# wpa_supplicant -B -i wlp3s0 -c /etc/wpa_supplicant/foo.conf# dhcpcd wlp3s0
Activating WiFi automatically on boot (example with wlp3s0)
Method 1 (netctl)
# pacman -S dialog# wifi-menu -o# netctl enable wlp3s0-MOVISTAR_CFCD
Method 2 (systemd-networkd)
# pacman -S wpa_supplicant
Log in as root (not sudo): su
# wpa_passphrase MOVISTAR_CFCD QlatrCMgyBpDGySYSek > /etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf# systemctl enable wpa_supplicant@alp3s0.conf
Now make a file at /etc/systemd/network/wlp3s0-wireless-dhcp.network (it can really be named whatever you want):
[Match]Name=wlp3s0[Network]DHCP=yes
Now ensure that systemd-networkd.service is enabled.
# systemctl enable systemd-networkd.service
Reboot
Method 3 (nmcli)
# pacman -S networkmanager
- Log in as root (not sudo):
su - Turn wifi on or off:
nmcli radio wifi <on|off> - List available access points(AP) to connect to:
nmcli device wifi list - Create a new connection to a password protected AP:
nmcli device wifi connect <SSID|BSSID> password <password>
Network Cofiguration (Ethernet)
Activating Ethernet manually (example with enp2s0)
# ip link set enp2s0 up# dhcpcd enp2s0
Activating Ethernet automatically on boot (example with enp2s0)
# systemctl enable dhcpcd@enp2s0.service