Zentyal Forum, Linux Small Business Server
International => Russian => Topic started by: Dimich1978 on June 20, 2014, 08:05:47 am
-
Доброго утречка всем. Настроил DHCP через веб.мордашку. ВСе настройки раздает. Далее у меня есть IP телефоны avaya. Раньше стояла винда (сервер 2003). Там была инструкция по настройке и была она однозначная. Я не сисадмин, поэтому не пинайте. И вот мне надо настроить теперь на zentyal в настройки DHCP option 242.
И вот еще что, не будет ли после перезагрузки, затирать зентиал мои изменгения в кофигурационных файлах.
И вот еще вопрос. Рабочий конфигурационный файл dhcp находится по адресу etc\dhcp\dhcpd.conf , все правильно?
А вот настройку , которую предлагают с форума avaya (http://www.iaug.org/p/fo/et/thread=14920)
-
Догнал , что прописывать надо option 242 в шаблоне. Который как я понял находится по пути usr\shared\zentyal\dhcp\dhcp.conf.mas . Вот только правильно ли я запихал свою строчку. Эт опока вопрос.
-
Ругается на мою добавленную строку , я добавил (option option-242 "MCIPADD=172.22.0.2, HTTPSRVR=172.22.0.2, TLSSRVR=172.22.0.2, L2Q=2;)
Что не нравится, может куда то переместить данную строку, чтобы заработало.
# DHCP server is authoritative for all networks
authoritative;
# extra options
# RFC3442 routes
option rfc3442-classless-static-routes code 121 = array of integer 8;
# MS routes
option ms-classless-static-routes code 249 = array of integer 8;
pid-file-name "/var/run/dhcp-server/dhcpd.pid";
ddns-update-style none;
allow booting;
allow bootp;
default-lease-time 1800;
max-lease-time 7200;
shared-network eth0 {
next-server 192.168.1.10;
option tftp-server-name "192.168.1.10";
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option domain-name-servers 192.168.1.10, 81.200.241.18;
option option-242 "MCIPADD=172.22.0.2, HTTPSRVR=172.22.0.2, TLSSRVR=172.22.0.2, L2Q=2;
default-lease-time 1800;
max-lease-time 7200;
pool {
range 192.168.1.11 192.168.1.254;
}
}
group {
option routers 192.168.1.1;
option domain-name-servers 192.168.1.10, 81.200.241.18;
default-lease-time 1800;
max-lease-time 7200;
}
}
-
Спасибо все настроил, все заработало.
-
Для того, чтобы IP телефоны из одного офиса коннектились к другим, одним из пунктов является настройка DHCP сервера. НЕбольшая особенность у Zentyal , это затирание шаблоном , любого изменения \, которое вы сделали в конфигурационном файле dhcpd.conf. ДЛя избежания этого идем в шаблон по след пути
/usr/share/zentyal/stubs/dhcp/dhcpd.conf.mas и его редактируем. Всего для моей настройки понадоби лось дописать две строки
это
option option-242 code 242=string;
option option-242 "MCIPADD=172.22.0.2, HTTPSRVR=172.22.0.2, TLSSRVR=172.22.0.2, L2Q=2, L2QVLAN=0";
Вот полный ДНСР шаблон.
<%doc>
This stub writes the DHCP server configuration file
Parameters:
ifaces - Hash
real_ifaces - Hash containing the interface name as key and an
array ref containing the virtual interface names as value
thinClientOption - Boolean indicating whether the thin client
options have been used or not
dnsone - String the default primary DNS server
dnstwo - String the default secondary DNS server
dynamicDNSEnabled - Boolean indicating whether the dynamic DNS feature is on or not
keysFile - String with the file path to shared secret keys to update DNS server
pidFile - String the path to the file which stores the daemon PID
</%doc>
<%args>
%ifaces
%real_ifaces
$thinClientOption => 0
$dnsone => ''
$dnstwo => ''
$dynamicDNSEnabled => 0
$keysFile => undef
$pidFile
</%args>
# DHCP server is authoritative for all networks
authoritative;
# extra options
# RFC3442 routes
option rfc3442-classless-static-routes code 121 = array of integer 8;
# MS routes
option ms-classless-static-routes code 249 = array of integer 8;
pid-file-name "<% $pidFile %>";
option option-242 code 242=string;
% if ( $dynamicDNSEnabled ) {
ddns-update-style interim;
ddns-updates on;
update-static-leases on;
% } else {
ddns-update-style none;
% }
% if(length($dnsone) != 0) {
option domain-name-servers <% $dnsone %>\
% if(length($dnstwo) != 0) {
, <% $dnstwo %>;
% }else{
;
% }
% }
% if($thinClientOption) {
allow booting;
allow bootp;
% }
default-lease-time 1800;
max-lease-time 7200;
% if (defined $keysFile) {
include "<% $keysFile %>";
% }
% foreach my $iface (keys(%real_ifaces)) {
<%perl>
# Write configuration if there are any range or fixed addresses
my $ifaceToWrite = 0;
if (exists $ifaces{$iface}) {
if (@{$ifaces{$iface}->{ranges}} > 0) {
$ifaceToWrite = 1;
} elsif (values %{$ifaces{$iface}->{fixed}} > 0 ) {
$ifaceToWrite = 1;
}
}
</%perl>
% if ( $ifaceToWrite ) {
<& dhcp/shared-network.mas, iface => $iface, ifaces => \%ifaces &>
% }
option option-242 "MCIPADD=172.22.0.2, HTTPSRVR=172.22.0.2, TLSSRVR=172.22.0.2, L2Q=2, L2QVLAN=0";
% }
-
Напишите лучше 1 пост тут https://forum.zentyal.org/index.php/topic,12182.15.html , а то модераторов нет, некому перенести