View previous topic :: View next topic |
Author |
Message |
Draenin n00b
Joined: 24 Mar 2016 Posts: 66
|
Posted: Fri Apr 16, 2021 11:10 am Post subject: [SOLVED] Using dhcp, yet no dhcp client installed? |
|
|
Hello,
I am doing a fresh install in my PC. While setting up things and pondering what to emerge in the new system and what not, I noticed that my NIC is configured to use dhcp.
Code: | $ cat /etc/conf.d/net
dns_domain_lo="homenet"
config_enp39s0="dhcp" |
And, as expected, that's how it boots. But... I haven't installed any dhcp client yet! How is that possible?
I have been looking around in the logs but no sign of dhcp-anything, nor dhcp demon is running in my system. So, it seems legitimately there are not any dhcp client installed. Yet, when booting, the NIC manages to configure itself up through dhcp and works properly.
Maybe, the dhcp client is installed in the initramfs? Not sure how to check that. Or, is it somewhere in the kernel configuration? I doubt.
I have to explore those alternatives, meanwhile maybe someone could have an idea of what could be going on.
Thanks. _________________ Linux enthusiast
Last edited by Draenin on Fri Apr 16, 2021 2:28 pm; edited 2 times in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54244 Location: 56N 3W
|
Posted: Fri Apr 16, 2021 11:27 am Post subject: |
|
|
Draenin,
If you are still in the chroot, the live media will use dhcpcd.
In yore own install there are tree or so sources of dhcpcd. You get busybox udhcp for free as a part of the stage3.
However, you need to either start the network by hand or configure enp39s0 to be started in the default runlevel. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Draenin n00b
Joined: 24 Mar 2016 Posts: 66
|
Posted: Fri Apr 16, 2021 2:27 pm Post subject: |
|
|
NeddySeagoon, you are right (I think).
My NIC is being set by udhcpc, as you mentioned.
And I do have Busybox included in the initramfs. I need it to be able to boot root from my (Raidz1) ZFS filesystem - if I remember correctly.
From /etc/genkernel.conf:
Code: | # Include busybox in the initramfs. If included, busybox is rebuilt
# if the cached copy is out of date.
BUSYBOX="yes" |
Thank you for the information. _________________ Linux enthusiast |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|