The interface used is defined by the routing table in the OS.
Check with the route command.
If there are 2 different routes for the same destination, use
the metric tag to give priority of eth2 over eth0.
Even if eth0 is first in the routing table, it will use eth2
because of the lower metric.
> -----Message d'origine-----
> De : Mauro G. Todeschini [mailto:m.todeschini@itia.mi.cnr.it]
> Envoyé : mardi 24 avril 2001 17:18
> À : squid-users@squid-cache.org
> Objet : [squid-users] Two public Ethernet cards
>
>
> Hi,
> this is my first message on this mailing list :)))
> I've a problem: on my server (which runs squid as a proxy for my local
> net) I have 3 nic!
> Two of them have public IP address! (eth0 eth2)
> The other has a private ip address and handles local browsers
> requests!
> (eth1)
> I want squid to exit to the internet through eth2! I suspect that
> actually squid exits through eth0 (which is first listed in
> the routing
> table).
> Is there a way to do this?
>
> Bye
>
Received on Tue Apr 24 2001 - 09:57:01 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:59:35 MST