[Dnsmasq-discuss] Dnsmasq and bonded interfaces

Eric Thibodeau kyron at neuralbs.com
Tue Jun 9 20:02:16 BST 2009


I fixed my issue but I am still sending in what I was about to send (so if anyone else
hits this wall...)

The problem was that I had forgotten to install ifenslave (gentoo package). The bond0
interface would come up and I hadn't noticed that the MAC address was NULL.

So, all that is needed is a properly configured bonding interface and
 bridge-interface=bond0,eth1,eth2
in the config file.

Now I can play with the aggregation scheme to try to get all to go faster ;)

###################################### Description of the symptoms ##############
Here is some additional info:

I am getting further with the following setup:
force at least one of the eth devices part of the bond to be up:

 ifconfig eth1 up
 ifconfig eth2 up

Put the following in dnsmasq.conf:

  bridge-interface=bond0,eth1,eth2

Now, dnsmasq does respond to the request through bond0 as the following log shows. This
is telling me dnsmasq gets it but, sniffing bond0 with wireshark doesn't show any
traffic on the interface (note that locally pingning the bond0's IP doesn't show up in
wireshark either O_o...)

Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 Available DHCP range: 192.168.0.2 --
192.168.0.254
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 Vendor class:
PXEClient:Arch:00000:UNDI:002001
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 DHCPDISCOVER(bond0) 00:1d:60:39:f7:e2
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 DHCPOFFER(bond0) 192.168.0.168
00:1d:60:39:f7:e2
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 requested options: 1:netmask,
2:time-offset, 3:router, 5, 6:dns-server,
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 requested options: 11, 12:hostname,
13:boot-file-size, 15:domain-name,
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 requested options: 16:swap-server,
17:root-path, 18:extension-path,
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 requested options: 43:vendor-encap,
54:server-identifier, 60:vendor-class,
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 requested options: 67:bootfile-name,
128, 129, 130, 131, 132,
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 requested options: 133, 134, 135
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 tags: nodes, known, bond0
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 server name: h2
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 next server: 192.168.0.1
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size:  1 option: 53:message-type  02
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size:  4 option:
54:server-identifier  192.168.0.1
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size:  4 option: 51:lease-time 
00:00:a8:c0
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size:  4 option: 58:T1  00:00:54:60
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size:  4 option: 59:T2  00:00:93:a8
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size: 21 option: 67:bootfile-name 
2f:74:66:74:70:72:6f:6f:74:2f:70:78:65...
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size:  4 option:  1:netmask 
255.255.255.0
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size:  4 option: 28:broadcast 
192.168.0.255
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size:  4 option:  6:dns-server 
192.168.0.1
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size:  6 option: 12:hostname  node01
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size: 36 option: 17:root-path 
31:39:32:2e:31:36:38:2e:30:2e:31:3a:2f...
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size:  4 option:  3:router 
192.168.0.1
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size: 12 option: 15:domain-name 
gentoo.local
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size:  9 option: 60:vendor-class 
50:58:45:43:6c:69:65:6e:74
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size: 17 option:
97:client-machine-id  00:c0:93:e4:81:8d:fe:d5:11:9e:c5:00:1d...
Jun  9 14:22:09 dnsmasq-dhcp[19223]: 1631188962 sent size: 10 option: 43:vendor-encap 
06:01:08:0a:04:00:50:58:45:ff


> Hello all,
>
>    I am attempting to use two bonded interfaces, (bond0,balance-alb) under linux, on my
> cluster but it would seem the dhcp (+tftp/pxe) requests never get to the dnsmasq. I
> have tried a combination of the following options to no avail (installed 2.48):
>
> listen-address=192.168.0.1
> interface=eth1
> interface=eth2
> interface=bond0
>
>     I get warnings that eth1 and eth2 don't actually exist but that's expected (my
> desperate attempts). I will regress to having a single link to the cluster for the
> moment until I get that sorted out. So if anyone has any experience in such a setup,
> I'd greatly appreciate it.
>
> Thanks,
>
> Eric Thibodeau
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>






More information about the Dnsmasq-discuss mailing list