diff options
Diffstat (limited to 'etc/dhcp')
-rw-r--r-- | etc/dhcp/backup.conf | 47 | ||||
-rw-r--r-- | etc/dhcp/primary.conf | 56 |
2 files changed, 84 insertions, 19 deletions
diff --git a/etc/dhcp/backup.conf b/etc/dhcp/backup.conf new file mode 100644 index 0000000..6d543aa --- /dev/null +++ b/etc/dhcp/backup.conf @@ -0,0 +1,47 @@ +option domain-name "random.lan"; +option domain-name-servers dns1.random.lan, dns2.random.lan; +option ntp-servers firebrand.random.lan, defiant.random.lan; +option smtp-server smtp.random.lan; +option routers gateway.random.lan; +default-lease-time 172800; +max-lease-time 172800; +ddns-update-style interim; + +failover peer "foo" { + secondary; + address defiant.random.lan; + port 519; + peer address firebrand.random.lan; + peer port 519; + max-response-delay 60; + max-unacked-updates 10; + mclt 3600; + load balance max seconds 3; +} + +host ps3 { + hardware ethernet 00:1d:0d:f8:a5:80; + fixed-address 10.10.0.4; + option domain-name-servers 8.8.8.8, 8.8.4.4; +} + +subnet 10.10.0.0 netmask 255.255.255.0 { + pool { + failover peer "foo"; + range 10.10.0.128 10.10.0.254; + } + + key updatekey { + algorithm hmac-md5; + secret "df61eb0aa23833c56751a6c8f579f695"; + } + + zone 10.10.in-addr.arpa { + primary dns1.random.lan; + key updatekey; + } + zone random.lan { + primary dns1.random.lan; + key updatekey; + } +} diff --git a/etc/dhcp/primary.conf b/etc/dhcp/primary.conf index ac9f31e..69458ee 100644 --- a/etc/dhcp/primary.conf +++ b/etc/dhcp/primary.conf @@ -1,30 +1,48 @@ option domain-name "random.lan"; option domain-name-servers dns1.random.lan, dns2.random.lan; +option ntp-servers firebrand.random.lan, defiant.random.lan; +option smtp-server smtp.random.lan; option routers gateway.random.lan; -default-lease-time 7200; -max-lease-time 7200; +default-lease-time 172800; +max-lease-time 172800; ddns-update-style interim; -subnet 192.168.0.0 netmask 255.255.255.0 { - range 192.168.0.100 192.168.0.250; +failover peer "foo" { + primary; + address firebrand.random.lan; + port 519; + peer address defiant.random.lan; + peer port 519; + max-response-delay 60; + max-unacked-updates 10; + mclt 3600; + split 64; + load balance max seconds 3; } -host defiant { - hardware ethernet 00:30:84:9E:B1:73; - fixed-address 192.168.0.2; +host ps3 { + hardware ethernet 00:1d:0d:f8:a5:80; + fixed-address 10.10.0.4; + option domain-name-servers 8.8.8.8, 8.8.4.4; } -key updatekey { - algorithm hmac-md5; - secret "df61eb0aa23833c56751a6c8f579f695"; -}; +subnet 10.10.0.0 netmask 255.255.255.0 { + pool { + failover peer "foo"; + range 10.10.0.128 10.10.0.254; + } -zone 0.168.192.in-addr.arpa. { - primary dns1.random.lan; - key updatekey; -} -zone random.lan. { - primary dns1.random.lan; - key updatekey; -} + key updatekey { + algorithm hmac-md5; + secret "df61eb0aa23833c56751a6c8f579f695"; + } + zone 10.10.in-addr.arpa { + primary dns1.random.lan; + key updatekey; + } + zone random.lan { + primary dns1.random.lan; + key updatekey; + } +} |