Re: Usling vlan(4) without an actual lan behind it

看板FB_stable作者時間14年前 (2011/09/22 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/6 (看更多)
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. _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
文章代碼(AID): #1EUYsZdQ (FB_stable)
討論串 (同標題文章)
文章代碼(AID): #1EUYsZdQ (FB_stable)