BIRD Setup for B.A.T.M.A.N. Advanced network.
Network description (simplest form) Two internet gateways GW1: 192.168.30.1/24, DHCP Range 192.168.30.10 ... 192.168.30.39 GW2: 192.168.30.2/24, DHCP Range 192.168.30.40... 192.168.30.70 Both GWs are connected to internet, and are running DNSMasq Client: does a DHCP Request, happens to get 192.168.30.56 , so from GW2 Failure scenarios - GW2 goes down fully - Upstream internet link to GW2 is severed Can BIRD be used to deal with this, i.e. for example have a script / bird ping some known Internet DNS servers, like Google's 8.8.8.8 and 8.8.4.4 and force the client to switch over to GW1 to get a valid internet connection again as fast as possible? For simplicity, I'm looking at RIPv2 - network is small enough, or should I use OSPF? I'm looking for some suggestions/recommendations... Maurice
On Wed, Jul 21, 2021 at 04:48:53PM -0600, Maurice Smulders wrote:
Network description (simplest form) Two internet gateways GW1: 192.168.30.1/24, DHCP Range 192.168.30.10 ... 192.168.30.39 GW2: 192.168.30.2/24, DHCP Range 192.168.30.40... 192.168.30.70
Both GWs are connected to internet, and are running DNSMasq
Client: does a DHCP Request, happens to get 192.168.30.56 , so from GW2
Failure scenarios - GW2 goes down fully - Upstream internet link to GW2 is severed
Can BIRD be used to deal with this, i.e. for example have a script / bird ping some known Internet DNS servers, like Google's 8.8.8.8 and 8.8.4.4 and force the client to switch over to GW1 to get a valid internet connection again as fast as possible?
For simplicity, I'm looking at RIPv2 - network is small enough, or should I use OSPF?
Hi If you want to have two redundant gateways facing to users, then you probably need VRRP to migrate 'gateway address' and use one shared DHCP range. I think that this setup is simple enough that would not profit much from BIRD, you would need some scripts to detect upstream failure anyways (unless your upstream would allow BFD or some routing protocol supported by BIRD). -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
What about using some FHRP like VRRP/HSRP/CARP, etc? On host you can influence the priority of the active router via priority by using a script, IP-SLA, track ,etc... -- inoc.net!rblayzor XMPP: rblayzor.AT.inoc.net PGP: https://pgp.inoc.net/rblayzor/ On 7/21/21 6:48 PM, Maurice Smulders wrote:
Can BIRD be used to deal with this, i.e. for example have a script / bird ping some known Internet DNS servers, like Google's 8.8.8.8 and 8.8.4.4 and force the client to switch over to GW1 to get a valid internet connection again as fast as possible?
For simplicity, I'm looking at RIPv2 - network is small enough, or should I use OSPF?
participants (3)
-
Maurice Smulders -
Ondrej Zajicek -
Robert Blayzor