Install DHCP on Debian 7 Wheezy

2
Install DHCP on Debian 7 Wheezy Configure network interface: sudo nano /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.1.100 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 Install isc-dhcp-server sudo apt-get install isc-dhcp-server Enable network interface for isc-dhcp-server sudo nano /etc/default/isc-dhcp-server INTERFACES="eth0" Configure isc-dhcp-server sudo nano /etc/dhcp/dhcpd.conf ddns-update-style none; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.200 192.168.1.240; option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; option routers 192.168.1.1; # set your gateway here option domain-name-servers 192.168.1.100, 192.168.1.101; # set your DNS here option domain-name "siddou.com"; option domain-search "siddou.com"; default-lease-time 86400; max-lease-time 676800; } sudo service isc-dhcp-server restart Define static address: sudo nano /etc/dhcp/dhcpd.conf add at the end of the file: host toto { hardware ethernet 08:0A:38:9c:83:4A; fixed-address 192.168.1.201;

description

i

Transcript of Install DHCP on Debian 7 Wheezy

Install DHCP on Debian 7 Wheezy Configure network interface:sudo nano /etc/network/interfaces

auto eth0iface eth0 inet staticaddress 192.168.1.100netmask 255.255.255.0network 192.168.1.0broadcast 192.168.1.255

Install isc-dhcp-serversudo apt-get install isc-dhcp-server

Enable network interface for isc-dhcp-serversudo nano /etc/default/isc-dhcp-server

INTERFACES="eth0"

Configure isc-dhcp-serversudo nano /etc/dhcp/dhcpd.conf

ddns-update-style none;subnet 192.168.1.0 netmask 255.255.255.0 {range 192.168.1.200 192.168.1.240;option subnet-mask 255.255.255.0;option broadcast-address 192.168.1.255;option routers 192.168.1.1; # set your gateway hereoption domain-name-servers 192.168.1.100, 192.168.1.101; # set your DNS hereoption domain-name "siddou.com";option domain-search "siddou.com";default-lease-time 86400;max-lease-time 676800;}

sudo service isc-dhcp-server restart

Define static address:sudo nano /etc/dhcp/dhcpd.conf

add at the end of the file: host toto {hardware ethernet 08:0A:38:9c:83:4A;fixed-address 192.168.1.201;}

sudo service isc-dhcp-server restart

- See more at: http://siddou.hd.free.fr/2013/06/install-dhcp-on-debian-7-wheezy/#sthash.w5dj7ZrH.dpuf