Public IP on loop back interface

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Tue Apr 17 15:30:06 UTC 2012


On Mon, Apr 16, 2012 at 09:57:20PM -0400, Mike Kallies wrote:
> It's sometimes used in mac-based load balancing.
> 
> You add the shared IP to the loopback.  Then when a frame hits your
> server with the destination IP address, the packet happily goes up the
> stack.  The reply packet goes out the normal route because it doesn't
> care about the source mac.
> 
> ( Linux sometimes needs some ARP trickery or a custom kernel to prevent
> it from advertising the address though. )
> 
> ... but I can't think of any other reason.

And smart people use the dummy0 interface for that.

There isn't any reason to abuse lo for such things.

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list