Hello,
I have been using SME since 6/6.5 and have been very pleased with it. I have used several of the how-to and contrib posting to get various things done.
It is a home server, mostly for learning and playing. It has actually recentley been upgraded to V8, and is fairly clean. In fact apart from the playing with the DHCP there isn't anything non-standard.
I am trying to get the dhcpd server provide and option 66 with a tftp server address to several IP phones I have. This is mostly for testing zero config.
I can get the dhcpd to serve the option 66 to all hosts, but I wanted to clean it up and only give the option and a range of address' to the IP phones, and then other hosts are given IP's from the standard range.
Here is the relavant part of the dhcpd.conf . . .
# Addresses from 172.16.1.147 to 172.16.1.150 taken for PPTP sessions
authoritative;
ddns-update-style none;
log (info, option vendor-class-identifier);
option wpad-url code 252 = text;
class "ipphones" {
match if (
(substring (option vendor-class-identifier,0,12) = "Cisco SPA504G")
or
(substring (option vendor-class-identifier,0,14) = "LINKSYS SPA-942")
);
option tftp-server-name "172.16.1.42";
}
class "unknown" {
match if (
(substring (option vendor-class-identifier,0,12) != "Cisco SPA504G")
or
(substring (option vendor-class-identifier,0,14) != "LINKSYS SPA-942")
);
}
subnet 172.16.1.0 netmask 255.255.255.0
{
option broadcast-address 172.16.1.255;
deny bootp;
option domain-name "icl-net.local";
option domain-name-servers 172.16.1.2;
default-lease-time 86400;
max-lease-time 604800;
option netbios-dd-server 172.16.1.2;
option netbios-name-servers 172.16.1.2;
option netbios-node-type 8;
option subnet-mask 255.255.255.0;
pool {
range 172.16.1.160 172.16.1.175;
allow members of "ipphones";
}
pool {
range 172.16.1.10 172.16.1.146;
allow members of "unknown";
}
option routers 172.16.1.1;
# option tftp-server-name "172.16.1.42";
option wpad-url "http://wpad.icl-net.local/wpad.dat";
}
I was working on this for some time yesterday and have had a quick look through for syntax issues (rubbish at seeing them in my own work), I am not certian if the order things are sone within the dhcpd.conf is an issue.
I would like some help in seeing if I have any basic faults, spelling, order issues in the attached code.
I have carried out the modifications by using the templates-custom method for creation of new parts of the file and modifying the existing portions (range in particular).
Obviously, if you need any extra information, please just ask.
Thank you for your help, I look forward to hearing from you.
Regards
Penguinuk5
p.s. this is my first post, so it might not be the best.