Assumed that “eth0″ is the interface for network card
IP Address 10.0.0.1
Range: 10.0.0.1 to 10.0.0.30
Subnet Mask: 255.255.255.224
DNS Servers: 193.226.98.1, 193.226.98.2
Domains:r2d2.dositei.ro
Gateway Address: 10.0.0.1
sudo apt-get install dhcp3-server
sudo cp /etc/default/dhcp3-server /etc/default/dhcp3-server_backup
nano /etc/default/dhcp3-server
Find this line
INTERFACES=”"
Replace with the following line
INTERFACES=”eth0″
Save the edited file
sudo cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf_backup
rm /etc/dhcpd.conf
nano /etc/dhcp3/dhcpd.conf
copy and paste the code
ddns-update-style none;
log-facility local7;
subnet 10.0.0.0 netmask 255.255.255.224 {
range 10.0.0.1 10.0.0.30;
option domain-name-servers 193.226.98.1, 193.226.98.2;
option domain-name “r2d2.dositei.ro”;
option routers 10.5.0.1;
option broadcast-address 10.0.0.31;
default-lease-time 600;
max-lease-time 7200;
}
sudo /etc/init.d/dhcp3-server restart




0 Responses to “How to install DHCP on Ubuntu/Debian”