Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

[SOLVED] dhcpcd service not working

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
corona80
n00b
n00b
Posts: 17
Joined: Wed May 02, 2007 2:36 am

[SOLVED] dhcpcd service not working

  • Quote

Post by corona80 » Tue Apr 19, 2022 6:30 pm

I have a new install with a strange dhcp issue. I must be missing some obvious setting, but it's eluded me.

Running rc-service dhcpcd start --verbose:

Code: Select all

...
start-stop-daemon: fopen '/var/run/dhcpcd/pid" No such file or directory
...
no valid interfaces found
But running "dhcpcd eno1" works perfectly.

Contents of /etc/config.d/net:

Code: Select all

net_eno1="dhcp"
Last edited by corona80 on Fri Apr 22, 2022 6:41 pm, edited 1 time in total.
Top
grknight
Retired Dev
Retired Dev
Posts: 2549
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Tue Apr 19, 2022 6:35 pm

Are you trying to start both the dhcpcd and net.eno1 services at the same time?

Please do not do this as they conflict and will fight over the interface.

Choose only one and disable the other one.
Top
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Tue Apr 19, 2022 6:40 pm

Plz try

Code: Select all

dmesg | grep eno
ip a
Is your iface clearly shown?
Is this a vm?
:)
Top
corona80
n00b
n00b
Posts: 17
Joined: Wed May 02, 2007 2:36 am

  • Quote

Post by corona80 » Tue Apr 19, 2022 6:57 pm

grknight wrote:Are you trying to start both the dhcpcd and net.eno1 services at the same time?

Please do not do this as they conflict and will fight over the interface.

Choose only one and disable the other one.
This was the problem. I mistakenly installed dhcpcd, thinking that was needed for dhcp.

Thanks for the help, and unreasonably fast replies.
Top
grknight
Retired Dev
Retired Dev
Posts: 2549
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Tue Apr 19, 2022 7:02 pm

corona80 wrote:
grknight wrote:Are you trying to start both the dhcpcd and net.eno1 services at the same time?

Please do not do this as they conflict and will fight over the interface.

Choose only one and disable the other one.
This was the problem. I mistakenly installed dhcpcd, thinking that was needed for dhcp.

Thanks for the help, and unreasonably fast replies.
You can install the package dhcpcd, but don't run 2 services that provide dhcp. netifrc (net.eno1 service here) will use dhcpcd if it exists on startup but do not start the dhcpcd service when using netifrc on the same interface.
Top
corona80
n00b
n00b
Posts: 17
Joined: Wed May 02, 2007 2:36 am

  • Quote

Post by corona80 » Tue Apr 19, 2022 7:20 pm

grknight wrote:You can install the package dhcpcd, but don't run 2 services that provide dhcp. netifrc (net.eno1 service here) will use dhcpcd if it exists on startup but do not start the dhcpcd service when using netifrc on the same interface.
Thanks for clarifying. I ended up removing the dhcpcd package. It was starting automatically, even after I removed it from the default runlevel. I did not look to see what was causing that. Perhaps it was another runlevel, or was getting pulled in as a dependency.

Honestly, I'm just coming back to Gentoo after a decade away, and the learning/relearning process is steep. And a lot of fun!
Top
Post Reply

6 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy