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

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 10.0.0.2 and the dhcp server at eth0

    My personal computer is at 10.0.0.1

    My other computers goes from 10.0.0.3 to 10.0.0.20

    My guest computers goes from 10.0.0.21 to 10.0.0.30

  • I have 2 internet connections:

    1 internet is connected to 10.0.0.2 on eth1

    2 internet is connected to my personal computer at 10.0.0.1

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;
authoritative;
deny duplicates;

log-facility            local7;

subnet 10.0.0.0 netmask 255.255.255.0 {
        option broadcast-address 10.0.0.255;
        option subnet-mask 255.255.255.0;

        pool {
                range 10.0.0.1 10.0.0.1;
                deny unknown-clients;
        }

        pool {
                option routers 10.0.0.2;
                option domain-name-servers 10.0.0.2;
                range 10.0.0.3 10.0.0.200;
                deny unknown-clients;
        }
}

host m1 {
        hardware ethernet some-mac;
        fixed-address 10.0.0.1;
}

host datacomp {
               hardware ethernet other-mac;
               fixed-address 10.0.0.3;
}

# more comps ....

subnet 10.0.111.0 netmask 255.255.255.0 {
}

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.