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 06-05-2010, 06:22 PM   #1
mcsaky
LQ Newbie
 
Registered: Feb 2009
Location: Lancaster, CA
Distribution: RH, SUSE, Ubuntu
Posts: 13

Rep: Reputation: 0
RHEL5 simple network


Ok let me ask this. Going through maybe 50 different howto's, 4 books and countless serchers on LQ and google I cant get for the sake of me a simple network up on my RHEL5 machine. So, can someone please explain step by step how to go about doing this or is there something wrong with my nic's?????

Cable Modem (98.148.144.1) // this is the first ip hit on tracert to google.com

eth0 (98.148.151.126) // this ip is pulled form the cable modem to my 1st nic in the server

eth1 (192.168.1.1) // static ip on the second nic in the server

DHCP is set up on eth1.
eth1 has a cat5 to a hub.
client pc has a cat5 to the hub.
client pc is dhcp and pulls an ip (192.168.1.11)
client pc can ping (192.168.1.1) but CAN NOT ping (98.148.151.126, 98.148.144.1, google.com or 74.125.19.103).

Now, can someone put together a simple /etc/sysconfig/network, /etc/sysconfig/network-scripts/ifcfg-eth0 and eth1. route add's and whatever is needed to get this crap running pls?

I have tried for days 24/7 to get this crappy client pinging to the internet through the Red Hat machine without success. Is Red Hat realy this worthless of an OS or is my nic bad? I had a friend who works with Solaris look at it and even he cant figure this out. Win NT server runs fine, clients hooked up and surf'd the inet.

/Thx in advance......

// Extremely pissed of Red Hat user
 
Old 06-06-2010, 09:38 AM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
look at /etc/sysctl.conf for
Code:
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
if it is 0, RHEL won't forward (route).

To see the current value set for the running kernel
Code:
 cat /proc/sys/net/ipv4/ip_forward
if it is not 1, set it to 1 with

Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
and test connection from client to Internet again.


This is the most likely, but not only possible item preventing traffic from being routed. If the above looks good (or does not work after setting ip_forward = 1) then we'll need to look elsewhere... such as firewall settings.
 
  


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
simulating network installation of RHEL5 avee137 Linux - Newbie 4 05-24-2010 03:28 PM
Network Card Issue in RHEL5 prabakaranm Linux - Networking 0 03-01-2010 10:16 AM
how to configure wireless network on RHEL5 vir_20011 Linux - Wireless Networking 2 02-21-2010 02:00 PM
how to boot rhel5 via network in vmware priyank123 Linux - Networking 4 04-10-2008 01:04 AM
Weird Network Problem on RHEL5 yusiang Linux - Networking 1 08-09-2007 01:49 AM

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

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