LocaPhone
Auto Light Dark
Auto Light Dark
Breadcrumbs

System Konfiguration DHCP

Beschreibung

LocaPhone stellt mittels DHCP eine Auto-Provisionierung verschiedener Endgeräte/Hersteller zur Verfügung, sodass Endgeräte nicht mehr manuell konfiguriert werden müssen. Der DHCP-Dienst ist entweder seitens des Netzwerkes verfügbar, oder wird lokal durch LocaPhone bereitgestellt. Damit die "zero-touch"-Konfiguration eines Endgerätes funktioniert, muss das Endgerät per DHCP eine Information erhalten, unter welcher URL die passenden Konfigurationsdatei abrufbar ist.

Verschiedene Hersteller nutzen ggf. abweichende Optionen. Bitte die Dokumentationen der jeweiligen Endgeräte-Hersteller beachten!

DHCP-Parameter für Autoprovisionierung

Die folgenden Pfadangaben müssen bei der Provisionierung eines Endgerätes mittels DHCP übermittelt werden.

Hersteller

Endgerät

MAC

DHCP

Option Name

URL

Snom

(D)3xx, (D)7xx, D8xx, D1x0, 8xx, PA1(+), MP, Cx20

00:04:13
1C:71:26

66

tftp-server-name

http://server/locaphone/prov/snom/settings.php?mac={mac}

Snom DECT1

M300, M700

00:04:13

66

tftp-server-name

http://server/locaphone/prov/snomdect/dectconfig-{mac}

Gigaset DECT1

Nx70/N610, N720, N5x0, C6xx, C4xx

58:9E:C6
7C:2F:80

1142

default-url

http://server/gigaset-prov/

Gigaset3

P85x(B)W, P82x, P810(B), P710, P150

58:9E:C6

1142

default-url

http://server/gigaset-prov/

Yealink

T4xU/S/G, T5xS/A/V/W, T7xU/W, T8xU/W, CP9xx

00:15:65
80:5E:0C
80:5E:C0
24:9A:D8
44:DB:D2

66

tftp-server-name

http://server/locaphone/prov/yealink/

Fanvil

V6x, H5/H3, X210i

0C:38:3E

66

tftp-server-name

http://server/locaphone/prov/fanvil/

Polycom

Soundstation
(FW UC 4.x.x)

00:04:F2
64:16:7F

66

tftp-server-name

http://ftp:ftp@server/locaphone/prov/polycom-uc/

Polycom

Soundpoint, Soundstation
(FW 3.x.x)

00:04:F2

66

tftp-server-name

http://ftp:ftp@server/locaphone/prov/polycom/

MITEL
Aastra

 5xi, 673xi, 675xi, 68xxi

00:08:5D
08:00:0F

66

tftp-server-name

http://server/locaphone/prov/aastra

MITEL
Aastra

 RFP1 (L) 3x, 4x

00:30:42



siehe

Weitere Informationen:
1 DECT-Manager sollten mit statischen DHCP-Leases konfiguriert werden!
2 Gigaset stellt verschiedene DCHP-Optionen bereit: Option 114 (default) und Option 66.
3 Gigaset Maxwell B/2/3/4/10(S) und DE310/410/700/900 werden ab LocaPhone 5.9.0 nicht mehr unterstützt!

Konfiguration ISC DHCP-Server

Konfigurationsvorgabe LocaPhone S500x/VM/Server VoIP TK-System. Allen Clients wird vom DHCP-Server eine IP-Adresse im Bereich 192.168.1.50-100 angeboten.

Datei /etc/dhcp/dhcpd.conf

# LocaPhone configuration for isc-dhcp-server (Ubuntu 24/20/16)
# Syntax check: dhcpd -t -cf /etc/dhcp/dhcpd.conf
# Listening interface set in /etc/default/isc-dhcp-server (INTERFACESv4="eno1")
 
ddns-update-style none;
authoritative;
 
default-lease-time 3600;
max-lease-time 7200;
 
# VoIP subnet (default S500x)
subnet 192.168.1.0 netmask 255.255.255.0 {
    range 192.168.1.50 192.168.1.100;
    interface eno1;
    option subnet-mask          255.255.255.0;
    option broadcast-address    192.168.1.255;
    option routers              192.168.1.130;
    option domain-name          "s500.local";
    option domain-name-servers  192.168.1.130;
    option ntp-servers          192.168.1.130;
}
 
class "snom" {
    match if (
        (substring (hardware, 1, 3) = 00:04:13) or
        (substring (hardware, 1, 3) = 1C:71:26)
    );
    option tftp-server-name "http://192.168.1.130/locaphone/prov/snom/settings.php?mac={mac}";
}
 
class "gigaset" {
    match if (
        (substring (hardware, 1, 3) = 7C:2F:80) or
        (substring (hardware, 1, 3) = 00:21:04) or
        (substring (hardware, 1, 3) = 58:9E:C6)
    );
    option default-url "http://192.168.1.130/gigaset-prov/";
}
 
