762
Comment:
|
832
|
Deletions are marked like this. | Additions are marked like this. |
Line 22: | Line 22: |
Install the DHCP server. | |
Line 27: | Line 27: |
== Configure the server == |
|
Line 28: | Line 30: |
Line 33: | Line 34: |
== Configure the server == Edit `/etc/default/isc-dhcp-server` and set the following value |
=== Choose Network Deevice === Edit `/etc/default/isc-dhcp-server` and set the dhcp server to run on `eth0`. |
Line 40: | Line 40: |
=== Stop the server === | === Start the server === |
Line 43: | Line 43: |
service isc-dhcp-server stop | service isc-dhcp-server start |
DHCP Primary
Network
We will give the DHCP primary a static IP-address. Edit /etc/networking/interfaces and make the following changes.
# The primary network interface #allow-hotplug eth0 #iface eth0 inet dhcp auto eth0 iface eth0 inet static address 192.168.1.36 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.1.255 gateway 192.168.1.1
Software
Install the DHCP server.
apt-get install isc-dhcp-server
Configure the server
Stop the server
service isc-dhcp-server stop
Choose Network Deevice
Edit /etc/default/isc-dhcp-server and set the dhcp server to run on eth0.
INTERFACESv4="eth0"
Start the server
service isc-dhcp-server start