LinuxQuestions.org
Help answer threads with 0 replies.
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 04-10-2008, 07:58 AM   #1
vijay.gulge
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
Smile I want to configure RHEL5 as a router using two NICs


I want to configure rhel5 as a router with two nics. Eth0 IP is 192.168.100.1/24 and Eth1 IP is 192.168.1.254/24. My Internet and Present LAN is attached to Eth1. Now whatever the request coming from eth0 it should be diverted to eth1 and vice versa so that i can access internet and other from my present LAN. I tried lot of things but i am not getting at least ping also so please help out for the same!!!
 
Old 04-10-2008, 08:12 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
OK, well the most likely trap is not your box, but the device your eth1 network uses as a default gateway to the net. Does that box know how to get to your eth1 subnet? by default it won't have a clue, so whilst your data can follow default route out, but getting back in is different altogether. you *could* do a nat on your rhel box, but that's not nice really, best to do it properly by correct routing tables.

of course this could be irrelevant... what have you actually done on the box? enabled ip_forward?
 
Old 04-10-2008, 08:26 AM   #3
vijay.gulge
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
OK, well the most likely trap is not your box, but the device your eth1 network uses as a default gateway to the net. Does that box know how to get to your eth1 subnet? by default it won't have a clue, so whilst your data can follow default route out, but getting back in is different altogether. you *could* do a nat on your rhel box, but that's not nice really, best to do it properly by correct routing tables.

of course this could be irrelevant... what have you actually done on the box? enabled ip_forward?
Yes sir i have enabled ip_forward & restarted network service
 
Old 04-10-2008, 08:50 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
right so, as above really. you might want to also run tcpdump or wireshark on the eth0 interface to see if traffic is leaving your box for the internet.
 
  


Reply

Tags
as, rhel5, router


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to configure Clustering in RHEL5 alokaryan Linux - Newbie 2 03-28-2008 05:14 AM
Bonding NICS Rhel5 treedstang Linux - Enterprise 1 09-06-2007 09:41 AM
How to configure mail server on RHEL5 Paras_mukeshmenaria Red Hat 3 08-15-2007 02:31 PM
how to configure 6 NICs on Red hat 9.0 to make a firewall/router for 5 lans? johnny_boy_2k3 Linux - Hardware 1 05-02-2004 08:28 PM
Can't configure my NICs Tekime Linux - Networking 3 02-10-2002 11:20 AM


All times are GMT -5. The time now is 08:06 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration