[Dnsmasq-discuss] Dnsmasq and bond0

Ryan A. Chapman ryan at rchapman.org
Mon Apr 21 15:08:42 UTC 2014


Hi,

This looks like a bonding issue rather than a dnsmasq issue.  What happens when you remove the bonding config on the host, down all interfaces but one, and unplug all interfaces but one on to the switch?
If that fixes it, then you have a bonding config issue on either the host or switch side.  In order to troubleshoot that, you need "cat /proc/net/bonding/bond0" as well as the port channel and interface configs off the switch.  If it's a Cisco, then it's something like "sh run int port-channelN" as well as each interface in the port-channel "sh run int GigabitEthernetX/Y/Z".

Not sure that everyone on this list is interested in a bonding issue, so I'm happy to help troubleshoot it off list.

Ryan


On Apr 20, 2014, at 6:31 AM, "fa500452 at skynet.be" <fa500452 at skynet.be> wrote:

> Hello everyone,
>  
> I've got some problem with dnsmasq and it seems bond0. I'm not sure this is why I'm asking some help. 
>  
> I'm under gentoo using
> net-dns/dnsmasq-2.66  USE="dbus dhcp idn ipv6 nls tftp -auth-dns -conntrack -dhcp-tools -lua -script (-selinux)" LINGUAS="-de -es -fi -fr -id -it -no -pl -pt_BR -ro" 0 kB
>  
> 3 interfaces : enp1s0, enp7s0 and enp8s0. enps7s0 and enp8s0 are bonded. I used the kernel method. From the kernel documentation ifenslave is "has been".
>  
> Interface seem to work :
>  
> ip a
>  
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
>     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 
>     inet 127.0.0.1/8 brd 127.255.255.255 scope host lo 
>        valid_lft forever preferred_lft forever 
>     inet6 ::1/128 scope host 
>        valid_lft forever preferred_lft forever 
> 2: enp7s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP qlen 1000 
>     link/ether d0:50:99:0a:63:05 brd ff:ff:ff:ff:ff:ff 
> 3: enp8s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP qlen 1000 
>     link/ether d0:50:99:0a:63:05 brd ff:ff:ff:ff:ff:ff 
> 4: sit0: <NOARP> mtu 1480 qdisc noop state DOWN 
>     link/sit 0.0.0.0 brd 0.0.0.0 
> 5: ip6tnl0: <NOARP> mtu 1452 qdisc noop state DOWN 
>     link/tunnel6 :: brd :: 
> 6: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 
>     link/ether 64:66:b3:02:3c:91 brd ff:ff:ff:ff:ff:ff 
>     inet 192.168.2.2/24 brd 192.168.2.255 scope global enp1s0 
>        valid_lft forever preferred_lft forever 
>     inet6 fe80::6666:b3ff:fe02:3c91/64 scope link 
>        valid_lft forever preferred_lft forever 
> 9: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP 
>     link/ether d0:50:99:0a:63:05 brd ff:ff:ff:ff:ff:ff 
>     inet 10.0.0.1/8 brd 10.0.0.255 scope global bond0 
>        valid_lft forever preferred_lft forever 
>     inet6 fe80::d250:99ff:fe0a:6305/64 scope link 
>        valid_lft forever preferred_lft forever
>  
> dnsmasq.conf
> domain-needed 
> bogus-priv 
> filterwin2k 
> bridge-interface=bond0,enp7s0,enp8s0 
> interface=bond0 
> expand-hosts 
> domain=arcade.lan 
> resolv-file=/etc/resolv.dnsmasq.conf 
> listen-address=127.0.0.1 
> listen-address=10.0.0.1 
> dhcp-range=10.0.0.1,10.0.0.50,72h 
> dhcp-host=bc:5f:f4:fe:10:26,infinite 
> dhcp-host=outrun,10.0.0.10 
> dhcp-host=00:26:b0:e6:31:30,10.0.0.12 
> dhcp-host=WDTVLive,10.0.0.40 
> dhcp-host=00:14:38:d4:c4:21,printer,10.0.0.45 
> dhcp-host=00:22:6b:f7:1c:eb,camera,10.0.0.46 
> dhcp-host=90:f6:52:75:d8:70,10.0.0.49,infinite 
> dhcp-host=10:fe:ed:ff:f9:4e,10.0.0.50,infinite 
> dhcp-option=3,10.0.0.1 
> dhcp-option=6,208.67.222.222,8.8.8.8 
> dhcp-option=66,"10.0.0.1" 
> dhcp-option=67,syslinux.efi 
> dhcp-option=128,10.0.0.1 
> #dhcp-option-force=211,30i 
> pxe-service=x86PC, "Launch PXE_BIOS", pxelinux, 10.0.0.1 
> pxe-service=X86-64_EFI, "Launch PXE-UEFI", syslinux, 10.0.0.1 
> dhcp-option=42,0.0.0.0 
> dhcp-option=19,0           # option ip-forwarding off 
> dhcp-option=44,0.0.0.0     # set netbios-over-TCP/IP nameserver(s) aka WINS server(s) 
> dhcp-option=45,0.0.0. 0    # netbios datagram distribution server 
> dhcp-option=46,8           # netbios node type 
> dhcp-option=47 
> dhcp-match=mactels, option:client-arch, 7 #EFI x86-64 
> tftp-root=/tftproot/ 
> tftp-lowercase 
> dhcp-leasefile=/var/lib/misc/dnsmasq.leases 
> server=/www.google.com/8.8.8.8 
> bogus-nxdomain=64.94.110.11
>  
> As you can see, I've already tried the solution bridge-interface=bond0,enp7s0,enp8s0.
>  
> I've got no dhcp response for my client.
>  
> Thanks. Best regards.
>  
> Happy easter.
>  
> _______________________________________________
> 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