DHCP and zeroconf?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: DHCP and zeroconf?

Post by bluemoon »

Candy wrote:Or, you can load-balance the two cards and use both for improved performance!
Not without supporting that at the other end as well; it's called bonding and requires you to set that up on both sides.
For simplest case of just "pick a interface for new connection" (with balance-rr or balance-xor), it does not require any setting on the other end, as if there were two computers.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re: DHCP and zeroconf?

Post by Candy »

bluemoon wrote:For simplest case of just "pick a interface for new connection" (with balance-rr or balance-xor), it does not require any setting on the other end, as if there were two computers.
TIL. Still, it requires you to at least correctly guess that they go to the same internet. I don't think I want to guess that for a user so for now I'll postpone bonding.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: DHCP and zeroconf?

Post by Combuster »

Well, loadbalancing or failovers on the client's end is already advantageous if you mix for instance a wifi and a wired connection. Wired is of course generally better, but if you have one of those cheap-@$$ routers your link goes down once in a while after which you want to use the packet loss as an indicator for switching networks.

Of course, if you can't detect the presence of a plugged-in cable, the situation is even easier to create,
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
FallenAvatar
Member
Member
Posts: 283
Joined: Mon Jan 03, 2011 6:58 pm

Re: DHCP and zeroconf?

Post by FallenAvatar »

Candy wrote:
tjmonk15 wrote:...
Yeah... I'm trying to get it working well for logical setups and not fail too badly for bad setups.

This doesn't account for the gateway / dns part of it. What happens if you have two DNS servers and two gateways for "other" traffic? That pretty much implies that the "subnet" is identical; both claim to map the entire internet, so every two cards would boil down to #3.

...
Just pick a default card for "internet" access. And that in no way implies the subnets are identical, subnets are used to describe what is "intranet" vs "internet". You could have one card whose subnet is 192.168.0.0, and another that is 10.0.0.0.

Likely, only one of those cards will actually have internet access. You could pick a default randomly, try to hit something on the internet, wait, and if it fails change the default to the other card.

- Monk
Post Reply