No Internet After Install: can't enable dhcpcd
Hi,
I went through the install process of arch this morning. I have installed arch before, but I'm using a Ethernet connected device as opposed to WiFi. After I booted into my arch system, I no longer have an internet connection. I assumed ip could be used to manage network interfaces so I didn't install anything during the USB portion of the process.
I've seen other posts about this and they recommend running "systemctl enable dhcpcd@myinterface". When I attempt to run this, I get the error "Failed to enable unit: Unit file dhcpcd@enp6s0.service does not exist." (enp6s0 is the name of my interface). I can't find anything on the wiki about this, or anyone who's posted about getting this error before.
About this post
- Posted
- Archived
- Score
- 4 · 83% up
- Kind
- Text
- ID
- nsknee
5 comments
Are u sure dhcpcd is installed? I had to go back to install usb and chroot in and download it when I redid my install last week due to it not getting installed when I installed linux and base. I would say try that and see if that is the issue.
Create this file then type
https://wiki.archlinux.org/title/systemd-networkd#Wired_adapter_using_DHCP
Systemctl enable systemd-networkd
Systemctl enable systemd-resolved (make sure you have a nameserver specified in resolv.conf)
Deleted before we saved it.
Don't need to re-chroot, just use systemd provided networking tools to download whatever you need.
Create: /etc/systemd/network/20-wired.network
Then start:
I found systemd-resolved will work out of the box for domain name resolution without configuration.
https://wiki.archlinux.org/title/systemd-networkd
https://wiki.archlinux.org/title/Systemd-resolved
This worked great, and saved me a lot of trouble since I'm doing root-on-ZFS (and ZFS on the archiso is annoying). Thanks!