LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   dhcp server and ntp server help required (Debian) (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-server-and-ntp-server-help-required-debian-712470/)

Raffles666 03-18-2009 06:00 AM

dhcp server and ntp server help required (Debian)
 
Hi Guru's

I have a few IP phones (SIP) running off a Debian box. All is working fine, except that I can't find out how to set their time zone via. DHCP or NTP.

The phones get an address and the time with no problems. It's just this "option 2" thing :confused:.

Can anyone help (assuming you understand the above)?

cheers

TB0ne 03-19-2009 04:59 PM

Quote:

Originally Posted by Raffles666 (Post 3479245)
Hi Guru's

I have a few IP phones (SIP) running off a Debian box. All is working fine, except that I can't find out how to set their time zone via. DHCP or NTP.

The phones get an address and the time with no problems. It's just this "option 2" thing :confused:.

Can anyone help (assuming you understand the above)?

cheers

No, can't understand it, aside from you running Debian. How about telling us what kind of software you're driving the phones with? Lots of different options there, and all of them have different 'option 2's, and configure things differently.

Raffles666 03-20-2009 02:09 AM

Oops - sorry.

OK - the full story. I have various SIP hardphones (Aastra, Grandstream etc.) that all have their own internal option for setting the phones time zone (usually set to US). I am in the UK - so I have to change everyone manually (can be a pain with more than 10 phones). However, there is an option to "Override time zone with DHCP option 2".

I have Debian, dhcp3-server and ntp (added using apt-get) and the phones all pick up an IP address and set the time with no problems. The troubles is that the time on the phones is correct - if you live in the US. Changing the time zone to UK (again, via the phone itself) puts it in my local time.

My question is : How do I add a setting to dhcpd.conf that will set the phones time zone to UK automagically?

Thanks.

dokc 04-27-2009 07:59 AM

Quote:

Originally Posted by Raffles666 (Post 3481707)
Oops - sorry.

OK - the full story. I have various SIP hardphones (Aastra, Grandstream etc.) that all have their own internal option for setting the phones time zone (usually set to US). I am in the UK - so I have to change everyone manually (can be a pain with more than 10 phones). However, there is an option to "Override time zone with DHCP option 2".

I have Debian, dhcp3-server and ntp (added using apt-get) and the phones all pick up an IP address and set the time with no problems. The troubles is that the time on the phones is correct - if you live in the US. Changing the time zone to UK (again, via the phone itself) puts it in my local time.

My question is : How do I add a setting to dhcpd.conf that will set the phones time zone to UK automagically?

Thanks.


You need to add a new option to your /etc/dhcp3/dhcpd.conf. Something like:
Code:

  # e.g. time offset offset of -6h (=-21600 seconds) to UTC
  option time-offset -21600;


dokc 04-27-2009 08:00 AM

DHCP option numbers you can find here:

http://www.networksorcery.com/enp/pr...tp/options.htm


All times are GMT -5. The time now is 12:41 AM.