failover
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
failover [2023/07/27 20:07] – created bent | failover [2023/07/30 08:08] (current) – bent | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Failover ====== | ====== Failover ====== | ||
- | ISC: [[https:// | + | Setting up failover is fairly straightforward. There are several guides and howtos on the Internet. I used the following: |
+ | |||
+ | ISC: [[https:// | ||
Steven Diver: [[https:// | Steven Diver: [[https:// | ||
+ | Here are the important sections of the respective configuration files. The Main Router has the IP address 192.168.19.1 and the Backup Router has 192.168.19.44. | ||
+ | |||
+ | ===== Main Router (Nounours) ===== | ||
+ | |||
+ | # dhcpd.conf | ||
+ | # | ||
+ | # Configuration file for ISC dhcpd | ||
+ | # | ||
+ | # Configuration of failover | ||
+ | # | ||
+ | failover peer " | ||
+ | | ||
+ | | ||
+ | peer address 192.168.19.44; | ||
+ | | ||
+ | | ||
+ | mclt 3600; | ||
+ | split 128; | ||
+ | load balance max seconds 3; | ||
+ | } | ||
+ | ..... | ||
+ | # Subnet specification for unknown clients, primarily on the WLAN | ||
+ | subnet 192.168.19.0 netmask 255.255.255.0 { | ||
+ | pool { | ||
+ | failover peer " | ||
+ | range 192.168.19.241 192.168.19.253; | ||
+ | } | ||
+ | # .254 is reserved for the ' | ||
+ | } | ||
+ | | ||
+ | # Subnet specification for IOT devices on VLAN 2 | ||
+ | subnet 172.19.2.0 netmask 255.255.255.0 { | ||
+ | pool { | ||
+ | failover peer " | ||
+ | range 172.19.2.10 172.19.2.99; | ||
+ | option domain-name-servers 1.1.1.1; | ||
+ | option ntp-servers 0.dk.pool.ntp.org; | ||
+ | option ntp-servers 1.dk.pool.ntp.org; | ||
+ | } | ||
+ | } | ||
+ | ...... | ||
+ | | ||
+ | ===== Backup Router (Gate-rpi) ===== | ||
+ | |||
+ | The configuration of the Backup Router is almost identical to the Main Router, the difference being the specification of the partner and it not having the line 'split 128'. | ||
+ | |||
+ | # dhcpd.conf | ||
+ | # | ||
+ | # Configuration file for ISC dhcpd | ||
+ | # | ||
+ | # Configuration of failover | ||
+ | # | ||
+ | failover peer " | ||
+ | | ||
+ | | ||
+ | peer address 192.168.19.1; | ||
+ | | ||
+ | | ||
+ | load balance max seconds 3; | ||
+ | } | ||
+ | |
failover.1690488448.txt.gz · Last modified: 2023/07/27 20:07 by bent