When I typed in ip route I got the same results with having 2 default
gateways one for each network.

Maybe I should set the default gateway on eth0 to be the IP address of eth1
although I am not sure if that will break any communications with the
network on eth0 and this server?




When I entered "ip route get ipaddress" to see the results of what nic is
used I got the following.


hostname:# host cnn.com
cnn.com has address 64.236.24.28
cnn.com has address 64.236.16.20
cnn.com has address 64.236.16.52
cnn.com has address 64.236.16.84
cnn.com has address 64.236.16.116
cnn.com has address 64.236.24.4
cnn.com has address 64.236.24.12
cnn.com has address 64.236.24.20
hostname:# ip route get 64.236.16.84
64.236.16.84 via 55.0.0.3 dev eth1  src 55.0.0.2
    cache  mtu 1500 advmss 1460
hostname:# host www.google.com
www.google.com is an alias for www.google.akadns.net.
www.google.akadns.net has address 216.239.41.99
hostname:# ip route get 216.239.41.99
216.239.41.99 via 24.0.0.3 dev eth0  src 24.0.0.2
    cache  mtu 1500 advmss 1460



So what is strange is that for cnn.com it would go out eth1 and for
google.com it would go out eth0.


Jim




                                                                                       
                            
                    Henrik                                                             
                            
                    Nordstrom            To:     Jim_Brouse/[EMAIL PROTECTED]          
                     
                    <[EMAIL PROTECTED]       cc:     unixware <[EMAIL PROTECTED]>, 
<[EMAIL PROTECTED]>   
                    he.org>              Subject:     Re: [squid-users] Squid Server 
multiple Nics                 
                                                                                       
                            
                    11/19/2003                                                         
                            
                    03:16 PM                                                           
                            
                                                                                       
                            
                                                                                       
                            




On Wed, 19 Nov 2003 Jim_Brouse/[EMAIL PROTECTED] wrote:

>
> 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?


Hard to tell, but I guess it will use the first default route. Normally
you can only have one route per destination.

Is this a Linux system? If so then the output of "ip route" is better
expressing your actual routing table. The ip route command also have an
option where you can ask what route will be used for a given destination.

  ip route get ip.of.selected.destination

Regards
Henrik





Reply via email to