Merge from vendor branch BINUTILS:
[dragonfly.git] / contrib / isc-dhcp / tests / failover / dhcp-1.cf
1 authoritative;
2
3 class "even" {
4   match if ((extract-int (suffix
5                           (pick-first-value (option dhcp-client-identifier,
6                                              hardware), 1), 8) % 2) = 0);
7 }
8 class "odd" {
9   match if ((extract-int (suffix
10                           (pick-first-value (option dhcp-client-identifier,
11                                              hardware), 1), 8) % 2) = 1);
12 }
13
14 lease-file-name "dhcp-1.leases";
15 pid-file-name "dhcp-1.pid";
16 ddns-update-style none;
17 local-port 50002;
18 remote-port 50003;
19 omapi-port 50004;
20 omapi-key FOO;
21
22 default-lease-time 600;
23 max-lease-time 600;
24
25 failover 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
39 option space SUNW;
40 option SUNW.root-mount-options code 1 = text;
41 option SUNW.root-server-ip-address code 2 = ip-address;
42 option SUNW.root-server-hostname code 3 = text;
43 option SUNW.root-path-name code 4 = text;
44 option SUNW.swap-server-ip-address code 5 = ip-address;
45 option SUNW.swap-file-path code 6 = text;
46 option SUNW.boot-file-path code 7 = text;
47 option SUNW.posix-timezone-string code 8 = text;
48 option SUNW.boot-read-size code 9 = unsigned integer 16;
49 option SUNW.install-server-ip-address code 10 = ip-address;
50 option SUNW.install-server-hostname code 11 = text;
51 option SUNW.install-path code 12 = text;
52 option SUNW.sysid-config-file-server code 13 = text;
53 option SUNW.JumpStart-server code 14 = text;
54 option SUNW.terminal-name code 15 = text;
55
56 class "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
63 class "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
70 option domain-name "connectathon.org.";
71 option SUNW.root-server-ip-address 172.16.113.1;
72 option SUNW.root-server-hostname "sundhcp-server17-1";
73
74 key FOO {
75   algorithm HMAC-MD5.SIG-ALG.REG.INT;
76   secret ABCD;
77 }
78
79 zone BISBEE.FUGUE.COM. {
80   primary 127.0.0.1;
81   key FOO;
82 }
83
84 zone 17.127.10.in-addr.arpa. {
85   primary 127.0.0.1;
86   key FOO;
87 }
88
89 zone 0.0.10.in-addr.arpa. {
90   primary 127.0.0.1;
91   key FOO;
92 }
93
94 subnet 204.152.186.128 netmask 255.255.255.192 {
95   not authoritative;
96 }
97
98 shared-network LOCAL {
99   subnet 127.0.0.0 netmask 255.255.255.0 {
100   }
101   subnet 10.0.2.0 netmask 255.255.255.0 {
102     pool {
103       deny dynamic bootp clients;
104       failover peer "foo";
105       range 10.0.2.100 10.0.2.200;
106     }
107   }
108 }
109
110 shared-network NET-187 {
111   subnet 204.152.187.0 netmask 255.255.255.0 {
112   }
113   subnet 205.140.116.224 netmask 255.255.255.248 {
114   }
115   subnet 10.0.1.0 netmask 255.255.255.0 {
116     pool {
117       deny dynamic bootp clients;
118       failover peer "foo";
119       range 10.0.1.10 10.0.1.200;
120     }
121   }
122 }
123
124 subnet 10.0.0.0 netmask 255.255.255.0 {
125   pool {
126     deny dynamic bootp clients;
127     allow members of "even";
128     option impress-servers 10.0.0.0;
129     failover peer "foo";
130     range 10.0.0.10 10.0.0.54;
131     range 10.0.0.100 10.0.0.149;
132   }
133   pool {
134     deny dynamic bootp clients;
135     allow members of "odd";
136     failover peer "foo";
137     option impress-servers 10.0.0.1;
138     range 10.0.0.55 10.0.0.99;
139     range 10.0.0.150 10.0.0.200;
140   }
141   option routers 10.0.0.1;
142   option domain-name "bisbee.fugue.com";
143   option domain-name-servers 10.0.0.1;
144 }