Re: TEQL and balancing

Linux Advanced Routing and Traffic Control

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

 



On Sunday 03 November 2002 17:25, Esteban Ribicic wrote:
> hi all.
>
> this is my network
>
> 	  ----- eth1
> linux box |
> 	  ----- eth0
>
> those nic connect me to my default router (172.0.0.1) and then to the
> internet. I always used one NIC but now, i need two. i thought using
> teql to merge those in one and then, route everything over thtat teql
> interface..i tryed this and did not work:
>
> (after kernel 2.4 recompilation with QOS stuff)
>
> # /etc/init.d/networking stop
> Deconfiguring network interfaces: done.
> # ifconfig
> (shows nothing: OK)
> # route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> (shows nothing: OK)
> #
> (set the interfaces i want to attach to teql0)
> # tc qdisc add dev eth0 root teql0
> # tc qdisc add dev eth1 root teql0
> #
> (set the ip address of those interfaces to my teql iface, those ips
> where the one i used to have in my NIC)
> # ip address add 172.0.0.81/24 dev teql0
> # ip address add 172.0.0.82/24 dev teql0
> #
> # ip link set teql0 up
> #
> #
> (set a default route to the device where my router is..used tyo be wth0,
> now teql0)
> # route add -net 172.0.0.0 netmask 255.255.255.0 dev teql0
> (set a default route to my router)
> # route add default gw 172.0.0.1
> #
> # route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 172.0.0.0       0.0.0.0         255.255.255.0   U     0      0        0
> teql0
> 172.0.0.0       0.0.0.0         255.255.255.0   U     0      0        0
> teql0
> 0.0.0.0         172.0.0.1       0.0.0.0         UG    0      0        0
> teql0
> (look that all goes to teql)
> #
> #
> # ping 172.0.0.1
> PING 172.0.0.1 (172.0.0.1): 56 data bytes
>
> --- 172.0.0.1 ping statistics ---
> 4 packets transmitted, 0 packets received, 100% packet loss
> #
> (nothing works)..
>
> what could be wrong? im doing this because originaly, im planning to
> connect two cable modems in my house, and do some BW balancing...
>
> is that posible?
Yes, but teql is not made for this.  Teql can be used to connect 2 linux boxes 
with 2 links.
There was a chapter in the lartc.org howto but I can't find it right now.  You 
need some extra patches and you need to do natting on the linux box.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

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


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