[LARTC] modem bonding, round-robin routing

Linux Advanced Routing and Traffic Control

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

 



           I want to aks for your help. I have 2 cable modems connected to 2 ether cards and i want to use both modems to connect to the Internet. The idea is to load-balance new connections (made from my computer) between the 2 ether cards. For example if I open 2 connections from my computer one will go via eth1 and the other will go via eth2. I don't want to have packets from one connections going through both ether cards; every connection with her ether card. 
          The gateway is the same for both modems.
           I managed to do something by using the comand
# ip ro
193.231.146.0/24 dev eth0  scope link
127.0.0.0/8 dev lo  scope link
#ip ro add default nexthop dev eth1 via 195.7.12.24 weight 128 nexthop dev eth2 via 195.7.13.3 weight 128
           The connections were using on both modems, but I had one big problem; the computer tried to do ARP on internet hosts :). I know it's ridicoulus, but that's what happend. 
           I can''t use TEQL because the ISP doesn't provide help for this kind of stuff and every modem (ethercard) must use a fixed IP address, so I can't use a third address (the one of teql0).
          Thank you for your time and if you have any questions send the, please. Some good and complete docs (links) would be appreciated too.

                                                                                                                        Cristian
 

PS: Those are the settings if they are necesary
eth1      Link encap:Ethernet  HWaddr 00:00:C0:38:BF:F8
          inet addr:195.7.12.24  Bcast:195.7.15.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:243 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:20310 (19.8 Kb)  TX bytes:168 (168.0 b)
          Interrupt:11 Base address:0x6100

eth2      Link encap:Ethernet  HWaddr 00:00:C0:FC:EE:F3
          inet addr:195.7.13.3  Bcast:195.7.15.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:105943 errors:0 dropped:0 overruns:0 frame:0
          TX packets:83014 errors:0 dropped:0 overruns:0 carrier:0
          collisions:79 txqueuelen:100
          RX bytes:106012153 (101.1 Mb)  TX bytes:10455606 (9.9 Mb)
          Interrupt:9 Base address:0x6300





---
exploreaza Romania Online!
http://www.ROL.ro



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