Pages

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 192.168.50.0 and DHCP server IP 192.168.50.1
# This IP address and Netmask must be on Linux interface and IP range must
be same network
# Config Starts from here
option domain-name "khan.com";
option domain-name-servers 8.8.8.8, 4.2.2.2;
default-lease-time 600;
max-lease-time 7200;
log-facility local6;
subnet 192.168.50.0 netmask 255.255.255.0 {
  range 192.168.50.10 192.168.50.20;
  option routers 192.168.50.1;
}


===========================
# use rsyslog.conf or syslog.conf

vi /etc/rsyslog.conf

local6.*          /var/log/dhcpd.log

No comments:

Post a Comment