Re: all traffic goes via eth0.. why?
- From: Unruh <unruh-spam@xxxxxxxxxxxxxx>
- Date: Mon, 23 Feb 2009 18:09:00 GMT
Rob <nomail@xxxxxxxxxxx> writes:
Unruh <unruh-spam@xxxxxxxxxxxxxx> wrote:
"uwcssa@xxxxxxxxx" <uwcssa@xxxxxxxxx> writes:
thanks a lot for your comment... that is what I feared...
basically, I got more than 2 network cards (I posted two to simply the
problem)
We have a server side application that needs a number of different
networks (data network, private network, corporate network, etc), We
do not want one network eats the bandwidth of another network. Thus I
tried to assign different ethX (also 192.168.X.X) to different
network cards, and hoping data sent over different 192.168.X.X will
gets carried on different ethX and goes via different ethernet cable.
So in your opinion, how should I set things up? any sample config
template or URL to follow? thanks a bunch!
You cannot send different stuff over different networks as far as I know.
Of course this is not true.
You can use iproute2 with a number of rules to route the traffic from
different source ip addresses over different ethernet cards.
The question was not sending different sources over different nets, but
different CONTENT. Eg database traffic over one, email over another. There
is no content filtering even with iproute2 AFAIK
This is actually not very difficult. Just run commands like these in
your startup sequence after the network has been brought up:
ip rule add from 192.168.70.1 table 1 priority 1
ip rule add from 192.168.70.2 table 2 priority 2
ip rule add from 192.168.70.3 table 3 priority 3
(etc)
ip route add default dev eth0 via 192.168.70.200 table 1.
ip route add 192.168.70.0/24 dev eth0 table 1
ip route add default dev eth1 via 192.168.70.200 table 2
ip route add 192.168.70.0/24 dev eth1 table 1
ip route add default dev eth2 via 192.168.70.200 table 3
ip route add 192.168.70.0/24 dev eth2 table 1
(etc)
- Follow-Ups:
- Re: all traffic goes via eth0.. why?
- From: Rob
- Re: all traffic goes via eth0.. why?
- References:
- all traffic goes via eth0.. why?
- From: uwcssa@xxxxxxxxx
- Re: all traffic goes via eth0.. why?
- From: Rob
- Re: all traffic goes via eth0.. why?
- From: uwcssa@xxxxxxxxx
- Re: all traffic goes via eth0.. why?
- From: Unruh
- Re: all traffic goes via eth0.. why?
- From: uwcssa@xxxxxxxxx
- Re: all traffic goes via eth0.. why?
- From: Unruh
- Re: all traffic goes via eth0.. why?
- From: Rob
- all traffic goes via eth0.. why?
- Prev by Date: Re: all traffic goes via eth0.. why?
- Next by Date: Re: all traffic goes via eth0.. why?
- Previous by thread: Re: all traffic goes via eth0.. why?
- Next by thread: Re: all traffic goes via eth0.. why?
- Index(es):
Relevant Pages
|