xref: /minix3/external/bsd/dhcp/dist/tests/failover/dhcp-1.cf (revision 83ee113ee0d94f3844d44065af2311604e9a30ad)
1authoritative;
2
3class "even" {
4  match if ((extract-int (suffix
5			  (pick-first-value (option dhcp-client-identifier,
6					     hardware), 1), 8) % 2) = 0);
7}
8class "odd" {
9  match if ((extract-int (suffix
10			  (pick-first-value (option dhcp-client-identifier,
11					     hardware), 1), 8) % 2) = 1);
12}
13
14lease-file-name "dhcp-1.leases";
15pid-file-name "dhcp-1.pid";
16ddns-update-style none;
17local-port 50002;
18remote-port 50003;
19omapi-port 50004;
20omapi-key FOO;
21
22default-lease-time 600;
23max-lease-time 600;
24
25failover peer "foo" {
26  primary;
27  address 10.0.0.1;
28  port 51000;
29  peer address 10.0.0.1;
30  peer port 51001;
31  max-response-delay 60;
32  max-unacked-updates 10;
33  mclt 100;
34  hba ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:
35      00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00;
36  load balance max seconds 2;
37}
38
39option space SUNW;
40option SUNW.root-mount-options code 1 = text;
41option SUNW.root-server-ip-address code 2 = ip-address;
42option SUNW.root-server-hostname code 3 = text;
43option SUNW.root-path-name code 4 = text;
44option SUNW.swap-server-ip-address code 5 = ip-address;
45option SUNW.swap-file-path code 6 = text;
46option SUNW.boot-file-path code 7 = text;
47option SUNW.posix-timezone-string code 8 = text;
48option SUNW.boot-read-size code 9 = unsigned integer 16;
49option SUNW.install-server-ip-address code 10 = ip-address;
50option SUNW.install-server-hostname code 11 = text;
51option SUNW.install-path code 12 = text;
52option SUNW.sysid-config-file-server code 13 = text;
53option SUNW.JumpStart-server code 14 = text;
54option SUNW.terminal-name code 15 = text;
55
56class "solaris-i86pc" {
57  match if option vendor-class-identifier = "SUNW.i86pc";
58  vendor-option-space SUNW;
59  option SUNW.boot-file-path "/platform/i86pc/kernel/unix";
60  option SUNW.root-path-name "/export/root/i86pc";
61}
62
63class "solaris-sun4u" {
64  match if option vendor-class-identifier = "SUNW.Ultra-5_10";
65  vendor-option-space SUNW;
66  option SUNW.install-path "/export/2/s581_sparc";
67  option SUNW.root-path-name "/export/2/s581_sparc/Solaris_8/Tools/Boot";
68}
69
70option domain-name "connectathon.org.";
71option SUNW.root-server-ip-address 172.16.113.1;
72option SUNW.root-server-hostname "sundhcp-server17-1";
73
74class "sniffer" {
75  match if option host-name = "sniffer";
76}
77
78key FOO {
79  algorithm HMAC-MD5.SIG-ALG.REG.INT;
80  secret ABCD;
81}
82
83zone BISBEE.FUGUE.COM. {
84  primary 127.0.0.1;
85  key FOO;
86}
87
88zone 17.127.10.in-addr.arpa. {
89  primary 127.0.0.1;
90  key FOO;
91}
92
93zone 0.0.10.in-addr.arpa. {
94  primary 127.0.0.1;
95  key FOO;
96}
97
98subnet 204.152.186.128 netmask 255.255.255.192 {
99  not authoritative;
100}
101
102shared-network LOCAL {
103  subnet 127.0.0.0 netmask 255.255.255.0 {
104  }
105  subnet 10.0.2.0 netmask 255.255.255.0 {
106    pool {
107      deny dynamic bootp clients;
108      failover peer "foo";
109      range 10.0.2.100 10.0.2.200;
110    }
111  }
112}
113
114shared-network NET-187 {
115  subnet 204.152.187.0 netmask 255.255.255.0 {
116  }
117  subnet 205.140.116.224 netmask 255.255.255.248 {
118  }
119  subnet 10.0.1.0 netmask 255.255.255.0 {
120    pool {
121      deny dynamic bootp clients;
122      failover peer "foo";
123      range 10.0.1.10 10.0.1.200;
124    }
125  }
126}
127
128subnet 10.0.0.0 netmask 255.255.255.0 {
129  pool {
130    deny dynamic bootp clients;
131    allow members of "even";
132    option impress-servers 10.0.0.0;
133    failover peer "foo";
134    range 10.0.0.10 10.0.0.54;
135    range 10.0.0.100 10.0.0.149;
136  }
137  pool {
138    deny dynamic bootp clients;
139    allow members of "odd";
140    failover peer "foo";
141    option impress-servers 10.0.0.1;
142    range 10.0.0.55 10.0.0.99;
143    range 10.0.0.150 10.0.0.200;
144  }
145  pool {
146    deny dynamic bootp clients;
147    allow members of "sniffer";
148    failover peer "foo";
149    range 10.0.0.9 10.0.0.9;
150  }
151  option routers 10.0.0.1;
152  option domain-name "bisbee.fugue.com";
153  option domain-name-servers 10.0.0.1;
154}
155