Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 854609

Summary: net-misc/netifrc: netifrc have the ability to start dhcpcd with --inactive before it's called in any net.xxx
Product: Gentoo Linux Reporter: Jonathan Plews <pl3w5y>
Component: Current packagesAssignee: netifrc Team <netifrc>
Status: UNCONFIRMED ---    
Severity: normal CC: base-system, williamh
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jonathan Plews 2022-06-27 15:50:19 UTC
Hi,

When bringing up eth0 via netifrc+dhcpcd other interfaces are also configured automatically with a persistent address that doesn't go away after stopping eth0, which does loose it's address correctly due to -x being used.




Reproducible: Always

Steps to Reproduce:
1. rc-service net.eth0 start
2. bring another network interface up

Actual Results:  
the interface with no explicit config or symlink is configured

Expected Results:  
the interface with no explicit config or symlink is not configured
Comment 1 Mike Gilbert gentoo-dev 2022-06-27 16:02:44 UTC
That doesn't sound right.

When invoked for a specific interface, dhcpcd should not alter the configuration for any other interface.

Passing --allow-interfaces should be unnecessary.
Comment 2 Jonathan Plews 2022-06-27 18:33:10 UTC
I'm messing around with this system too much and shouldn't have been so hasty, sorry for wasting your time.
Comment 3 Jonathan Plews 2022-06-28 09:17:31 UTC
Morning, I found out what was happening.

The problem was netmount starting dhcpcd when no interfaces are in any runlevel, 

I'll make a 'netifrc-dhcpcd' init script that runs with --inactive and see how that goes.


Regards

Jonathan
Comment 4 Jonathan Plews 2022-06-29 15:53:39 UTC
Eventually the problem seems to be down to dhcpcd providing net, without any condition for situations when it should provide dhcp instead.

The combination of 'net.dhcp' that has '-qq --inactive' and changing dhcpcd's provides seems to work, but potentially I'm wasting lots of time (other than the learning) so just wanted to change the title and record thinking before moving on.

Regards