You are on page 1of 2

Configurando o DHCPD

/usr/share/doc/dhcp*/dhcpd.conf.sample /etc/ # DHCP Sample.


Para verificar os logs, use: /var/log/messages when starting dhcp
(with tail -f /var/log/messages) you'll see why it's failing.
Para verificar o DHCPD, e os arquivos de configuração utilize:
/etc/init.d/dhcpd configtest
[root@server ~]# /etc/init.d/dhcpd configtest
Syntax: OK
[root@server ~]#
################################################################################
Arquivo de Configuração dhcpd.conf
[root@server ~]# cat /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 1.150.1.0 netmask 255.255.255.0 {
# --- default gateway
option routers 10.150.1.254;
option subnet-mask 255.255.255.0;
option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 10.150.1.254;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 10.150.1.254;
# option netbios-name-servers 10.150.1.254;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 10.150.1.100 10.150.1.120;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host pc01 {
next-server domain.org;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 10.150.1.119;
}
}
[root@server ~]#
###############################################################################
Verificando as Atribuições.
cat /var/lib/dhcpd/dhcpd.leases

You might also like