summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/dhcp/backup.conf37
-rw-r--r--etc/dhcp/common.conf9
-rw-r--r--etc/dhcp/network.conf26
-rw-r--r--etc/dhcp/primary.conf37
4 files changed, 39 insertions, 70 deletions
diff --git a/etc/dhcp/backup.conf b/etc/dhcp/backup.conf
index 5509399..a2895e5 100644
--- a/etc/dhcp/backup.conf
+++ b/etc/dhcp/backup.conf
@@ -1,12 +1,4 @@
-option domain-name "random.lan";
-option domain-name-servers virtualip.random.lan, 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;
-option local-proxy-config code 252 = text;
-default-lease-time 172800;
-max-lease-time 172800;
-ddns-update-style interim;
+include "/etc/dhcp/common.conf";
failover peer "randomlan" {
secondary;
@@ -20,29 +12,4 @@ failover peer "randomlan" {
load balance max seconds 3;
}
-host ps3 {
- hardware ethernet 00:1d:0d:f8:a5:80;
- option domain-name-servers 8.8.8.8, 8.8.4.4;
-}
-
-subnet 10.10.0.0 netmask 255.255.0.0 {
- pool {
- failover peer "randomlan";
- range 10.10.1.1 10.10.1.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;
- }
- option local-proxy-config "http://wpad.random.lan/wpad.dat";
-}
+include "/etc/dhcp/network.conf";
diff --git a/etc/dhcp/common.conf b/etc/dhcp/common.conf
new file mode 100644
index 0000000..a8946f0
--- /dev/null
+++ b/etc/dhcp/common.conf
@@ -0,0 +1,9 @@
+option domain-name "random.lan";
+option domain-name-servers virtualip.random.lan, 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;
+option local-proxy-config code 252 = text;
+default-lease-time 172800;
+max-lease-time 172800;
+ddns-update-style interim;
diff --git a/etc/dhcp/network.conf b/etc/dhcp/network.conf
new file mode 100644
index 0000000..40e23a3
--- /dev/null
+++ b/etc/dhcp/network.conf
@@ -0,0 +1,26 @@
+host ps3 {
+ hardware ethernet 00:1d:0d:f8:a5:80;
+ option domain-name-servers 8.8.8.8, 8.8.4.4;
+}
+
+subnet 10.10.0.0 netmask 255.255.0.0 {
+ pool {
+ failover peer "randomlan";
+ range 10.10.1.1 10.10.1.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;
+ }
+ option local-proxy-config "http://wpad.random.lan/wpad.dat";
+}
diff --git a/etc/dhcp/primary.conf b/etc/dhcp/primary.conf
index 8769ee1..ce316f7 100644
--- a/etc/dhcp/primary.conf
+++ b/etc/dhcp/primary.conf
@@ -1,12 +1,4 @@
-option domain-name "random.lan";
-option domain-name-servers virtualip.random.lan, 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;
-option local-proxy-config code 252 = text;
-default-lease-time 172800;
-max-lease-time 172800;
-ddns-update-style interim;
+include "/etc/dhcp/common.conf";
failover peer "randomlan" {
primary;
@@ -21,29 +13,4 @@ failover peer "randomlan" {
load balance max seconds 3;
}
-host ps3 {
- hardware ethernet 00:1d:0d:f8:a5:80;
- option domain-name-servers 8.8.8.8, 8.8.4.4;
-}
-
-subnet 10.10.0.0 netmask 255.255.0.0 {
- pool {
- failover peer "randomlan";
- range 10.10.1.1 10.10.1.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;
- }
- option local-proxy-config "http://wpad.random.lan/wpad.dat";
-}
+include "/etc/dhcp/network.conf";