All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Two Interfaces and two link
@ 2003-01-27 21:59 Viaris
  2003-01-27 22:31 ` Martin A. Brown
  2003-01-28  1:56 ` Viaris
  0 siblings, 2 replies; 3+ messages in thread
From: Viaris @ 2003-01-27 21:59 UTC (permalink / raw)
  To: lartc

Hi all,

I have a tranparent proxy, But now I have two link with two different ISP, I
need to route four host to my new link, I did the following with a host:

IF-ETH0 --> 165.98.111.234 Gw 165.98.111.233 Netmask 255.255.255.248
IF-ETH0 --> 200.9.189.202   GW 200.9.189.201  Netmask 255.255.255.248
Host that I need to route is: 200.9.189.241

ip route add 165.98.111.232 dev eth0 src 165.98.111.234 table T1
ip route add default via 165.98.111.233 table T1
ip route add 200.9.189.200 dev eth1 src 200.9.189.202 table T2
ip route add default via 200.9.189.201 table T2

echo 200 office_priv >> /etc/iproute2/rt_tables
ip rule add from 200.9.189.241 table office_priv
ip route add default via 200.9.189.202 dev eth1 table Pedro
ip route flush cache

Now, if I run the command route -n, the output is:
Destination     Gateway                  Genmask                      Flags
Metric Ref    Use Iface
200.9.189.202   200.9.189.201    255.255.255.255         UGH   0       0
0     eth1
200.9.189.200   0.0.0.0                255.255.255.248         U         0
0        0     eth1
165.98.111.232  0.0.0.0               255.255.255.248         U         0
0        0     eth0
127.0.0.0            0.0.0.0               255.0.0.0                     U
0       0        0      lo
0.0.0.0               165.98.111.233  0.0.0.0                         UG
0      0        0      eth0

All the traffic http is send to interface eth0, all work fine, But I cant
send any specific host fot the other interface (ETH1), since the host
200.9.189.241 I load the web pages http://visualroute.visualware.com/ in
this site say that my Ip is 165.98.111.234, if I did the routing for this
host, Why the trafic of this host continue outgoing for the ETH0?, I need
that this host have outgoing in the interface ETH1.

I need your help.

Thanks in Advanced,,
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-28  1:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-27 21:59 [LARTC] Two Interfaces and two link Viaris
2003-01-27 22:31 ` Martin A. Brown
2003-01-28  1:56 ` Viaris

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.