Networking/DHCP
From Snom User Wiki
Introduction
DHCP (Dynamic Host Configuration Protocol) is an option for managing networks centrally. Particularly with a large number of devices (phones, computers, printers etc), this represents a convenient and useful method of administering them. DHCP is recommended to provide snom phones a valid network identity (e.g. IP address and the network mask) allowing them to communicate with other network devices. Additionally a few other base settings might also be configured to ease and comfort the phone's operation.
Installing DHCP on Windows Servers
snom phones behave like a normal PC running under Linux. Most of the DHCP parameters can therefore be set as usual.
- Make sure DHCP Server is installed on your Windows server. You can verify this by navigating to
- Start
- Configuration
- System Settings
- Administration
- Server Configuration
- Network
- DHCP
- Follow the instructions of the wizard.
- Invoke the DHCP manager
- Configure the necessary DHCP options:
| Option | Name/Value | Example |
| 001 | Subnet Mask | 255.255.0.0 |
| 003 | Router | 192.168.0.1 |
| 006 | DNS Server | 192.168.0.9,174.129.1.129 |
| 012 | Hostname | phone123 |
| 015 | DNS Domain | company.com |
| 042 | NTP Servers | 192.53.103.103 |
| 066 | Setting (Provisioning) Server | see this description |
| 067 | Path of Setting (Provisioning) File | see this description |
| 120 | SIP Servers | sip.company.com |
Installing DHCP on Linux Servers
A DHCP server has to be installed before on the linux server. The DCHP configuration has to be edited in the file /etc/dhcpd.conf. (see dhcpd(8)).
A sample dhcpd.conf file could look like the following:
# dhcpd.conf
option domain-name "intern.company.com";
option domain-name-servers 192.168.0.9;
option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option ntp-servers 192.53.103.103;
# 1) example of server-name/filename usage (available since v5)
server-name "http://prov.company.com";
#filename "settings/snom.htm";
filename "snom.php?mac={mac}";
# examples of different kind of tftp-server-name/bootfile-name
# 2) tftp-server-name only
[C #option tftp-server-name "http://192.168.0.9/snom.php?mac={mac}";
#option tftp-server-name "http://prov.company.com/settings/snom.htm";
# 3) tftp-server-name and bootfile-name
#option tftp-server-name “http://192.168.0.9”;
#option bootfile-name "settings/snom.htm";
#option bootfile-name "snom.php?mac={mac}";
