LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-20-2006, 03:44 AM   #1
boeboe2005
LQ Newbie
 
Registered: Nov 2005
Posts: 13

Rep: Reputation: 0
filter dhcp-request on one subnet


We want to connect 2 physical networks to each other by a Mandrake 10.2 with 2 networkcards. Both are on the same subnet (10.0.0.0/24). The dhcp-request from physical network A may not go to physical network B and vice versa since each physical network has his own dhcp-server. When a computer in physical network A requests an ip-adres only the dhcp-server in physical network A may answer (whith it's perticular settings).

How can i set up the 2 network-cards so that all the traffic on nic1 is sent to nic2 and vice versa? The default gateway is always the same for all nics.

When the network card are set up, i can configure my firewall to block dhcp traffic from one physical network to the other.

Any suggestions?

Thanx in advance!
 
Old 02-20-2006, 04:12 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you have two networks, you should be using two separate subnets. Otherwise, you could simply use a switch, unless you want to use the Mandrake host as a bridge.

Normally, the network address determines which interface traffic should be routed to.
You could google for "transparent bridge filtering" if that is what you have in mind.
 
Old 02-20-2006, 04:20 AM   #3
boeboe2005
LQ Newbie
 
Registered: Nov 2005
Posts: 13

Original Poster
Rep: Reputation: 0
It is not just a bridge. It has to block all dchp-request from one networkpart A to networkpart B and from networkpart B to networkpart A. Both networkparts are one the same subnet and have there own dhcp-server (each whith it's own non-overlapping ip-range).
 
Old 02-20-2006, 08:43 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
A transparent bridge can be setup to block the DHCP traffic from passing. google for 'transparent filtering bridge'.

I don't understand why you don't just have one network and use one of the DHCP servers or have the two networks on different subnets. This is forcing you to use an exotic solution, violating the KISS rule.
 
Old 02-21-2006, 10:37 AM   #5
boeboe2005
LQ Newbie
 
Registered: Nov 2005
Posts: 13

Original Poster
Rep: Reputation: 0
jschiwal thanks for your advice. The reason for the weird configuration is that the network is actually consists of 2 networks (from each school) joined together. Connected to each other with a wireless bridge. We want the ip adresses from school A to be in a range 10.2.0.1-10.2.255.254 and for school B f.i. in 10.3.0.1-10.3.255.254. If there is only one dhcp server we can't set/predict what ip-adress the nic would get. We tried to use dhcp user classes but we don't get it to work.
I we can use 2 dhcp-server one in school A and one in school B and if we can prevent dhcp request to cross the bridge we get an ipadress in the right ip-range.

Hopefully my explanition is clear.

Should i use another configuration? Or just let them mangle the ipadresses?
 
  


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
ADSL DHCP A-OK, but Mandrake 10.1 to be DHCP for other subnet is a problem turnbui Linux - Networking 2 08-20-2005 09:34 AM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 AM
Could not filter the request of LAN razan Linux - Security 1 04-09-2005 10:17 AM
DHCP Subnet Problems Hunza Linux - Networking 14 06-14-2004 03:38 AM
unable to get out of my subnet w/o dhcp wendallsan Linux - Networking 8 10-13-2003 02:52 PM

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

All times are GMT -5. The time now is 06:31 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