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 07-01-2003, 10:24 AM   #1
rnguyenle
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
Question DHCP server


Hi,

Can any one help, I tried to setup DHCP server redhat linux 9 with 2 NIC, eth0 is setting with real IP address/24, and eth1 is setting with 10.10.10.1/24. DHCP is set for eth1.

Problem is from any client pc, I can not ping to real gateway. How do I setup route?
eth0 (xxx.xxx.xxx.4/24) GWxxx.xxx.xxx.1 and
eth1 (10.10.10.1/24) GW xxx.xxx.xxx.4




Thank You,
Richard
 
Old 07-01-2003, 08:01 PM   #2
domingo-br
LQ Newbie
 
Registered: Jul 2003
Location: São Paulo
Distribution: Red Hat
Posts: 6

Rep: Reputation: 0
hi!

1. you need to parse in dhcp package the gateway ( i think 10.10.10.1... )


2. in your dhcpd box you need to enable ip_forward ( to parse packages from 1 interface to another, de default in most of distribuctions this feature is turned off, to enable execute this comand: )
echo 1 > /proc/sys/net/ipv4/ip_forward


3. do you want to make nat from clients?
iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o eth0 -j MASQUERADE
iptables -P FORWARD ACCEPT

( very simple and insecure nat rules )

Sorry my poor english, i'am brazilian!
good bye!
Domingo Antonio
 
Old 07-01-2003, 08:17 PM   #3
Juliancito
LQ Newbie
 
Registered: Jul 2003
Posts: 3

Rep: Reputation: 0
DOWNLOAD QUICKTABLES (a BASH SCRIPT TATH GENERATES ALL THINGS U NEED TO BECOME A BOX INTO A ROUTER AND EASY!!!!!!(FOR EXAMPLE: ppp0 to eth0 and wan0 to eth1)
The script ask u a few easy questions and the generates a file rc.firewall (put it in etc/rc.d/ folder and include in rc.local file the line
/etc/rc.d/rc.firewall (With THIS u WILL BE enableing routing for example from ADSL ppp0 to eth0)

Run quicktables again and generate another rc.firewall file (change the name)

Do the same thinbgs as above: like that u will be enabling for example wan0 (wireless conextion) routed to eth1


the dont make dhcpd service to start as a service
in etc/rc.d/rc.local file include:
dhcp eth0 eth1
 
Old 07-02-2003, 08:02 AM   #4
rnguyenle
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you for your replied, I will test my system with your suggestion.
Thanks,
Richard
 
  


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 client not getting IP from dhcp server jkmartha Linux - Networking 2 06-17-2005 08:12 AM
how can a DHCP client get the DHCP server IP? AshesOfTime Linux - Networking 3 11-24-2004 06:50 AM
Setting up a DHCP server w/ the server on a wireless network Ionexchange Linux - Wireless Networking 0 05-08-2004 10:56 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM
How do you make the ip masquerade server/dhcp server broadcast dns to lan cmisip Linux - Networking 6 01-25-2003 10:43 PM

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

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