DHCP 1.3.0

Костюков Владимир

Команда форума
Админ
Регистрация
04.03.23
Сообщения
264
Реакции
42
Для установки Сервера требуется зайти в Роли и службы сайта - Службы динамической настройки Узла и добавить сервер DHCP.
Для настройки сервера требуется внести изменения.
Настройка сетевых интерфейсов (isc-dhcp-server.conf):
Код:
# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid
# Additional options to start dhcpd with.
#       Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="eth0"
#INTERFACESv6=""
Конфигурация скрипта (dhcpd.conf):
Код:
INTERFACES="eth0";
authoritative;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
option domain-name-servers 192.168.56.100;
allow booting; allow bootp;
option fqdn.no-client-update on;
option fqdn.rcode2 255;
option pxegrub code 150 = text ;
next-server 192.168.56.102;
option architecture code 93 = unsigned integer 16 ;
if option architecture = 00:07 { filename "bootx64.efi"; }
elsif option architecture = 00:09 { filename "bootx64.efi"; }
else { filename "pxelinux.0"; }
subnet 192.168.56.0 netmask 255.255.255.0 {
range 192.168.56.101 192.168.56.255;
option domain-name "example.com";
option broadcast-address 192.168.56.255;
option routers 192.168.56.1;
option subnet-mask 255.255.255.0; }
или на 2 Подсети
Код:
INTERFACES="eth0";
authoritative;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
option domain-name-servers 192.168.56.100;
allow booting; allow bootp;
option fqdn.no-client-update on;
option fqdn.rcode2 255;
option pxegrub code 150 = text ;
next-server 192.168.56.102;
option architecture code 93 = unsigned integer 16 ;
if option architecture = 00:07 { filename "bootx64.efi"; }
elsif option architecture = 00:09 { filename "bootx64.efi"; }
else { filename "pxelinux.0"; }
subnet 192.168.2.0 netmask 255.255.255.0 {
}
subnet 192.168.56.0 netmask 255.255.255.0 {
range 192.168.56.101 192.168.56.255;
option domain-name "example.com";
option broadcast-address 192.168.56.255;
option routers 192.168.56.1;
option subnet-mask 255.255.255.0; }
 
Последнее редактирование:
Назад
Сверху Снизу