[Dnsmasq-discuss] could not bind dnsmasq to mutiple interfaces with same ip-address
Simon Kelley
simon at thekelleys.org.uk
Fri May 14 10:01:13 BST 2010
Michael Rack wrote:
> Hi Simon!
>
> I've installed dnsmasq to my new servers i bought. I copied all files
> original as of the old server. But on startup i get this error message:
>> dnsmasq: unknown interface bond5
>
> after removing bond5 i got the following error message:
>> dnsmasq: unknown interface bond4
>
> after removing bond4, dnsmasq startet properly.
>
> The thing is, that every interface become the same ip-address in future.
> The same configuration was already running on my old server, but wont
> run on the new one.
>
>> 5: bond0: <BROADCAST,MULTICAST,MASTER,UP> mtu 1460 qdisc noqueue state
>> UNKNOWN
>> link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
>> inet 81.95.14.97/30 brd 81.95.14.99 scope global bond0
>> 6: bond1: <BROADCAST,MULTICAST,MASTER,UP> mtu 1460 qdisc noqueue state
>> UNKNOWN
>> link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
>> inet 81.95.14.101/30 brd 81.95.14.103 scope global bond1
>> 7: bond2: <BROADCAST,MULTICAST,MASTER,UP> mtu 1460 qdisc noqueue state
>> UNKNOWN
>> link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
>> inet 81.95.14.105/30 brd 81.95.14.107 scope global bond2
>> 8: bond3: <BROADCAST,MULTICAST,MASTER,UP> mtu 1460 qdisc noqueue state
>> UNKNOWN
>> link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
>> inet 91.205.12.0/32 brd 255.255.255.255 scope global bond3
>> 9: bond4: <BROADCAST,MULTICAST,MASTER,UP> mtu 1460 qdisc noqueue state
>> UNKNOWN
>> link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
>> inet 91.205.12.0/32 brd 255.255.255.255 scope global bond4
>> 10: bond5: <BROADCAST,MULTICAST,MASTER,UP> mtu 1460 qdisc noqueue
>> state UNKNOWN
>> link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
>> inet 91.205.12.0/32 brd 255.255.255.255 scope global bond5
>
> The configurationfile looks like the following:
>
>> interface=bond0
>> interface=bond1
>> interface=bond3
>> #interface=bond4
>> #interface=bond5
>> bind-interfaces
>>
>> # PID File
>> pid-file=/var/run/dnsmasq.pid
>>
>> # Konfigurations-Directory einlesen
>> conf-dir=/etc/dnsmasq.d
>
> Can you see the Problem?
More than one interface with the same address is causing confusion. That
seems a very strange thing to do, but commenting out bond4 and bond5
won't cause any problems, dnsmasq will still be listening on 91.205.12.0
Unless there's a good reason, removing "bind-interfaces" will make this
configuration much easier to use.
HTH
Simon.
>
> Liebe Grüße aus Freilassing,
>
> Michael Rack
> RSM Freilassing
More information about the Dnsmasq-discuss
mailing list