All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] is round-robin on interface aliases possible?
@ 2004-10-15 23:02 Stanislaw Pusep
  2004-10-16  9:51 ` Tomasz Chilinski
  0 siblings, 1 reply; 2+ messages in thread
From: Stanislaw Pusep @ 2004-10-15 23:02 UTC (permalink / raw)
  To: lartc

Hello, I'm new to the list and iproute2 itself. I was searching for a 
way to simultaneously use several IPs on the *same network interface* 
for outbound traffic. Let me explain: I have eth0 interface to which I 
set 2 IP addresses; 192.168.0.1 and 192.168.0.2. Then I want to connect 
to Internet through 192.168.0.254 gateway using round-robin between 
those 2 addresses. The iproute2 usage that best fits my needs is 
following: http://lartc.org/howto/lartc.rpdb.multiple-links.html
But I was unable to get it working, as it supposes I have 2 *interfaces* 
  while I have only 1 interface with aliases. I'm simply unable to set 
the same gateway on both IPs as it seems to be per-device setting. I am 
aware that iptables is able to do it with:
iptables -t nat -A POSTROUTING -o eth0 -j SNAT -to-source 
192.168.0.1-192.168.0.2
This actually doesn't fits my needs as it only applies to masquerade 
networks. Any suggestions?
Thanks for attention!
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-16  9:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-15 23:02 [LARTC] is round-robin on interface aliases possible? Stanislaw Pusep
2004-10-16  9:51 ` Tomasz Chilinski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.