January 15, 2024, 16:25
user@host:~ $ ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.98 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 2001:861:3840:b8d0:7288:59b9:1a33:3663 prefixlen 64 scopeid 0x0<global> inet6 fe80::4dac:b931:7e66:9ba2 prefixlen 64 scopeid 0x20<link> ether b8:27:eb:fc:a6:44 txqueuelen 1000 (Ethernet) RX packets 2778 bytes 256033 (250.0 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 153 bytes 17779 (17.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 17 bytes 3108 (3.0 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 17 bytes 3108 (3.0 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether b8:27:eb:a9:f3:11 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
user@host:~ $ sudo ifup wlan0 ifup: unknown interface wlan0
/etc/network/interfaces & /var/run/wpa_supplicant`
# interfaces(5) file used by ifup(8) and ifdown(8) # Include files from /etc/network/interfaces.d: source /etc/network/interfaces.d/*`
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="<Your Wi-Fi>" psk=<Your Wi-Fi password> }