Dazzle wrote:
Hello,
I am connected to 2 different ISPs using a single NIC and different IPs.
// routing table
liviudm:~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
85.x.x.0 85.x.x.1 255.255.255.0 UG 0 0 0 eth0
86.x.x.0 * 255.255.254.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0
10.0.0.0 * 255.224.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 86.x.x.1 0.0.0.0 UG 0 0 0 eth0
// ifconfig output
liviudm:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:F4:42:CE:E4
inet addr:86.x.x.45 Bcast:86.x.x.255 Mask:255.255.254.0
inet6 addr: fe80::240:f4ff:fe42:cee4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3497828 errors:177 dropped:0 overruns:0 frame:0
TX packets:1887956 errors:0 dropped:0 overruns:8 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1132482541 (1080.0 Mb) TX bytes:567938046 (541.6 Mb)
Interrupt:11 Base address:0x2000
eth0:anet Link encap:Ethernet HWaddr 00:40:F4:42:CE:E4
inet addr:85.x.x.45 Bcast:85.x.x.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0x2000
eth0:lan Link encap:Ethernet HWaddr 00:40:F4:42:CE:E4
inet addr:10.1.5.224 Bcast:10.31.255.255 Mask:255.224.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:507 errors:0 dropped:0 overruns:0 frame:0
TX packets:507 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:34687 (33.8 Kb) TX bytes:34687 (33.8 Kb)
// end of config
Is there any possibility to use both connections as a single line?
Like eth0-speed + eth0:anet-speed = usable speed. If not is there any
way to use one connection for bittorrent downloads (I'm using Azureus)
and the other one for browsing (Firefox)?
I am using similar setup @home. All you have to do is add somewhere
following command:
# ip route add default scope global \
nexthop via 85.x.x.45 dev eth0 weight 2 \
nexthop via 10.1.5.224 dev eth0 weight 1
In this example I am asuming that first line is twice as fast as second,
so we want 2/3 of connections to go through it, and remaining 1/3
through second one.
Please adjust according to your bandwidths.
Now, this is not really "using both connections as a single line" but is
"using both connections at the same time". This works GREAT with azureus,
because it makes/receives many connections which are not very fast each,
but aggregated you get full speed of both lines (well at least if there
is enough seeders/peers).
Problem with this setup is that if your bandwidths are very different,
it will happen from time to time that you will start a large download,
and that connection will, in some random order, go through you slower
line. In that case, it sometimes helps to flush your routing table like
this:
# ip route delete default
# ip route flush cache
and then rerun previous "ip route add..." command.
You could also create a script to do all of that automaticaly...
--
SiniĊĦa Bandin
Novi Sad
Serbia&Montenegro
Europe
planet Earth
phone: +381 63 582 161
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]