List Info

Thread: multiple network interfaces




multiple network interfaces
country flaguser name
Canada
2007-11-05 18:09:15
Is it possible to have avahi work on multiple ethernet
ports?

I'd like to be able to have redundant physical connections
between a  
system and a switch - each ethernet port would have its own
zeroconf  
ip address, and avahi would respond on all ports with the
same name...

So someone doing a gethostbyname() would get multiple A
records for  
the same name, and be able to connect() to any of them. If
one  
connection goes down, a reconnect would go to one of the
other ip  
addresses.

Regards,
Jeff Koftinoff
jeffkjdkoftinoff.com


_______________________________________________
avahi mailing list
avahilists.freedesktop.org
h
ttp://lists.freedesktop.org/mailman/listinfo/avahi

Re: multiple network interfaces
country flaguser name
United States
2007-11-06 11:37:25
Could you setup channel bonding (both eth0 and eth1 into
bond0) and  
then run avahi over bond0? There would only be one IP
address then,  
assigned to bond0, and the link layer switching would be
handled by  
the OS below the IP address level.


On Nov 5, 2007, at 7:09 PM, Jeff Koftinoff wrote:

> Is it possible to have avahi work on multiple ethernet
ports?
>
> I'd like to be able to have redundant physical
connections between a
> system and a switch - each ethernet port would have its
own zeroconf
> ip address, and avahi would respond on all ports with
the same name...
>
> So someone doing a gethostbyname() would get multiple A
records for
> the same name, and be able to connect() to any of them.
If one
> connection goes down, a reconnect would go to one of
the other ip
> addresses.
>
> Regards,
> Jeff Koftinoff
> jeffkjdkoftinoff.com
>
>
> _______________________________________________
> avahi mailing list
> avahilists.freedesktop.org
> h
ttp://lists.freedesktop.org/mailman/listinfo/avahi
>

-- 
Joshua ChaitinPollak
Software Engineer
Kiva Systems


_______________________________________________
avahi mailing list
avahilists.freedesktop.org
h
ttp://lists.freedesktop.org/mailman/listinfo/avahi

Re: multiple network interfaces
country flaguser name
Germany
2007-11-06 12:53:09
On Mon, 05.11.07 16:09, Jeff Koftinoff (jeffkjdkoftinoff.com) wrote:

> Is it possible to have avahi work on multiple ethernet
ports?
> 
> I'd like to be able to have redundant physical
connections between a  
> system and a switch - each ethernet port would have its
own zeroconf  
> ip address, and avahi would respond on all ports with
the same
> name...

That's the default behaviour of Avahi.

> So someone doing a gethostbyname() would get multiple A
records for  
> the same name, and be able to connect() to any of them.
If one  
> connection goes down, a reconnect would go to one of
the other ip  
> addresses.

If you do a gethostbyname() right now it's not deterministic
which A
you would get, but you'd get exactly one.

Please note however, that mDNS/DNS-SD is not a reliable
protocol. It's
not intended do be used for HA solutions.

Also, RRs take quite a time to timeout by default in Avahi.
So if you
just pull a cable it might take a while until Avahi removes
old
entries from its cache.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lenn
art/           GnuPG 0x1A015CC4
_______________________________________________
avahi mailing list
avahilists.freedesktop.org
h
ttp://lists.freedesktop.org/mailman/listinfo/avahi

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )