aboutsummaryrefslogtreecommitdiff
path: root/tests/failover/dhcp-1.cf
blob: 07842ab0eb5bf6ca3ac7808ddae96137e284bdaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
authoritative;

class "even" {
  match if ((extract-int (suffix
			  (pick-first-value (option dhcp-client-identifier,
					     hardware), 1), 8) % 2) = 0);
}
class "odd" {
  match if ((extract-int (suffix
			  (pick-first-value (option dhcp-client-identifier,
					     hardware), 1), 8) % 2) = 1);
}

lease-file-name "dhcp-1.leases";
pid-file-name "dhcp-1.pid";
ddns-update-style none;
local-port 50002;
remote-port 50003;
omapi-port 50004;
omapi-key FOO;

default-lease-time 600;
max-lease-time 600;

failover peer "foo" {
  primary;
  address 10.0.0.1;
  port 51000;
  peer address 10.0.0.1;
  peer port 51001;
  max-response-delay 60;
  max-unacked-updates 10;
  mclt 100;
  hba ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:
      00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00;
  load balance max seconds 2;
}

option space SUNW;
option SUNW.root-mount-options code 1 = text;
option SUNW.root-server-ip-address code 2 = ip-address;
option SUNW.root-server-hostname code 3 = text;
option SUNW.root-path-name code 4 = text;
option SUNW.swap-server-ip-address code 5 = ip-address;
option SUNW.swap-file-path code 6 = text;
option SUNW.boot-file-path code 7 = text;
option SUNW.posix-timezone-string code 8 = text;
option SUNW.boot-read-size code 9 = unsigned integer 16;
option SUNW.install-server-ip-address code 10 = ip-address;
option SUNW.install-server-hostname code 11 = text;
option SUNW.install-path code 12 = text;
option SUNW.sysid-config-file-server code 13 = text;
option SUNW.JumpStart-server code 14 = text;
option SUNW.terminal-name code 15 = text;

class "solaris-i86pc" {
  match if option vendor-class-identifier = "SUNW.i86pc";
  vendor-option-space SUNW;
  option SUNW.boot-file-path "/platform/i86pc/kernel/unix";
  option SUNW.root-path-name "/export/root/i86pc";
}

class "solaris-sun4u" {
  match if option vendor-class-identifier = "SUNW.Ultra-5_10";
  vendor-option-space SUNW;
  option SUNW.install-path "/export/2/s581_sparc";
  option SUNW.root-path-name "/export/2/s581_sparc/Solaris_8/Tools/Boot";
}

option domain-name "connectathon.org.";
option SUNW.root-server-ip-address 172.16.113.1;
option SUNW.root-server-hostname "sundhcp-server17-1";

class "sniffer" {
  match if option host-name = "sniffer";
}

key FOO {
  algorithm HMAC-MD5.SIG-ALG.REG.INT;
  secret ABCD;
}

zone BISBEE.FUGUE.COM. {
  primary 127.0.0.1;
  key FOO;
}

zone 17.127.10.in-addr.arpa. {
  primary 127.0.0.1;
  key FOO;
}

zone 0.0.10.in-addr.arpa. {
  primary 127.0.0.1;
  key FOO;
}

subnet 204.152.186.128 netmask 255.255.255.192 {
  not authoritative;
}

shared-network LOCAL {
  subnet 127.0.0.0 netmask 255.255.255.0 {
  }
  subnet 10.0.2.0 netmask 255.255.255.0 {
    pool {
      deny dynamic bootp clients;
      failover peer "foo";
      range 10.0.2.100 10.0.2.200;
    }
  }
}

shared-network NET-187 {
  subnet 204.152.187.0 netmask 255.255.255.0 {
  }
  subnet 205.140.116.224 netmask 255.255.255.248 {
  }
  subnet 10.0.1.0 netmask 255.255.255.0 {
    pool {
      deny dynamic bootp clients;
      failover peer "foo";
      range 10.0.1.10 10.0.1.200;
    }
  }
}

subnet 10.0.0.0 netmask 255.255.255.0 {
  pool {
    deny dynamic bootp clients;
    allow members of "even";
    option impress-servers 10.0.0.0;
    failover peer "foo";
    range 10.0.0.10 10.0.0.54;
    range 10.0.0.100 10.0.0.149;
  }
  pool {
    deny dynamic bootp clients;
    allow members of "odd";
    failover peer "foo";
    option impress-servers 10.0.0.1;
    range 10.0.0.55 10.0.0.99;
    range 10.0.0.150 10.0.0.200;
  }
  pool { 
    deny dynamic bootp clients;
    allow members of "sniffer";
    failover peer "foo";
    range 10.0.0.9 10.0.0.9;   
  }
  option routers 10.0.0.1;
  option domain-name "bisbee.fugue.com";
  option domain-name-servers 10.0.0.1;
}