Skip to content

Install and Configure DHCP server in Ubuntu

Good night,

If you want to install DHCP server in Ubuntu, use

$ sudo apt-get install dhcp3-server

And then edit /etc/dhcp3/dhcpd.conf I commented all lines and add this ones:

INTERFACES=”eth1″; # INTERFACE CONECATADA AO MEU ROTEADOR
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative; # DHCP PRINCIPAL DA REDE

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.150; # FAIXA DE IPS A SER DISTRIBUIDA
option routers 192.168.0.254; # GATEWAY
option domain-name-servers 200.247.141.11; # SERVIDOR DNS
option subnet-mask 255.255.255.0; # MASCARA DE SUBREDE
option broadcast-address 192.168.0.255; # ENDEREÇO DE BROADCAST
default-lease-time 600;
max-lease-time 7200;
}

Restart eh DHCP server:

$ sudo /etc/init.d/dhcp3-server restart

See you,
Matheus

Reference:
Google + DHCP SERVER UBUNTU

Published inAprendendoLinux

580 Comments

  1. sparkdex ai SparkDex is redefining decentralized trading with speed, security, and real earning potential. On spark dex, you keep full control of your assets while enjoying fast swaps and low fees. Powered by sparkdex ai, the platform delivers smarter insights and optimized performance for confident decision-making. Trade, earn from liquidity, and grow your crypto portfolio with sparkdex — the future of DeFi starts here.

Leave a Reply

Your email address will not be published. Required fields are marked *