Networking/DHCP

From Snom User Wiki

< Networking(Redirected from DHCP)
Jump to: navigation, search

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.

  1. Make sure DHCP Server is installed on your Windows server. You can verify this by navigating to
    1. Start
    2. Configuration
    3. System Settings
    4. Administration
    5. Server Configuration
    6. Network
    7. DHCP
    8. Follow the instructions of the wizard.
  2. Invoke the DHCP manager
  3. Configure the necessary DHCP options:
Option Name/Value Example
001Subnet Mask255.255.0.0
003Router192.168.0.1
006DNS Server192.168.0.9,174.129.1.129
012Hostnamephone123
015DNS Domaincompany.com
042NTP Servers192.53.103.103
066Setting (Provisioning) Serversee this description
067Path of Setting (Provisioning) Filesee this description
120SIP Serverssip.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}";
Personal tools