Installation of DHCP Server on Linux Server
3:30 PMUbuntu- Server to install DHCP Server
#app-get Install dhcp3-Server or sudo apt-get install isc-dhcp-server
Red hat/fedora/centos - Server to install dhcp Server
#yum install dhcp
configuration file for dhcpRedhat/fedora/centos linux DHCP configuration file
/etc/dhcp/dhcpd.conf
ubuntu linux configuration file
/etc/dhcp/dhcpd.conf
add below entires scope for dhcp-server and lease-time
default-lease-time 600;
max-lease-time 7200;
subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.3 10.1.1.254;
}
subnet 192.168.0.0 netmask 255.255.0.0 {
}
configuration of host configuration
host printer {
hardware ethernet 00:16:d3:b7:8f:86;
fixed-address 10.1.1.100;
}
host web-server {
hardware ethernet 00:17:a4:c2:44:22;
fixed-address 10.1.1.200;
}
configuration of dhcp-server relay agent
# apt-get install isc-dhcp-relay
Then create a configuration file /etc/default/isc-dhcp-relay with two lines:
SERVERS="192.168.5.5"
INTERFACES="eth1"
Bootp Support for pxe Server
host bootp {
hardware ethernet 00:00:2e:55:12:09;
fixed-address Server address;
filename "/path/to/tftpboot/bootp.boot";
}
how to enable options in dhcp
add the line that
options 60 or so on on dhcp conf file
0 comments