Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18556 - net-setup does not stop dhcpcd when using manual configuration.
Summary: net-setup does not stop dhcpcd when using manual configuration.
Status: RESOLVED LATER
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Bob Johnson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-31 15:50 UTC by Dennis Krøger
Modified: 2015-01-01 20:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Krøger 2003-03-31 15:50:57 UTC
When we tried to install Gentoo 1.4rc3, the LiveCD (3stages) had dhcpcd 
enabled by default, that is allright off course. The problem is that net-setup 
should disable dhcpcd when choosing to configure the network manually, 
otherwise ones configured settings gets overrided by dhcpcd.

Reproducible: Didn't try
Steps to Reproduce:
1. Use a machine on a network with a dhcp server.
2. Start the LiveCD.
3. Use net-setup to configure your ip-address manually
4. Wait a while
Actual Results:  
dhcpcd still running, network config changed by it.

Expected Results:  
dhcpcd stopped, network config kept.
Comment 1 Bob Johnson (RETIRED) gentoo-dev 2003-04-04 12:46:33 UTC
the latest cd has a nodhcp boot option, i will also look at disabling dhcpcd 
when the net-setup prog is started. 
Comment 2 abandoned account 2015-01-01 20:31:32 UTC
This bug is actually still active with LiveCD install-amd64-minimal-20141204.iso
(tested under virtualbox with a Bridged Adapter setting and no dhcp servers on the network)

A. When not using nodhcp boot option then, dhcpcd is already running (pgrep dhcpcd) and /var/run/dhcpcd.pid file is intact pointing to the right pid, however
/etc/init.d/dhcpcd stop
says:
* WARNING: dhcpcd is already stopped

Using net-setup (as per the instructions here https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Networking#Default:_Using_net-setup ) won't stop the already running dhcpcd and 
what this means is that net-setup will fail to rewrite /etc/resolv.conf because dhcpcd will keep its own version of that file (in my case empty, so no DNS for me even after the proper net-setup configuration). Solution for this is to pkill dhcpcd before running net-setup.

B. When using nodhcp boot option then, even though dhcpcd is already running as per this bug: https://bugs.gentoo.org/show_bug.cgi?id=316817
you can still stop it via: /etc/init.d/dhcpcd stop
and now net-setup will work fine (with regards to DNS).