Home » » Simple DHCP Server with dnsmasq

Simple DHCP Server with dnsmasq

Dynamic Host Configuration Protocol (DHCP) is a standardized networking protocol used by servers on an IP network to allocate IP addresses to computers.

Install on Debian or Ubuntu :
sudo apt-get install dnsmasq

Install on Centos :
yum install dnsmasq

Config for dnsmasq.conf locate at /etc/dnsmasq.conf
add the following config on the top your dnsmasq.conf

which :
dhcp-option=option:dns-server, -->DNS for client
interface=eth0 -->interface on your server to use.
dhcp-range=eth0,,,12h -->Range ip client computer.
dhcp-option=eth0,3, --> 3 for Enable dynamic address allocation for bootp, and is default gateway for client computer.

and then, restart service :
sudo service dnsmasq restart

and try connect your pc/laptop to get automatic ip address.
Share this article :


  1. Thank you! I have to thank you for the efforts you’ve put in penning this site.I really hope to check out the same high-grade blog posts by you later on as well. In truth, your creative writing abilities has motivated me to get my own website now !
    barbie games| barbiegames| barbie| shooting games| shootinggames| shooting| dora games| doragames| dora
    fighting games| fightinggames| fighting| kissing games| kissinggames| kissing| christmas games| christmasgames| christmas

  2. Written, Thank you for the introduction of a range of information that is very interesting to see in this article.
    Signature: open facebook | facebook login | happy wheels | happy wheels game | earn to die | earn to die game
    I enjoyed over read your blog post. Your blog have nice information, I got good ideas from this amazing blog. I am always searching like this type blog post. I hope I will see again..

  3. Thanks for sharing such a nice article. It is really useful to me and all people. One think in my mind came while reading that it is not wasting of time.
    happy wheels | friv | girlsgogames | games2girls | happy wheels

  4. The blog or and best that is extremely useful to keep I can share the ideas. Age Of War 2
    Big Farm | Slitherio | Tank Trouble
    Of the future as this is really what I was looking for, I am very comfortable and pleased to come here. Thank you very much.
    Happy Wheels | Goodgeme Empire | Slither.io

  5. You go to our Web page you can play online games for free.
    Our Web page selection is the biggest collection so you can play entirely for free
    gun mayhem | age of war
    learn to fly | happy wheels game
    tank trouble

  6. I was very impressed by this post, this site has always been pleasant news. Thank you very much for such an interesting post. Keep working, great job! In my free time, I like play game: facebooklite.com.br. What about you?

  7. I like to get up early to go out and breathe fresh air. I feel that it is good for health and a good habit


Please fill your name to response.