public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] dhcpcd + bonding problem
@ 2013-04-03  8:04 Александр Тумаров
  2013-04-03 11:07 ` J. Roeleveld
  0 siblings, 1 reply; 2+ messages in thread
From: Александр Тумаров @ 2013-04-03  8:04 UTC (permalink / raw
  To: gentoo-user

Some time ago I upgraded openrc and dhcpcd, after this upgrade I face next 
problem:

/etc/conf.d/net has next content
config_bond0="dhcp"
config_eth0="null"
slaves_eth0="eth0"

For some reason dhcpcd runs on both bond0 and eth0 assigning the same address 
to both and of course I have double entries in routing table leading to 
unusable network.
The only way to keep dhcpcd running on eth0 is to add denyinterfaces=eth* to 
/etc/dhcpcd config.

dhcpcd does ethernet interfaces discovery and automatically run for any one of 
them that has carrier. Should config_eth0="null" preventdhcpcd from dealing 
with eth0?
Also additional observation: dhcpcd does not create /var/run/dhcpcd-bond0.pid. 
The only thing that is created is /var/run/dhcpcd.pid (without iface name).
I do not know if this is important or not
Versions:
openrc is 0.11.8
dhcpcd is 5.6.4

So the question Is if this is expectable behaviour or is this a bug in 
initialization system?

Best regards,
Alexander.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] dhcpcd + bonding problem
  2013-04-03  8:04 [gentoo-user] dhcpcd + bonding problem Александр Тумаров
@ 2013-04-03 11:07 ` J. Roeleveld
  0 siblings, 0 replies; 2+ messages in thread
From: J. Roeleveld @ 2013-04-03 11:07 UTC (permalink / raw
  To: gentoo-user

On Wed, April 3, 2013 10:04, Александр Тумаров wrote:
> Some time ago I upgraded openrc and dhcpcd, after this upgrade I face next
> problem:
>
> /etc/conf.d/net has next content
> config_bond0="dhcp"
> config_eth0="null"
> slaves_eth0="eth0"

this should be:
slaves_bond0="eth0"

and you also might want to add:
rc_net_bond0_need="net.eth0"

> For some reason dhcpcd runs on both bond0 and eth0 assigning the same
> address
> to both and of course I have double entries in routing table leading to
> unusable network.
> The only way to keep dhcpcd running on eth0 is to add denyinterfaces=eth*
> to
> /etc/dhcpcd config.
>
> dhcpcd does ethernet interfaces discovery and automatically run for any
> one of
> them that has carrier. Should config_eth0="null" preventdhcpcd from
> dealing
> with eth0?
> Also additional observation: dhcpcd does not create
> /var/run/dhcpcd-bond0.pid.
> The only thing that is created is /var/run/dhcpcd.pid (without iface
> name).
> I do not know if this is important or not
> Versions:
> openrc is 0.11.8
> dhcpcd is 5.6.4
>
> So the question Is if this is expectable behaviour or is this a bug in
> initialization system?

I don't myself use DHCP on a bonded interface, but I do use a bonded
interface for 4 NICs.

--
Joost



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-03 11:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-03  8:04 [gentoo-user] dhcpcd + bonding problem Александр Тумаров
2013-04-03 11:07 ` J. Roeleveld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox