Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I wanted to configure a dhcp server for my network but I need 1 special configure on it.

  • My current network is like this:

    My server is currently at and the dhcp server at eth0

    My personal computer is at

    My other computers goes from to

    My guest computers goes from to

  • I have 2 internet connections:

    1 internet is connected to on eth1

    2 internet is connected to my personal computer at

The special configuration is that my personal machine won't get any dns server or gateway so it will still use the internet connected to it while still being possible to access my local network.

Currently to acomplish this I have to manually setup my ip and netmask leaving the dns blank.

Here is how my dhcpd.conf is at the momment:

# dhcpd.conf

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
deny duplicates;

log-facility            local7;

subnet netmask {
        option broadcast-address;
        option subnet-mask;

        pool {
                deny unknown-clients;

        pool {
                option routers;
                option domain-name-servers;
                deny unknown-clients;

host m1 {
        hardware ethernet some-mac;

host datacomp {
               hardware ethernet other-mac;

# more comps ....

subnet netmask {

Currently what happens is that it will always give me the gateway and dns on my personal computer which is not what I want.

The above configuration seems to work fine as to not letting any non-registered mac to gain an ip.

Are there any ways to fix up my personal computer dhcp or will I have to always configure it by hand like I do currently ?

anyone, wrong place ?

share|improve this question

closed as too localized by fossfreedom Feb 19 '12 at 19:55

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

Hello, this question has no information and activity for a very long time. I am closing it for now. If by any reason you think this question is still viable or useful in anyways or that there is still a good chance it will be answered please flag it to a moderator or add a comment with the reasons why you want it open. Regards –  fossfreedom Feb 19 '12 at 19:55

Browse other questions tagged or ask your own question.