LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP on multiple subnets (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-on-multiple-subnets-590778/)

PcHammer 10-10-2007 08:08 AM

DHCP for multiple subnets
 
Hi,

This might already be asked but i did not find the answer.

So my situation is this, i use 1 DHCP server on 192.168.0.0 subet (ip 192.168.0.6), my firewall has 3 network cards inside (1 ext, and 2 internals - 192.168.0.0 and 192.168.1.0), and i would like that my DHCP would serve both subnets (by making two scoopes).
So basically i would need to forward DHCP requests from 192.168.1.0 sub net to DHCP server (192.168.0.6), now i'm using iptables on my firewall and would need to forward this requests but no matter how i try i'm unable to succeed.

I hope this makes a little sense what i'm trying to ask.

Thank you in advance,

Milos

farslayer 10-10-2007 10:31 AM

I think you will need a DHCP relay agent..

the relay agent will catch the DHCP request broadcasts from the client and forward them directly to the DHCP server. the server will respond with the appropriate address for the subnet the request came from, and return that address to the agent. which in turn completes the DHCP process with the client.

(Cisco calls this an 'IP helper address' in their terminology)

http://linux.die.net/man/8/dhcrelay

PcHammer 10-11-2007 04:01 AM

Thank you so much, its working like it should.


All times are GMT -5. The time now is 03:04 AM.