LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-24-2004, 01:45 PM   #1
thirumala
LQ Newbie
 
Registered: Mar 2004
Location: USA
Posts: 18

Rep: Reputation: 0
Thumbs up Router setup on redhat linux 9.0 problem


Hi,

I am new to linux. I want to setup a router on linux PC with following config:


GW-------SW-------------[eth0 linux box with redhat 9.0 eth1]--------client pc

Eth0: 192.168.10.40 with 192.165.10.0 network
Router/GW: 192.168.10.1

Eth1: 192.168.20.1 with 192.168.20.0 network

Client PC: 192.168.20.25


I want to route any type of traffic between eth0 and eth1. What do I need to do?

What is the basic config for router setup?

At present I am able to ping from linux box towards both sides but not from client pc to GW.

Here is “route” command output:

192.168.20.0 192.168.20.1 255.255.255.0 UG 0 0 0 eth1
192.168.20.0 * 255.255.255.0 U 0 0 0 eth1
192.168.10.0 192.168.10.40 255.255.255.0 UG 0 0 0 eth0
192.168.10.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eht1
127.0.0.0 * 255.0.0.0 U 0 0 0 l0
default 192.168.10.1 0.0.0.0 UG 0 0 0 eth0

and

I have enabled IP-forwarding using
< echo "1" > /proc/sys/net/ipv4/ip_forward >

And FORWARD_IPV4=yes in sysctl.conf file.

Please let me know where the things going wrong?


Thanks,
Thiru
 
  


Reply


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
trying to setup linux as router for laptop spooge Linux - Networking 5 09-01-2004 10:37 PM
how to setup router on linux as a open firewall thirumala Linux - Networking 8 04-10-2004 05:38 PM
setup linux firewall/router sub_netter Linux - Networking 4 08-15-2003 06:18 AM
Load Balancing Linux Router Setup remigus Linux - Networking 2 12-02-2002 09:28 PM
Linux Router, setup???? francisjk Linux - Networking 4 08-08-2002 06:59 PM

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

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