RE: Question: TEQL via gateway

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, I really need two physical links to do my job. 
Also, when I connect two eth0 and eth1 directly, TEQL does send half of
the packets to each link. It only doesn't work when I put a gateway
between eth1. 
It seems that the way TEQL works is that it tries to put packets to both
interfaces. However, if one interface is not working, then it just sends
all packets to the other. When I "ping -I teql0 IP_of_teql0_of_the
other_end", eth1 broadcasts ARP for the MAC address of the destination,
and because the IP is in another subnet, it can't get any answer,
although I have specify the gateway for that IP. So TEQL sends all
packets to eth0. Don't know what's wrong.

-Ji 

-----Original Message-----
From: lartc-bounces@xxxxxxxxxxxxxxx
[mailto:lartc-bounces@xxxxxxxxxxxxxxx] On Behalf Of Taylor, Grant
Sent: Wednesday, June 22, 2005 3:01 PM
To: lartc@xxxxxxxxxxxxxxx
Subject: Re:  Question: TEQL via gateway

I think this has to do with an age old issue (problem or feature, you
decide).  Linux (and most other unicies and other OSs in general) will
pick the first interface on a subnet to use as the source interface to
send the traffic out.  I think, this is more akin to what bonding is
designed to answer.  I question are you wanting to really have the 2nd
leg of the teql link be via a different path or were you just doing that
to test to see if you were really sending traffic out both interfaces?
If you can have a direct cross over cable on both interfaces and you are
wanting more aggregate bandwidth take a look at bonding, I think it will
serve you better.  Disclaimer, I have not worked with teql or bonding my
self directly and this is based on what reading I have done, that being
more on bonding than teql.



Grant. . . .

Li, Ji wrote:
> Yesterday I posted a question, but I guess too much detail is provided

> that no one would bother to read, so I rephrase the question and 
> hopefully some one may be willing to read. Sorry to spam.
> 
> I am using TEQL on two computers, each with two network interfaces. 
> The two eth0 are connected directly, and the two eth1 are connected 
> via a gateway (a linux machine). The problem is that when I send 
> packets through teql0 to the other machine (ping -I teql0), the 
> packets can't go through eth1 and all packets go via eth0. But I can 
> send packets via
> eth1 directly (ping -I eth1). What's wrong? 
> 
> P.S. I put eth1 and teql0 on one computer, and the gateway interface 
> on the same side into one subnet. I only found TEQL configuration for 
> two direct links. My routing tables are attached below.
> 
> Thanks a lot,
> -Ji
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux