1: apt-get install isc-dhcp-server
2. vim /etc/dhcp/dhcpd.conf
Edit these two lines:
option domain-name "bol-online.com";
option domain-name-servers 202.84.32.22, 202.84.32.23; [ DNS ]
And also these three lines:
subnet 192.168.4.0 netmask 255.255.255.0{
range 192.168.4.1 192.168.4.20;
option routers 192.168.4.254; [ Local Gateway ]
}
3. /etc/init.d/isc-dhcp-server restart
0 Comments