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
port=0
dhcp-option=option:dns-server,8.8.8.8
interface=eth0
dhcp-range=eth0,192.168.1.30,192.168.1.100,12h
dhcp-option=eth0,3,192.168.1.200

which :
dhcp-option=option:dns-server,8.8.8.8 -->DNS for client
interface=eth0 -->interface on your server to use.
dhcp-range=eth0,192.168.1.30,192.168.1.100,12h -->Range ip client computer.
dhcp-option=eth0,3,192.168.1.200 --> 3 for Enable dynamic address allocation for bootp, and 192.168.1.200 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 :

6 comments:

  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

    ReplyDelete
  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..

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete

Please fill your name to response.