Usling vlan(4) without an actual lan behind it

Steve Polyack korvus at comcast.net
Wed Sep 21 18:06:51 UTC 2011


On 09/21/2011 01:34 PM, Mike Andrews wrote:
> On Mon, 19 Sep 2011, Pete French wrote:
>
>>> Does it specifically have to be a vlan(4), or can you perhaps add 
>>> another
>>> address to lo(4), or perhaps create a "lo1" in addition to the "lo0"?
>>
>> It can be anything really - I was looking for a "generic" interface
>> I can configure with IP addresses. But adding real addresses to
>> loopback interfaces can cause problems can it not ?
>>
>> The issue I am trying to address is that I have a whole bunch of IPv6
>> addresse on a /64, which are oly used as endpoints for a set of
>> websites - they don't exist on a real ethernet anywhere, and don't
>> need to. I just want them on an interface on a machine wwhen I can run
>> up a load balancer to listeon on those addresses and forward them to
>> the approrpiate actual machines serving the requests.
>
> Sounds like DSR-type load balancing (or in Linux LVS land, "DR" mode), 
> where the load balancer just rewrites the target MAC address in the 
> header instead of doing full-blown NAT or proxying.  Putting the IP's 
> on lo0 is the way to go here.  We've been doing that for many, many 
> years (well, months for v6, years for v4) and it works great.  With 
> the IP's on lo0, the load balancers are the only thing that can ARP 
> (or NDP) for those addresses... which is what you'd want.

I'll second that this works just fine (at least on the IPv4 side).  
We've always used lo1 to separate things, but that doesn't functionally 
change anything.


More information about the freebsd-stable mailing list