Bluehost.com Web Hosting $6.95

binding to network interface ?

This is a discussion on binding to network interface ? within the Linux Networking forums, part of the Linux Forums category; Hi all : I have two interfaces on my redhat 7.3 system, eth0 and eth1, eth0 is for general stuff ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-23-2003
Jay Krishnan
 
Posts: n/a
Default binding to network interface ?

Hi all :

I have two interfaces on my redhat 7.3 system, eth0 and eth1, eth0 is for general stuff and eth1:0 , eth1:1 eth1:2 ... is for the web traffic, using apache
makes apache send the web traffic from eth0 instead of eth1,

what should i do to get the web traffic routed through only the eth1
interface ?

asking on the apache news group, tells me it is A OS specific question

any suggestions will be appreciated
thanks
-Jay
Reply With Quote
  #2 (permalink)  
Old 10-23-2003
Lew Pitcher
 
Posts: n/a
Default Re: binding to network interface ?

Jay Krishnan wrote:

> Hi all :
>
> I have two interfaces on my redhat 7.3 system, eth0 and eth1, eth0 is for general stuff and eth1:0 , eth1:1 eth1:2 ... is for the web traffic, using apache
> makes apache send the web traffic from eth0 instead of eth1,
>
> what should i do to get the web traffic routed through only the eth1
> interface ?
>
> asking on the apache news group, tells me it is A OS specific question


It sounds like you want to set the "Listen" option in your apache httpd.conf
file. There may be other parameters as well, though.


--

Lew Pitcher, IT Consultant, Application Architecture
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)

Reply With Quote
  #3 (permalink)  
Old 10-23-2003
Joe Dunning
 
Posts: n/a
Default Re: binding to network interface ?

On Thu, 23 Oct 2003 17:59:13 +0000 (UTC), Jay Krishnan
<krishnan@bayou.uh.edu> wrote:

>Hi all :
>
>I have two interfaces on my redhat 7.3 system, eth0 and eth1,
> eth0 is for general stuff and eth1:0 ,
> eth1:1 eth1:2 ... is for the web traffic, using apache
>makes apache send the web traffic from eth0 instead of eth1,
>
>what should i do to get the web traffic routed through only the eth1
>interface ?
>
>asking on the apache news group, tells me it is A OS specific question


You have not fully explained what you are trying to do here with the 2
cards, so I will propose a WAG:
Look up references to the iproute2 commands. With these commands, you
can force packets to go out of the appropriate interface according to
their source IP address and many other things. This may provide your
solution. Check out this web page: http://www.ssi.bg/~ja/nano.txt

Like I said, I'm just taking a WAG at what the problem is. What I have
written may be totally irrelevent to your problem!

Reply With Quote
  #4 (permalink)  
Old 10-23-2003
Leon The Peon
 
Posts: n/a
Default Re: binding to network interface ?


"Jay Krishnan" <krishnan@bayou.uh.edu> wrote in message
news:bn94th$4us7$1@masala.cc.uh.edu...
> Hi all :
>
> I have two interfaces on my redhat 7.3 system, eth0 and eth1, eth0 is for

general stuff and eth1:0 , eth1:1 eth1:2 ... is for the web traffic, using
apache
> makes apache send the web traffic from eth0 instead of eth1,
>
> what should i do to get the web traffic routed through only the eth1
> interface ?



Routing and binging are different things.

If your default route is via eth0, and you have no other routes, than that
is why the packets go out through eth0.

Why didnt you make the eth1:1 eth1:2 etc, actually be eth0:1 ? eth0:2 ????

You can try finding out how to add routes that specfiy the source address
(port)
and route out to the gateway via eth1. This is routing by source.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:17 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0