Hi
  My understanding as following, if i am wrong correct me.
1. lb plugin work in DSR mode, lb will not change dst ip address of incoming 
packet , and i read the code,lb will use selected as ip address as gre outer 
dst ip address.
2. client communicate to vip not use gre tunnel, vip communicate to as by gre 
tunnel.

I am new to vpp and lb, If you can write a more detailed doc about how to set 
topology,that would be more appericiate.



发自网易邮箱手机版



在2017年01月13日 03:44 ,Pierre Pfister (ppfister)写道:



Le 11 janv. 2017 à 16:46, 黄登辉 <denghuihu...@163.com> a écrit :


Hi Pierre
    Thanks for your reply.
    For example, i have one interface called Ethernet0/1/0 which is managed by 
vpp.

    then, we create two gre tunnel interfaces, gre0 and gre1.
    e.g.
    Ethernet0/1/0 has two ip addresses 10.0.1.1/24 and 10.0.2.1/24.
    There are two hosts connect to Ethernet0/1/0, and its ip address is 
10.0.1.2/24 and 10.0.2.2/24
    gre0:  remote ip address 10.0.1.2, local ip address 10.0.1.1
    gre1:  remote ip address 10.0.2.2, local ip address 10.0.2.2
  
    ip address of gre0: 192.168.1.1/24
    ip address of gre1: 192.168.2.1/24
  
    LB configuration:
    lb conf 10.0.2.1
    lb vip 192.168.3.1
    lb as 192.168.3.2, 192.168.3.3, 192.168.3.4


   There question:
    1. which interface the vip should configure to?



The VIP is usually configured as a loopback address on the hosts.


    2. Can vip and as belong to two different subnet?



Sure. VIP stands for virtual address. It is not a topological address.
Multiple hosts avec the same VIP (as loopback addresses).


    3.  Is the above configuration right?




I wouldn't call the above "a configuration". I mean, the syntax seams incorrect.
Plus the GRE tunnels are only configured on the hosts, so if I understood 
correctly, you got the local/remote backward.


Cheers,


- Pierre





在 2017-01-11 21:45:33,"Pierre Pfister (ppfister)" <ppfis...@cisco.com> 写道:





Le 11 janv. 2017 à 14:42, 黄登辉 <denghuihu...@163.com> a écrit :


Yes, I read the doc and maglev, one question , do we need to create two 
interfaces? One is for VIP , the other is for communicating as?



No. It's all encap/decap. So it should work with a single interface.


- Pierre




发自网易邮箱手机版



在2017年01月11日 20:16 ,Pierre Pfister (ppfister)写道:


Hello,


Are you familiar with MagLev ?
Did you take a look at 
https://git.fd.io/vpp/tree/src/plugins/lb/lb_plugin_doc.md ?


Cheers,


- Pierre


Le 11 janv. 2017 à 12:52, 黄登辉 <denghuihu...@163.com> a écrit :


Hi  all
     There is lb plugin available in vpp. I want to test it, could you please 
to tell me how to setup topology for testing?


发自网易邮箱手机版
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev







 


_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to