Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a VPS with three IP's. I am trying to setup the network configuration to allow round robin usage of the three IP's for outgoing requests (downloads into VPS). How do I change the following configuration to effect that? Thanks!

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:127.0.0.2  P-t-P:127.0.0.2  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:7755 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2894 errors:0 dropped:9 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:8784773 (8.7 MB)  TX bytes:286703 (286.7 KB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:144.21.164.150  P-t-P:184.22.194.150  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

venet0:1  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:144.21.164.157  P-t-P:184.22.194.157  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

venet0:2  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:144.21.164.156  P-t-P:184.22.194.156  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
share|improve this question
    
Can you confirm that you want round-robin use of the IP addresses? Because it would seem to make a lot more sense to want round-robin use of the interfaces. (Note that the local source IP address, interface outbound packets are sent on, and interface inbound packets are received on are three different things.) It would help a lot if you explained your outer problem. (Since it's not clear what your proposed solution would solve.) –  David Schwartz Dec 31 '11 at 8:46
    
I have multiple internet connections and am trying to split bandwidth equally across all of these. I did come across some documentation to enable network interface bonding using a round robin policy. However, I have come to understand that traffic distribution might be uneven due to caching of routes. Is there a way around that? –  Prashanth Ellina Jan 2 '12 at 7:27

1 Answer 1

I would suggest DNS round-robin. You do not need to alter your interfaces, simply put your virtual interface IPs in the zone file.

There is a simple configuration guide here.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.