computers:dhcp_server_configuration
This is an old revision of the document!
Table of Contents
DHCP server configuration
Installation
Download and install the dhcp3-server package
sudo apt-get install dhcp3-server
Configuration
Specify the interfaces dhcpd should listen to in /etc/default/dhcp3-server, for example:
INTERFACES="eth1"
Configure the interface used in /etc/network/interfaces, for example:
auto eth1
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.254
Edit /etc/dhcpd.conf, for example:
To start/stop/restart the service or to check the status:
sudo /etc/init.d/dhcp3-server start sudo /etc/init.d/dhcp3-server stop sudo /etc/init.d/dhcp3-server restart sudo /etc/init.d/dhcp3-server status
References
computers/dhcp_server_configuration.1314199797.txt.gz · Last modified: by chkuo