-
-
Notifications
You must be signed in to change notification settings - Fork 0
Network
szorfein edited this page Oct 18, 2020
·
4 revisions
Here how you can enable the network on.
Found your wifi card.
# ip a
---
5: wlan0: ---
Start the iwd daemon
# systemctl start iwd
Use iwctl to connect on your wifi box
# iwctl --passphrase passphrase station wlan0 connect SSID
For the DHCP:
# cat > /etc/systemd/network/50-dhcp.network
[Match]
Name=wl*
[Network]
DHCP=yes
^D
For the DNS query:
# cat >> /etc/systemd/resolved.conf
[Resolve]
DNS = 1.1.1.1
^D
# systemctl start systemd-networkd
# systemctl start systemd-resolved
Enable service for the next reboot
# systemctl enable systemd-networkd
# systemctl enable systemd-resolved
# systemctl enable iwd
# cat > /etc/systemd/network/50-dhcp.network
[Match]
Name=en*
[Network]
DHCP=yes
^D
# cat >> /etc/systemd/resolved.conf
[Resolve]
DNS = 1.1.1.1
^D
# systemctl start systemd-networkd
# systemctl enable systemd-networkd
# systemctl start systemd-resolved
# systemctl enable systemd-resolved
# ping -c1 gentoo.org