#1---Set your IP
to DHCP.
#2---Install isc-dhcp-server:
root@fm-vm:/home/fm# apt-get install isc-dhcp-server
#3---Set your IP
to manual.
#4---Open
isc-dhcp-server file:
root@fm-vm:/home/fm# nano /etc/default/isc-dhcp-server
#---Go to the last
line, add eth0 on the quote sign like this:
INTERFACES="eth0"
#5---Copy
dhcpd.conf to dhcpd.conf-ori
root@fm-vm:/home/fm# cp /etc/dhcp/dhcpd.conf
/etc/dhcp/dhcpd.conf-ori
#6---Configure
below values in dhcpd.conf file, under log-facility local7 write this script:
subnet 192.168.100.0 netmask 255.255.255.0 { #network
range
192.168.100.20 192.168.100.100; # Range
option
domain-name-servers 192.168.100.1, 8.8.8.8; #Pri DNS , Sec DNS
option
domain-name "farihin.com"; #Domain name
option routers
192.168.100.5; #Gateway
option
broadcast-address 192.168.100.255; #Broadcast
default-lease-time 600;
max-lease-time
7200;
}
#7---Now
start/restart dhcp service:
root@fm-vm:/home/fm# service isc-dhcp-server restart
#8---On your
windows, set the ip to DHCP, then try to ping to your primary domain.
Post a Comment