LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP: Two subnets and some machines on both (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-two-subnets-and-some-machines-on-both-748424/)

benjalien 08-18-2009 08:53 AM

DHCP: Two subnets and some machines on both
 
Hi everyone,

I have two separate subnets (192.168.2.0/24 and 192.168.8.1/24) and I would like my DHCP to give some machines (including mine) a 192.168.2.X address using a 255.255.0.0 subnet so I can access both, but not everyone should!

My gues was to do something like

host Benja{
hardware ethernet XXXXXX;
fixed-address 192.168.2.22;
fixed-netmask 255.255.0.0;
}

but it doesn't work...

Any idea?

Thanks!

Person_1873 08-18-2009 12:02 PM

is your DHCP server an embedded device such as a router or is it a dedicated machine?

benjalien 08-18-2009 04:23 PM

Oups, indeed I forgot to mention that I'm usung the classic Debian DHCP server :)

Person_1873 08-19-2009 06:31 AM

in that case i am unfamiliar with it sorry for the hastle

benjalien 08-21-2009 03:15 AM

Solved!
 
Ok, I've got it (from a friend of mine)

host benja{
hardware ethernet 00:1e:37:XX:XX:XX;
fixed-address benja.localdomain;
option subnet-mask 255.255.0.0;
}


All times are GMT -5. The time now is 10:44 AM.