LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 05-17-2005, 11:56 AM   #1
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Forwarding dhcp requests through a Linux router


Hi !

I've seen something when working for a customer and I've never figured out if it was doable with Linux boxes... that's not really because I need it, but I'm interested in how this could/would work.

So, my customer has got a huge LAN made of Cisco boxes. He has many VLANs, each in a different subnet. They are connected through layer 3 switches (4 catalysts 6000 routing through OSPF as a matter of fact).

It's time to use sample config.... let's say that :
VLAN1 is 192.168.1.0/24, that's for the PC
VLAN2 is 192.168.2.0/24, that's for the servers

There's only one dhcp server : 192.168.2.1

When a PC requests for an IP, the layer 3 switch that receives the request forwards it to the dhcp server (because the dhcp server's IP is configured in the switch) and uses the IP of the interface that received the request as a source IP for the forwarded dhcp request.

The dhcp server receives the request, sees the source IP and thus knows in what subnet it must select the IP to send back. So he replies to the layer 3 switch which in turn forwards the dhcp response to the PC.

I know how to set this up on Cisco routers, that's a single command line :
ip helper-address 192.168.2.1

What I wonder is :
1/ How could we do this with a Linux router ?
2/ How could we configure a Linux dhcp server to work like this ? Do you think that configuring all subnets on the dhcpd.conf file would be enough (maybe... as a matter of fact, there's no specification in the Cisco configuraiton guides on what dhcp server must be used, so it may be a standard) ?

Any comment or idea will be appreciated...

Last edited by fr_laz; 05-17-2005 at 11:58 AM.
 
Old 05-19-2005, 09:14 AM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Original Poster
Rep: Reputation: 32
Re,

ok, I found... that's the dhcrelay command...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Interface card(Ethernet) not sending DHCP requests vishalsethia Linux - Newbie 5 05-08-2005 02:12 AM
dhcp client requests a new address every time EdoardoC Linux - Networking 6 02-02-2005 06:02 PM
DHCP Requests and Discovers not receiving Response xmnemonic Linux - Networking 1 01-10-2004 10:01 PM
Port Forwarding not working for Internal requests angelgw Linux - Networking 2 06-29-2003 01:42 AM
blocking DHCP requests jjfate Linux - Networking 4 06-20-2003 02:49 PM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration