aptitude -y install rsyslog isc-dhcp-server
Конфигурируем
сервер.
Изменяем
/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".
INTERFACES="eth0"
Изменяем
/etc/dhcp/dhcpd.conf
# 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;
# option definitions common to all
supported networks
option domain-name
"OFFICE.LOCAL";
option domain-name-servers
ns1.office.local, ns2.office.local;
option ip-forwarding off;
# This way you can specify multiple
search domains.
# For Windows clients it doesn't
work and need to be
# setup manually
option domain-search
"OFFICE.LOCAL", "corp.local";
# Lease time is in seconds
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;
subnet 192.168.17.0 netmask
255.255.255.0 {
pool {
range 192.168.17.41 192.168.17.199;
}
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.17.255;
option routers gw1.office.local;
}
/etc/init.d/isc-dhcp-server
restart
Немає коментарів:
Дописати коментар