Skip to content

Automatic start of dhcpd service after booting up

I am using arch linux and every time I boot y system I have to manually run:

sudo dhcpcd enp0s31f6
sudo dhcpcd wlan0

to have internet connection. How Can I make start these services automaticly after boot ?

Thanks for help

EDIT:
Thanks for your answer. The solution was combination of enabling sudo systemctl enable dhcpcd.service and uninstalling Networkmanager which I did not know I had installed and was causing nondeterministic behavior of my device. Thanks to every one who was trying to help.

Edited 11 Dec 2020. We only hold this version.

0 points9 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
0 · 50% up
Kind
Text
ID
katbck

Author

37
posts
56
comments
8
media
View profile

14 comments

unknown author

Deleted before we saved it.

3 points

sudo systemctl enable dhcpd4.service?

1 points

Afterr running this command I got: Failed to enable unit: Unit file dhcpd4.service does not exist.

but sudo systemctl enable dhcpcd.service did: Created symlink /etc/systemd/system/multi-user.target.wants/dhcpcd.service → /usr/lib/systemd/system/dhcpcd.service.

Still issue remains and after rebooting I still have to run these commands to be able to use internet.

0 points
unknown author

Deleted before we saved it.

1 points

If you set up and use Network Manager it has a built in dhcp server, as well as other helpful things.

0 points
unknown author7 hidden

Deleted before we saved it.

5 points

I found it very simple to set up and it's convenient since it does dhcp as well as resolving ip addresses. It could be overkill but after futzing around with the other bits and pieces it was nice to have an easy to use all-in-one solution.

0 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.