User Tools

Site Tools


wikiv3:dhcpdcentos6

DHCP Server CentOS 6

# yum install dhcp-common dhcp-devel dhcp
# cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
# cat /etc/dhcp/dhcpd.conf | grep -Ev "^#|^$"
option domain-name "rascunhos.wiki.br";
option domain-name-servers ns1.rascunhos.wiki.br, ns2.rascunhos.wiki.br;
default-lease-time 600;
max-lease-time 7200;
log-facility local4;
subnet 172.16.200.0 netmask 255.255.255.0 {
  range 172.16.200.1 172.16.200.50;
  option domain-name-servers ns1.rascunhos.wiki.br;
  option domain-name "rascunhos.wiki.br";
  option routers 172.16.200.254;
  option broadcast-address 172.16.200.255;
  default-lease-time 600;
  max-lease-time 7200;
}
host fedora {
  option host-name "fedora.rascunhos.wiki.br";
  hardware ethernet 08:00:27:f8:2f:5c;
  fixed-address 172.16.200.60;
}
# vim /etc/rsyslog.conf
[...]
local4.*                                                /var/log/dhcpd.log
[...]
# chkconfig dhcpd on
# service dhcpd start
wikiv3/dhcpdcentos6.txt · Last modified: by 127.0.0.1