LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-10-2007, 08:08 AM   #1
PcHammer
Member
 
Registered: Jan 2001
Location: Ljubljana Slovenija
Distribution: Slackware
Posts: 70

Rep: Reputation: 15
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

Last edited by PcHammer; 10-10-2007 at 08:42 AM.
 
Old 10-10-2007, 10:31 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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
 
Old 10-11-2007, 04:01 AM   #3
PcHammer
Member
 
Registered: Jan 2001
Location: Ljubljana Slovenija
Distribution: Slackware
Posts: 70

Original Poster
Rep: Reputation: 15
Thank you so much, its working like it should.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP subnets klnasveschuk Linux - Networking 2 11-17-2007 11:04 PM
Handling multiple subnets with DHCP/DNS Kristijan Linux - Networking 2 03-17-2007 07:57 PM
DHCP for 2 subnets omlex Linux - Networking 11 03-04-2007 06:41 PM
Routing multiple subnets to multiple wans raven1000x Linux - Networking 1 03-10-2004 02:29 AM
DHCP server with multiple nics and subnets hawkpaul Linux - Networking 6 12-20-2001 07:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration