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 06-21-2002, 08:08 AM   #1
d-rez
LQ Newbie
 
Registered: May 2002
Distribution: RH 7.2
Posts: 18

Rep: Reputation: 0
eth0 to eth1


What am I missing here?

First of I have a RH 7.2 server w/ 2 Ethernet cards. Im using it for
a proxy server.

Since I set it up It has been running slow. After alot of trouble shooting I've narrowed it down to a route problem.

my eth0 (X.X.181.17) is my internal IP and my eth1 (X.X.180.17) is my external IP. Whats happening is that when a packet hits eth0, eth0 sends to its default GW which is X.X.181.1 and the GW sends it to the external side eth1!!!! I want all web traffic to go from eth0 to eth1 and not leave the box. How can I set this up????

Thanks in advance!
 
Old 06-21-2002, 08:26 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
if you send something to .181.1 it has to get there through .181.17

do you have these route entries

route -n

255.255.255.255 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
192.168.181.17 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.180.17 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.181.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.181.1 0.0.0.0 UG 0 0 0 eth0


or something like it

Last edited by DavidPhillips; 06-21-2002 at 08:30 AM.
 
Old 06-21-2002, 10:02 AM   #3
d-rez
LQ Newbie
 
Registered: May 2002
Distribution: RH 7.2
Posts: 18

Original Poster
Rep: Reputation: 0
Here it is.......

Kernel IP routing table
Dest GW mask Flag Met Ref Use Iface
X.X.181.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
X.X.180.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 X.X.180.1 0.0.0.0 UG 0 0 0 eth1
 
Old 06-21-2002, 06:18 PM   #4
Druaga
Member
 
Registered: May 2002
Location: Canada
Distribution: Slackware
Posts: 111

Rep: Reputation: 15
why do you want the web triffic to go from eth0 to eth1 without leaving the computer?
I got my proxy set-up on port 3129 on my eth 1 (internal) and tell my computers to use a proxy at 192.168.0.1:3129.
 
Old 06-21-2002, 08:43 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
it should be working ok with that route

is everything that goes from this computer out slow

it may be the nic or a cable problem.

if you want it to bridge the two networks then look into making it a bridge. otherwise it sounds normal to me.

if the server is to access a computer on the .180.0 interface you will see that it uses the right interface to get there.

also it will use the other one for addresses in it's network
 
  


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
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 06:57 PM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 03:33 PM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 01:12 PM
specifying eth0 and eth1 letrout Linux - Networking 6 02-20-2004 02:21 PM
Kernel 2.4.22 finds eth0 and eth1 but 2.6.0 does not find eth1 coollink Linux - Networking 3 01-13-2004 08:32 PM

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

All times are GMT -5. The time now is 10:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration