Re: [squid-users] Squid Server multiple Nics

From: <Jim_Brouse/PYT@dont-contact.us>
Date: Wed, 19 Nov 2003 12:24:12 -0700

Here is what is in my route table I output this by entering route at the
command prompt.

55.0.0.2 * 255.255.255.128 U 0 0 0 eth1
24.0.0.2 * 255.255.255.0 U 0 0 0 eth0
55.0.0.2 55.0.0.3 255.0.0.0 UG 0 0 0 eth1
24.0.0.2 24.0.0.3 255.0.0.0 UG 0 0 0 eth0
default 55.0.0.3 0.0.0.0 UG 0 0 0 eth1
default 24.0.0.3 0.0.0.0 UG 0 0 0 eth0

With a route table like this considering that the dns server address is on
the 55.0.0.x network will it try to gain internet access from 55.0.0.x or
will it attempt to gain access from either nic?

Should I remove one of the routes?

Jim

                                                                                                                   
                    unixware
                    <datareactor@y To: Jim_Brouse/PYT@PASCUAYAQUITRIBE.ORG, squid-users@squid-cache.org
                    ahoo.com> cc:
                                         Subject: Re: [squid-users] Squid Server multiple Nics
                    11/17/2003
                    05:19 PM
                                                                                                                   
                                                                                                                   

Dear Jim

its depend on your default gateway you are using for
yr machine check with route command on linux based
systems

[root@cache root]# route
Kernel IP routing table
Destination Gateway Genmask Flags
Metric Ref Use Iface
192.168.1.0 * 255.255.255.128 U 0
     0 0 eth1
192.168.1.128 * 255.255.255.128 U 0
     0 0 eth1
169.254.0.0 * 255.255.0.0 U
0 0 0 eth1
127.0.0.0 * 255.0.0.0 U
0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0
  0 0 eth1

that is showing it is using eth1 as default gateway to
all other networks

you can add default route with following commmadn

route add default gw 192.168.1.1 eth1

Regards

UW

--- Jim_Brouse/PYT@PASCUAYAQUITRIBE.ORG wrote:
>
> eth0 ip address is 24.0.0.2
> eth1 ip address is 55.0.0.2
>
>
> We have a squid server with 2 nics, if the DNS
> server is at 55.0.0.5.
>
> How does the squid server know which nic to gain
> Internet access from?
>
> Will it gain Internet access from the same nic that
> the DNS server is
> listed on? What stops squid from resolving
> www.domain.com to an IP address
> and then choosing either of the nics to get internet
> access from.
>
> I only want squid to gain Internet access on eth1
>
>
> Jim
>

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
Received on Wed Nov 19 2003 - 12:24:26 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:21:23 MST