DhcpFailover: dhcpd-classes.conf

File dhcpd-classes.conf, 2.2 KB (added by mirek@…, 14 years ago)

Portax DHCP classes definition

Line 
1option space pxelinux;
2option pxelinux.magic code 208 = string;
3option pxelinux.configfile code 209 = text;
4option pxelinux.pathprefix code 210 = text;
5option pxelinux.reboottime code 211 = unsigned integer 32;
6
7option space packetcable;
8option packetcable.primary-dhcp-server code 1 = ip-address;
9option packetcable.secondary-dhcp-server code 2 = ip-address;
10option packetcable.provisioning-server code 3 = string ;
11option packetcable.kerberos-realm-name code 6 = string;
12option packetcable-encapsulate code 122 = encapsulate packetcable;
13
14option space kreatel;
15option kreatel.firmware-log code 3 = string;
16
17class "banned" {
18 match suffix(hardware, 6);
19 deny booting;
20}
21
22class "class-docsis" {
23 match substring (option vendor-class-identifier, 0, 6);
24 option time-offset 7200;
25 option packetcable.primary-dhcp-server 255.255.255.255;
26 set cpe-class = "cam";
27}
28
29class "class-packetcable" {
30 match substring (option vendor-class-identifier, 0, 4);
31 option packetcable.primary-dhcp-server 255.255.255.255;
32 option packetcable.provisioning-server "\000\004BOOT\006RIONET\002CZ\000";
33 option packetcable.kerberos-realm-name "\005BASIC\0012\000";
34 set cpe-class = "mta";
35}
36
37class "class-img" {
38 match concat(binary-to-ascii(10,16,"",substring(option agent.circuit-id,2,2)), option vendor-class-identifier);
39}
40
41class "class-vip" {
42 match option vendor-class-identifier;
43 option kreatel.firmware-log "94.74.192.228:19997";
44 set cpe-class = "vip";
45}
46
47class "class-pre" {
48 match concat(binary-to-ascii(10,16,"",substring(option agent.circuit-id,2,2)),substring(option vendor-class-identifier,0,8));
49}
50
51class "class-ati" {
52 match suffix(hardware,6);
53}
54
55class "class-fwa" {
56 match option host-name;
57}
58
59class "class-wad" {
60 match concat(pick-first-value(substring(option agent.circuit-id,0,7),"NULL"),substring(option vendor-class-identifier,0,9));
61 set cpe-class = "wad";
62}
63
64class "authorized-cam" {
65 match option agent.remote-id;
66}
67
68class "class-cpy" {
69 match substring(hardware, 1, 4);
70}
71
72class "authorized-fwa" {
73 match suffix(hardware,6);
74}
75
76class "authorized-img" {
77 match concat(suffix(option agent.remote-id,6),suffix(option agent.circuit-id,2),substring(option agent.circuit-id,2,2));
78}
79
80subclass "class-img" "ELCONnect(R) fiber FOS100w" {
81 set cpe-class = "fow";
82}
83