Alright, I solved the problem by myself.
The key point is that the backend servers should also allow ip spoof(only 
required for lb’s DSR mode), then the packet sent to vip will be delivered to 
correspond virtual nic.
By the way, I created vip as lo0:1, it’s a virtual interface and won’t response 
to arp protocol by default.

-----------------------------------
Briphant, Ruochen Xu
[email protected]<mailto:[email protected]>




On Mar 14, 2016, at 5:33 PM, 许若辰 
<[email protected]<mailto:[email protected]>> wrote:

Hi friends, recently I tried to setup a DSR mode LB via ilbadm in smartos, but 
I got some problems and need your help.

1.first I create a Vm with “allow_ip_spoof”: true
2.second I enable the lib service.svcadm enable ipv4-forwarding ilb
3.second I setup a server group, ilbadm create-servergroup -s 
servers=10.20.1.8:80,10.20.1.9:80 dnsgroup
4.then I create the rule,ilbadm create-rule -e -p -i vip=10.20.1.244,port=80 -m 
lbalg=rr,type=DSR,pmask=24 -o servergroup=dnsgroup dnsrule_rr
5.finally I create the vip, arp -s 10.20.1.244 d2:e3:53:d:3d:9e pub permanent

now the problem appeared, how can I create vip for backend servers?
I’ve tried create a alias for lo0
ipadm create-addr -t -T static -d -a 10.20.1.244/24 lo0/server0
but it doesn’t work.
also I can’t create alias for net0 because I did’t enable ip spoof in backend 
server(and it should be disabled).

I used tcpdump and I could see the packet from client server to vip, so the 
rule in lb should be right, but the backend server didn't response.
What can I do?


Thanks.


--------------------------------------------------------------------------------------------------------
Briphant, Ruochen Xu
[email protected]<mailto:[email protected]>



smartos-discuss | Archives<https://www.listbox.com/member/archive/184463/=now> 
[https://www.listbox.com/images/feed-icon-10x10.jpg1d3216c.jpg?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2ZlZWQtaWNvbi0xMHgxMC5qcGc]
 <https://www.listbox.com/member/archive/rss/184463/27846711-c61ff54c>  | 
Modify<https://www.listbox.com/member/?&;> Your Subscription       
[https://www.listbox.com/images/listbox-logo-small.png1d3216c.png?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2xpc3Rib3gtbG9nby1zbWFsbC5wbmc]
 <http://www.listbox.com/>




-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to