Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: jameswilson on November 24, 2008, 12:25:07 AM
-
Hi all
Running SME at home no probs, also have some other boxes dedicated to other jobs (SME's) but server only.
We currently run a swyx server at work and im looking at replacing it with a sme box.
We need to keep our win 2k3 sbs server running the network etc, but i want to add a SME box, for various bits but mainly for sail.
I have built the thing and have it at home at the mo, i have a problem with it seeing the isdb card but thats another subject.
My issue now is how do i get my cisco phone to know the sail box is there when my main sme server is the dhcp server?
is it possible to run this as a second box?
James
-
Yes it is.
Most phones use DHCP option 66 to find the provisioning server. Cisco (being Cisco) use option-150. When you run DHCP from the SARK box, all of this is automatcally taken care of for you by SAIL (the install adds the correct templates to the dhcpd.conf file).
If you want to run dhcp from somewhere else, then that's also cool, provided the dhcp server can handle dhcp options. We have systems where dhcp is being served by ExchangeServer and we also have systems where dhcp is being served by a regular SME server with a coupe of templates added to handle the extra dhcp parameters. Offhand I don't know of any low-end modem/routers which can handle dhcp options except the Linksys WAP50G-whatever-it's-called with the open source firmware replacement.
Kind Regards
S
-
Selintra
Thanks for the reply.
My DHCP server on the test environment is a SME 7.4 server (home) but the dhcp at work is a win 2k3 SBS server.
I dont understand what i need to change on either system for this to work?
James
-
You'll need to speak to someone who is familiar with SBS to set up the DHCP options if you don't know how to do it. I am pretty sure that SBS can do it but would not swear to it. Foe SME you need a dhcp.conf which looks like this (ish)...
#------------------------------------------------------------
# !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
authoritative;
ddns-update-style none;
option option-150 code 150 = ip-address; <=======================
option wpad-url code 252 = text;
subnet 192.168.2.0 netmask 255.255.255.0
{
option broadcast-address 192.168.2.255;
deny bootp;
option domain-name "masters-uk.dyndns.org";
option domain-name-servers 192.168.2.2;
default-lease-time 86400;
max-lease-time 604800;
option subnet-mask 255.255.255.0;
range 192.168.2.65 192.168.2.250;
option routers 192.168.2.1;
option tftp-server-name "mvpha1.my.sail.domain"; <=======================
option option-150 192.168.2.2; <=======================
# wpad-url disabled
}
I have highlighted the bits which do the work. You can knock up a couple of very simple templates....
[root@mvpha00 ~]# cat /etc/e-smith/templates/etc/dhcpd.conf/11Option-150
option option-150 code 150 = ip-address;
and
[root@mvpha00 ~]# cat /etc/e-smith/templates/etc/dhcpd.conf/26Options
option tftp-server-name "mvpha1.my.sail.domain";
option option-150 192.168.2.2;
then you can just restart dhcp (no need to expand the template)
/etc/init.d/dhcpd restart
Lastly, you'll need to ensure that you have added the tftp server name you used (in the above example it is... mvpha1.my.sail.domain) to your hosts in SME so that the phone can rtesolve the IP addess from the name but that;s basically it.
Kind Regards
S
-
Brilliant
Thanks for that ill give that a go when im next at the machine.
James