Hi all! I am working with asterisk and trying to get it work in DHCP network, where asterisk gets a DHCP address as well as other computers (IP-phones). So far, I've have got asterisk working with static IP address where phones are getting their IP from DHCP server. Is it possible at all to phones to find asterisk server if it gets random IP address from the DHCP server also? I mean, is there some settings in asterisk how I can bypass IP settings and force it to work with dynamic IP address? Thanks for any help and guidance! ---------------------------------------------------------------- This mail sent through L-secure: http://www.l-secure.net/
Hi, I don't think it's goonna work that way ! The phones need to register with the asterisk server. So when you configure the phones, you specify the ip of the asterisk server... so... Another way, if you want to work with dynamic ip address would be to set up a DNS (name resolver) which handles dynamic IP and so, you could configure your IP phone with the name of your asterisk server instead of the IP address... I hope I've helped you. Best regards David Masure -----Message d'origine----- De : laine.marko@porilainen.com [mailto:laine.marko@porilainen.com] Envoy? : vendredi 1 juillet 2005 09:15 ? : 'asterisk-users@lists.digium.com' Objet : [Asterisk-Users] Asterisk and DHCP Hi all! I am working with asterisk and trying to get it work in DHCP network, where asterisk gets a DHCP address as well as other computers (IP-phones). So far, I've have got asterisk working with static IP address where phones are getting their IP from DHCP server. Is it possible at all to phones to find asterisk server if it gets random IP address from the DHCP server also? I mean, is there some settings in asterisk how I can bypass IP settings and force it to work with dynamic IP address? Thanks for any help and guidance! ---------------------------------------------------------------- This mail sent through L-secure: http://www.l-secure.net/ _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
On Fri, 2005-07-01 at 10:15 +0300, laine.marko@porilainen.com wrote:> Hi all! > > I am working with asterisk and trying to get it work in DHCP network, where > asterisk gets a DHCP address as well as other computers (IP-phones). So far, > I've have got asterisk working with static IP address where phones are getting > their IP from DHCP server. > Is it possible at all to phones to find asterisk server if it gets random IP > address from the DHCP server also? I mean, is there some settings in asterisk > how I can bypass IP settings and force it to work with dynamic IP address? > > Thanks for any help and guidance!IMHO It's not really a good idea to have important servers on a dynamic internal IP, what does it achieve? Look at the manual for dhcpd and you will see that you can have IP addresses fixed by the MAC address of the NIC, best of both worlds because you can use the DHCP server to send name server settings but the phones can always find * by IP. Otherwise welcome to the world of a full DNS server that allows dynamic updates. -- Dave Cotton <dcotton@linuxautrement.com>
On Fri, Jul 01, 2005 at 10:15:20AM +0300, laine.marko@porilainen.com wrote:> Hi all! > > I am working with asterisk and trying to get it work in DHCP network, where > asterisk gets a DHCP address as well as other computers (IP-phones). So far, > I've have got asterisk working with static IP address where phones are getting > their IP from DHCP server. > Is it possible at all to phones to find asterisk server if it gets random IP > address from the DHCP server also? I mean, is there some settings in asterisk > how I can bypass IP settings and force it to work with dynamic IP address?How exactly do you expect them to identify the "asterisk server"? Why not use a host name? Distribute it by DNS or by any other means. If you don't know exactly how, then what DHCP server are you using? I'm currently using dnsmasq which works great for a simple dns/dhcp server and so far was good enough for all the phones we needed to configure. Setting a static IP is as simple as adding a line to /etc/hosts and a line to /etc/ethers. -- Tzafrir Cohen | tzafrir@jbr.cohens.org.il | VIM is http://tzafrir.org.il | | a Mutt's tzafrir@cohens.org.il | | best ICQ# 16849755 | | friend