LinuxQuestions.org
Visit Jeremy's Blog.
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 08-24-2003, 02:42 PM   #1
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
Red Hat DHCP Server


Hey everyone, I'm sorry if this questions already been asked a million times but here it goes again. Im trying to setup a DHCP server using Red Hat 7.3. So far I have the dhcpd.conf file configured and the computers on the network are receiving the ip information from the server. However none of them are able to get online. The way my network breaks down is like this:

cable modem - 4 port router - the router runs a line to my linux box - the linux box receives 192.168.1.x from the router in eth0, then eth1 gives out 192.168.0.x, eth1 runs to a 5 port switch which hooks up to the 4 computers in my room. When I release and renew the ip's on my computers they each receive the ip from the server, but no internet connection. So I'm thinking the dhcpd.conf file is configured ok, I think its the network configuration on my linux box that's off. How do i configure eth1 to give internet access though eth0?

thanks for any input.
 
Old 08-24-2003, 02:52 PM   #2
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
There are a few points of failure you have to check.

Firstly, you say that "none of them are able to get online." By online, you mean the internet? You have inter-network connectivity, right? That's how I'm going to assume.

Have you had NAT setup on your linux box before you started using DHCP?

If not, enable the standard IP Masquerading rules in iptables/ipchains. (see: http://www.iptables.org/documentatio...NAT-HOWTO.html )

Also, paste your dhcpd.conf (taking out any 'sensitive' information, if you need to.) Make sure you're advertising a gateway router.

Hope this helps.
 
Old 08-24-2003, 02:55 PM   #3
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
To setup IP Forwarding and Masquerading in RedHat,
take a look at these links.
http://www.linuxquestions.org/questi...threadid=82005
http://www.linuxquestions.org/questi...threadid=80256
 
Old 08-24-2003, 03:09 PM   #4
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
thanks guys, it looks like all i had to do was Edit the file /etc/sysctl.conf and on the line net.ipv4.ip_forward = 0, change 0 to 1.
 
Old 08-29-2003, 06:54 PM   #5
Milstar7
LQ Newbie
 
Registered: Aug 2003
Location: Florida
Distribution: RedHat 9
Posts: 2

Rep: Reputation: 0
I made the same change to the sysctl.conf file and it worked for me too!!! Hooray! I've been working on and off on a similar problem with my netgear router.

Thanks,

JR
 
  


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
Red Hat client does not appear in Windows DHCP server dbruso Linux - Networking 0 08-06-2004 02:31 PM
Upgrading Red Hat 9 to Red Hat Enterprise Server 3 AS louisb Linux - Software 7 02-23-2004 10:25 PM
Red Hat 6.2 DHCP crowmanic Linux - Networking 0 08-20-2003 03:30 PM
red hat dhcp ? TheSlacker Linux - Newbie 1 08-28-2002 04:26 PM
What are the client and server programs in Red Hat Linux for DHCP services? thatgentleman Linux - General 1 03-22-2002 10:20 PM

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

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