dhcpcd-discuss

Re: Re: Question about bonding

Dallas Clement

Wed Dec 14 16:12:01 2011

> I would guess your OS is starting dhcpcd on all interfaces unless instructed

It's just running dhcpcd on the bond interfaces:

root@bubba:~# ps | grep dhcp
 9144 root       6224 S   grep dhcp
13902 root       4976 S   /sbin/dhcpcd -b -d -h TS-2RVED8 -t 15 bond0
13975 root       4976 S   /sbin/dhcpcd -b -d -h TS-2RVED8 -G -C
resolv.conf -t 15 bond1

However, as you can see the slave interfaces are getting configured by
the instance running on the bond interface, which I don't want.  They
are given the same IP address as the bond interface.

root@bubba:~# ip address show
1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,10800> mtu 1500 qdisc pfifo_fast
master bond0 qlen 1000
    link/ether cc:52:af:ea:7e:d8 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.142/23 brd 192.168.1.255 scope global eth0
3: eth1: <BROADCAST,MULTICAST,UP,10800> mtu 1500 qdisc pfifo_fast
master bond0 qlen 1000
    link/ether cc:52:af:ea:7e:d8 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.142/23 brd 192.168.1.255 scope global eth1
4: eth2: <BROADCAST,MULTICAST,UP,10800> mtu 1500 qdisc pfifo_fast
master bond1 qlen 1000
    link/ether cc:52:af:ea:7e:da brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.132/23 brd 192.168.1.255 scope global eth2
5: eth3: <BROADCAST,MULTICAST,UP,10800> mtu 1500 qdisc pfifo_fast
master bond1 qlen 1000
    link/ether cc:52:af:ea:7e:da brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.132/23 brd 192.168.1.255 scope global eth3
14: bond0: <BROADCAST,MULTICAST,UP,10400> mtu 1500 qdisc noqueue
    link/ether cc:52:af:ea:7e:d8 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.142/23 brd 192.168.1.255 scope global bond0
15: bond1: <BROADCAST,MULTICAST,UP,10400> mtu 1500 qdisc noqueue
    link/ether cc:52:af:ea:7e:da brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.132/23 brd 192.168.1.255 scope global bond1

I was able to overcome this by using the -Z, --denyinterfaces option,
i.e.  -Z eth? when starting an instance of dhcpcd for a bond
interface.

Haven't tried consolidating to one instance of dhcpcd and use of the
dhcpcd.conf file yet.

Thanks for the help.

References:
Question about bondingDallas Clement
Re: Question about bondingDallas Clement
Re: Re: Question about bondingRoy Marples
Archive administrator: postmaster@marples.name