class "yealink" {
    match if (
        (substring (hardware, 1, 3) = 00:15:65) or
        (substring (hardware, 1, 3) = 80:5E:0C) or
        (substring (hardware, 1, 3) = 80:5E:C0) or
        (substring (hardware, 1, 3) = 24:9A:D8) or
        (substring (hardware, 1, 3) = 44:DB:D2)
    );
    option tftp-server-name "http://192.168.1.130/locaphone/prov/yealink/";
}
 
class "fanvil" {
    match if (substring (hardware, 1, 3) = 0C:38:3E);
    option tftp-server-name "http://192.168.1.130/locaphone/prov/fanvil/";
}
 
class "aastra" {
    match if (
        (substring (hardware, 1, 3) = 00:08:5D) or
        (substring (hardware, 1, 3) = 08:00:0F)
    );
    option tftp-server-name "http://192.168.1.130/locaphone/prov/aastra";
}
 
# NOTE: credentials in the URL are sent in clear text via DHCP.
class "polycom" {
    match if (
        (substring (hardware, 1, 3) = 00:04:F2) or
        (substring (hardware, 1, 3) = 64:16:7F)
    );
    option tftp-server-name "http://ftp:ftp@192.168.1.130/locaphone/prov/polycom-uc";
}

Konfiguration ISC DHCP-Server (Vendor)

Konfigurationsvorgabe LocaPhone S500x/VM/Server VoIP TK-System. Allen Clients der angegebenen Hersteller (Vendor) wird vom DHCP-Server eine IP-Adresse im Bereich 192.168.1.50-100 angeboten. Alle anderen Geräten wird im Netz keine IP-Adresse angeboten.

Datei /etc/dhcp/dhcpd.conf

# LocaPhone configuration file for isc-dhcp-server (Ubuntu 24/20/16)
# Syntax check: dhcpd -t -cf /etc/dhcp/dhcpd.conf
# Listening interface set in /etc/default/isc-dhcp-server (INTERFACESv4="eno1")
 
ddns-update-style none;
authoritative;
 
default-lease-time 3600;
max-lease-time 7200;
 
# Vendor classes (must be defined before the pool that references them)
 
class "snom" {
    match if (
        (substring (hardware, 1, 3) = 00:04:13) or
        (substring (hardware, 1, 3) = 1C:71:26)
    );
    option tftp-server-name "http://192.168.1.130/locaphone/prov/snom/settings.php?mac={mac}";
}
 
class "gigaset" {
    match if (
        (substring (hardware, 1, 3) = 7C:2F:80) or
        (substring (hardware, 1, 3) = 00:21:04) or
        (substring (hardware, 1, 3) = 58:9E:C6)
    );
    option default-url "http://192.168.1.130/gigaset-prov/";
}
 
class "yealink" {
    match if (
        (substring (hardware, 1, 3) = 00:15:65) or
        (substring (hardware, 1, 3) = 80:5E:0C) or
        (substring (hardware, 1, 3) = 80:5E:C0) or
        (substring (hardware, 1, 3) = 24:9A:D8) or
        (substring (hardware, 1, 3) = 44:DB:D2)
    );
    option tftp-server-name "http://192.168.1.130/locaphone/prov/yealink/";
}
 
class "fanvil" {
    match if (substring (hardware, 1, 3) = 0C:38:3E);
    option tftp-server-name "http://192.168.1.130/locaphone/prov/fanvil/";
}
 
class "aastra" {
    match if (
        (substring (hardware, 1, 3) = 00:08:5D) or
        (substring (hardware, 1, 3) = 08:00:0F)
    );
    option tftp-server-name "http://192.168.1.130/locaphone/prov/aastra";
}
 
# NOTE: credentials in the URL are sent in clear text via DHCP.
class "polycom" {
    match if (
        (substring (hardware, 1, 3) = 00:04:F2) or
        (substring (hardware, 1, 3) = 64:16:7F)
    );
    option tftp-server-name "http://ftp:ftp@192.168.1.130/locaphone/prov/polycom-uc";
}
 
# VoIP subnet (default S500x)
subnet 192.168.1.0 netmask 255.255.255.0 {
    interface eno1;
    option subnet-mask          255.255.255.0;
    option broadcast-address    192.168.1.255;
    option routers              192.168.1.130;
    option domain-name          "s500.local";
    option domain-name-servers  192.168.1.130;
    option ntp-servers          192.168.1.130;
 
    pool {
        range 192.168.1.50 192.168.1.100;
 
        allow members of "snom";
        allow members of "gigaset";
        allow members of "yealink";
        allow members of "fanvil";
        allow members of "aastra";
        allow members of "polycom";
    }
}

Netzwerk-Interfaces für DHCP-Dienst

Zuordnung der Netzwerk-Interfaces, über die DHCP berereit gestellt wird.

Datei /etc/default/isc-dhcp-server

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="eno1"     # standard LocaPhone S500x interface
#INTERFACESv6=""        # disabled, IPv4 only (can be changed)