User Tools

Site Tools


redundant_routers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
redundant_routers [2023/10/20 19:20] bentredundant_routers [2023/10/23 18:56] (current) bent
Line 7: Line 7:
 Nounours is the chosen master router since it has the best connection to the Internet. Gate-rpi is then the backup router. Configuration is done following the guidelines on the [[https://wiki.archlinux.org/title/Keepalived|ArchLinux Wiki]]. Nounours is the chosen master router since it has the best connection to the Internet. Gate-rpi is then the backup router. Configuration is done following the guidelines on the [[https://wiki.archlinux.org/title/Keepalived|ArchLinux Wiki]].
  
-The switch between master and backup is only done when the backup has a higher priority than the (previous) master. If Nounours goes down this happens automatically, but mishaps further 'up' in the system,e.g fiber break, cable break etc, are not detected ny Nounours. The dilemma is solved by using the monitoring capablilties of keepalived. In this case I use the  [[https://www.redhat.com/sysadmin/advanced-keepalived|'Track script']] facility where I let a script ping the upstream router every so often and when/if the upstream router doesn't reply the priority is lowered to cause a switch-over. See the configuration file for details.+The switch between master and backup is only done when the backup has a higher priority than the (previous) master. If Nounours goes down this happens automatically, but mishaps further 'up' in the system,e.g fiber break, cable break etc, are not detected ny Nounours. The dilemma is solved by using the monitoring capablilties of keepalived. In this case I use the  [[https://www.redhat.com/sysadmin/advanced-keepalived|'Track script']] facility where I let a script ping the upstream router every so often and when/if the upstream router doesn't reply the router enters the fault state. See the configuration file for details.
  
 Here are the configurations files. On both routers they may be found at /etc/keepalive/keepelive.conf. Here are the configurations files. On both routers they may be found at /etc/keepalive/keepelive.conf.
Line 21: Line 21:
    smtp_connect_timeout 30    smtp_connect_timeout 30
    router_id ROUTER1    router_id ROUTER1
 +   script_user bent
 +   enable_script_security
 +
   }   }
   vrrp_script keepalived_check {   vrrp_script keepalived_check {
redundant_routers.1697829626.txt.gz · Last modified: 2023/10/20 19:20 by bent