LinuxQuestions.org
Help answer threads with 0 replies.
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 07-27-2008, 12:47 PM   #1
revinking
LQ Newbie
 
Registered: Jul 2008
Posts: 7

Rep: Reputation: 0
how to set up DHCP for both LAN ports


My Transparent squid box has 2 LAN cards

eth0: 10.0.0.2 (connected to internet)
gw : 10.0.0.1

eth1: 192.168.1.1 (connected to LAN)
gw : 10.0.0.2


How do i set dhcp server for both 192.168.1.0/24 LAN and 10.0.0.0/24 LAN networks. Both LAN networks need dhcp server from the same squid box??

Thanks for help
 
Old 07-28-2008, 10:23 AM   #2
grejon04
Member
 
Registered: Jun 2008
Posts: 43

Rep: Reputation: 15
I think you would just edit your dhcpd.conf file to have an entry for both networks (google the file name for an example of how this file is set up, and triple-check for errors - this is where most problems come from) then you should be able to start the dhcpd service and pass addresses for both networks.

Also, I don't think a network can have a default gateway that is not on the network (your 192.168 network cannot forward L2 traffic to the 10 net) - are you trying to have this machine route the packets?
 
Old 07-29-2008, 01:31 AM   #3
revinking
LQ Newbie
 
Registered: Jul 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Yes this machine is also a router

Quote:
Originally Posted by grejon04 View Post
I think you would just edit your dhcpd.conf file to have an entry for both networks (google the file name for an example of how this file is set up, and triple-check for errors - this is where most problems come from) then you should be able to start the dhcpd service and pass addresses for both networks.

Also, I don't think a network can have a default gateway that is not on the network (your 192.168 network cannot forward L2 traffic to the 10 net) - are you trying to have this machine route the packets?
This sqid machine is a router as well. but i am having troubles with my incoming connections i.e. to my public DMZ servers. HOw do i set it in the iptables to let incoming connections to my DMZ in 10.0.0.0/24 network??
 
Old 07-30-2008, 06:37 AM   #4
grejon04
Member
 
Registered: Jun 2008
Posts: 43

Rep: Reputation: 15
Right, but a packet sent from a 192 network will not find the 10 net without being elevated to layer 3 through a routed 192 address first - you cannot have a DG on a different network.

IPtables -

http://www.yolinux.com/TUTORIALS/Lin...rkGateway.html

http://rimuhosting.com/howto/firewall.jsp

http://www.faqs.org/docs/iptables/
 
  


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
LXer: How To Set Up A DHCP Server For Your LAN LXer Syndicated Linux News 0 09-24-2006 06:54 AM
Check Open Ports on DHCP Server moo-cow Linux - Networking 3 07-06-2006 01:50 PM
I need to lock some ports between 2 workgroups but retain LAN connectivity... jamal555 Linux - Networking 2 04-22-2005 05:19 AM
How to set up a LAN with four PC and a 4 ports ASDL Router jeffcheng Linux - Networking 1 09-21-2004 11:02 AM
DHCP, webmin, and TCP/IP ports mattrobbins Linux - Networking 5 10-14-2003 03:16 AM

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

All times are GMT -5. The time now is 01:43 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
Open Source Consulting | Domain Registration