I don't really understand what you asking for. amule listening on all interfaces on your box (by default). So, if some client connects to address X (interface X) he will be talking thru this interface. On the other side, you can't connect to server twice. 2 different IP's will be considered as 2 different clients.
All I want is let some of the clients connect address A, and some of them connect address B, so then the traffic can be balanced upon my two WAN interfaces. What I'm asking for is could there be an amuled command-line option which I can specify the address A and address B in it? If this request is too weird or unnecessary for most people, could you give me some right directions of how can I do it myself?
I guess the ed2k protocol don't allow reporting 2 differernt ip's for one client. If so, then yes, can we trick the server let it consider my one amule client as two different clients, but actually, after routing, all the clients just connect to the same amuled running on my box? Or, inform the server periodically, telling that "My ip address has changed to A." "Now, my ip address has changed to B.", and so on... Do you see what I mean? Does the protocol allow this?
Talking about traffic split, can you explain how you set up routing table? I'm asking this because IMHO you can't effectively split outgoing requests. What you can - is split your services between interfaces, like ftpd on one and httpd on another. Correct me if I'm wrong.
Yes, I believe we can split outgoing requests. It requeirs the option "CONFIG_IP_ROUTE_MULTIPATH" set to y at linux kernel compile time.
Here are my routing table settings:
#ip route ls
24.24.24.24 dev ppp0 proto kernel scope link src 61.173.166.194
24.24.24.24 dev ppp1 proto kernel scope link src 61.173.166.201
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.250
default equalize
nexthop dev ppp0 weight 1
nexthop dev ppp1 weight 1
# ip route ls table T1
24.24.24.24 dev ppp0 scope link src 61.173.166.194
192.168.0.0/24 dev eth0 scope link
127.0.0.0/8 dev lo scope link
default dev ppp0 scope link
# ip route ls table T2
24.24.24.24 dev ppp1 scope link src 61.173.166.201
192.168.0.0/24 dev eth0 scope link
127.0.0.0/8 dev lo scope link
default dev ppp1 scope link
# ip rule ls
0: from all lookup local
32764: from 61.173.166.201 lookup T2
32765: from 61.173.166.194 lookup T1
32766: from all lookup main
32767: from all lookup default
I learn it from "
http://lartc.org". You can reffer to it if you like.
Oh, and sorry about my English language, if you are confused reading it. There isn't a "Chinese" section in the forum, so I have no option but get a dictionary and scratch some sentences which I 'm not really sure what they mean... May be you want to learn some Chinese?
