Skip to content

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.

4 points3 comments
Open on Reddit
About this post
Posted
Archived
Score
4 · 83% up
Kind
Text
ID
nsknee

Author

8
posts
4
comments
5
media
View profile

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.

6 points

Don't need to re-chroot, just use systemd provided networking tools to download whatever you need.

Create: /etc/systemd/network/20-wired.network

[Match]
Name=*

[Network]
DHCP=yes

Then start:

systemctl start systemd-networkd
systemctl start systemd-resolved

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

2 points

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!

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.