Шукати в цьому блозі

DHCP на linux-сервері (Debian)

Налаштування та перезавантаження сервера DHCP на Linux Debian

Перезавантажити dhcp-сервер: /etc/init.d/isc-dhcp-server restart

Приклад файла конфігурації dhcp: /etc/dhcp/dhcpd.conf

option wpad-url code 252 = string;
option wpad code 252 = string;
option wpad-url "http://192.168.0.1/wpad.dat\n";
option wpad "http://192.168.0.1/wpad.dat\n";

# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;

default-lease-time 600;
max-lease-time 7200;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.

#******************************
# A slightly different configuration for an internal subnet.
subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.200 192.168.0.240;
#  option domain-name-servers ns1.internal.example.org;
#  option domain-name "internal.example.org";
  option routers 192.168.0.1;
  option broadcast-address 192.168.0.255;
  default-lease-time 600;
  max-lease-time 7200;
  host comp15
  {
  hardware ethernet 8c:89:a5:74:fd:c3;
  fixed-address 192.168.0.15;
  }
  host comp12
  {
  hardware ethernet 74:D4:35:CC:0D:DA;
  fixed-address 192.168.0.12;
  }
}