Link to home
Start Free TrialLog in
Avatar of taverny
taverny

asked on

dhcp and sntp not working on freepbx asterisk

Hi Experts,

I need help with my server.
I have 2 issues:
1- my dhcp server doesn't start automatically when I reboot my freepbx
2- my sntp doesn't work

for issue number 2 here is what's happening:
I have a freepbx Distro and everything works on my phones besides the time and date (it keep flashing).
I changed the configuration on my tftp configuration file of a phone and changed the sntp to point to a different server , then I rebooted the phone and the time and date worked. when I change it back to point to my freepbx it doesn't work anymore.
I need help on configuring it or to check if something wrong on the config file of the sntp.

I installed webmin to help me configure my dhcp . for the sntp I didn't configure anything I assumed it is installed and working by default,but I guess I am wrong.

can someone help me with my 2 issues?

Thanks
David
Avatar of Mark Bill
Mark Bill
Flag of Ireland image

1- my dhcp server doesn't start automatically when I reboot my freepbx

I do not understand this line can you clarify, by freepbx do you mean domain controller?
On the freepbx issue 2) I have freepbx and have experienced this problem, sounds like you have grandstream phones too. grandstream phones often have this issue, i would direct them to some ntp servers in the config to resolve the issue, they should not be looking at the freepbx server. Will this not work?
Avatar of taverny
taverny

ASKER

Hi Mark ,

thanks for your response, I am actually using Polycom's phones.
im going to take it you meant domain controller in question 1.

try the following to fix this.
1. Please post any errors related to this from the application and system log.
2. What happens when you manually start the service? it works fine?
3. Is the service set to automatic, delayed start or manual? it should be set to auotmatic.
4. Are there any other automatic services not starting on boot up or posting errors in the logs from step1.
5. follow the stesp to unregister and register the DHCP service.
Avatar of taverny

ASKER

sorry I just saw your first post.
My dhcp server is also on my freepbx . I configured the dhcp module thru webmin. when running everything works fine but as soon as I reboot my freepbx the dhcp server doesn't restart on it's own .
how can I force it to start after reboot on its own.
You can SSH into the PBX and check the logs, what do they say? do you have support with freepbx?

Also anything in the logs in the web interface for Freepbx?
Avatar of taverny

ASKER

I don't have support with freepbx . the web interface doesn't show me anything in particular. how can I check the log when I am logged into ssh?
This site is great for freepbx and this article explains a lot of what you need too. http://wiki.freepbx.org/display/FPG/Asterisk+Logfiles

Get hold of the log files, I would consider using WINSCP to copy them off the freepbx this is an easy to use linux to windows transfer program freeware.

Get hold of the errros from the logs you need too and troubleshoot it from there or post back here.
Avatar of taverny

ASKER

Hi Mark ,
I am looking at the log files but all the files are showing what is happening in asterisk and nothing regarding dhcp or sntp.
is there another place for a different log file?
Avatar of taverny

ASKER

I did find the issue for my sntp.
The ntp.conf had the following config , I tried to modify it but with no success. so I replaced it from another server that I know worked. but I am sure there is a way to modify it so my phones can pull the time if I know how to modify the file.

this is the Original ntp.conf ( the one that doesn't work with my installation)
-------------------------------------------------------------------------------------------------------------
# For more information about this file, see the man pages
# ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).

driftfile /var/lib/ntp/drift

# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
#restrict default kod nomodify notrap nopeer noquery
#restrict -6 default kod nomodify notrap nopeer noquery

# Permit all access over the loopback interface.  This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
restrict -6 ::1

# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst

#broadcast 192.168.1.255 autokey      # broadcast server
#broadcastclient                  # broadcast client
#broadcast 224.0.1.1 autokey            # multicast server
#multicastclient 224.0.1.1            # multicast client
#manycastserver 239.255.254.254            # manycast server
#manycastclient 239.255.254.254 autokey # manycast client

# Enable public key cryptography.
#crypto

includefile /etc/ntp/crypto/pw

# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography.
keys /etc/ntp/keys

# Specify the key identifiers which are trusted.
#trustedkey 4 8 42

# Specify the key identifier to use with the ntpdc utility.
#requestkey 8

# Specify the key identifier to use with the ntpq utility.
#controlkey 8

# Enable writing of statistics records.
#statistics clockstats cryptostats loopstats peerstats






The one that worked for me is the following:
----------------------------------------------------------------
driftfile /var/lib/ntp/drift
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server 127.127.1.0
fudge 127.127.1.0 stratum 10
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.