Thursday, April 3, 2014

Linux DHCP server sample config file

 yum install dhcp

 vi /etc/dhcp/dhcpd.conf
# {
# DHCP sever Configuration
# Sample Config For Linux Class by Tayab Khan
# Here we use free google dns for name servers
# and local network and DHCP server IP
# This IP address and Netmask must be on Linux interface and IP range must
be same network
# Config Starts from here
option domain-name "";
option domain-name-servers,;
default-lease-time 600;
max-lease-time 7200;
log-facility local6;
subnet netmask {
  option routers;

# use rsyslog.conf or syslog.conf

vi /etc/rsyslog.conf

local6.*          /var/log/dhcpd.log

No comments:

Post a Comment