Re: [vpp-dev] How to configure network between different namespaces using hoststack

2019-12-09 Thread Florin Coras
Hi Hanlin, Inline. > On Dec 9, 2019, at 12:42 AM, wanghanlin wrote: > > Hi Florin, > Thanks for your suggestion. > Follow your suggested configuration, three applications can communicate each > other. FC: Great! > But there are two minor problems: > 1. I used option 2 to configure APP2 and A

Re: [vpp-dev] How to configure network between different namespaces using hoststack

2019-12-09 Thread wanghanlin
Hi Florin, Thanks for your suggestion.Follow your suggested configuration, three applications can communicate each other. But there are two minor problems:1. I used option 2 to configure APP2 and APP3,  but can only get the source IP address 0.0.0.0 (not 192.168.

Re: [vpp-dev] How to configure network between different namespaces using hoststack

2019-12-06 Thread Florin Coras
Hi Hanlin, Inline. > On Dec 5, 2019, at 7:00 PM, wanghanlin wrote: > > Hi Florin, > Okay, regarding first question, the following is the detailed use case: > I have one 82599 nic in my Linux host. Then I allocate two VF interfaces > through SRIOV, one VF place into a Linux namespace N1 and

Re: [vpp-dev] How to configure network between different namespaces using hoststack

2019-12-05 Thread wanghanlin
Hi Florin, Okay, regarding first question,  the following is the detailed use case:I have one 82599 nic in my Linux host. Then I allocate two VF interfaces through SRIOV,  one VF place into a Linux namespace N1 and assign IP address 192.168.1.2/24, another VF place into V

Re: [vpp-dev] How to configure network between different namespaces using hoststack

2019-12-05 Thread Florin Coras
Hi Hanlin, Inline. > On Dec 4, 2019, at 1:59 AM, wanghanlin wrote: > > Hi Florin, > > Thanks for your patient reply. Still I have some doubt inline. > > > wanghanlin > > wanghan...@corp.netease.com > >

Re: [vpp-dev] How to configure network between different namespaces using hoststack

2019-12-04 Thread wanghanlin
Hi Florin,Thanks for your patient reply.  Still I have some doubt inline.

Re: [vpp-dev] How to configure network between different namespaces using hoststack

2019-11-29 Thread Florin Coras
Hi Hanlin, Inline. > On Nov 29, 2019, at 7:12 AM, wanghanlin wrote: > > Hi Florin, > Thanks for your reply. > I just consider a very simple use case. Some apps in different containers > communicate through VPP, just in a L2 bridge domain. > Without hoststack, we may add some host-interfac

Re: [vpp-dev] How to configure network between different namespaces using hoststack

2019-11-29 Thread wanghanlin
Hi Florin, Thanks for your reply. I just consider a very simple use case. Some apps in different containers communicate through VPP, just in a L2 bridge domain. Without hoststack,  we may add some host-interfaces in one bridge domain, and assign IP address of veth interface in containers. In addi

Re: [vpp-dev] How to configure network between different namespaces using hoststack

2019-11-28 Thread Florin Coras
Hi Hanlin, Are your app namespaces mapped to the same vrf? If no, then your interfaces can have IPs out of the same subnet because they’re part of different vrf tables. To allow for connectivity between the vrfs you’ll need to do some “vrf leaking”. We do exactly that in our vcl make test (see

[vpp-dev] How to configure network between different namespaces using hoststack

2019-11-28 Thread wanghanlin
Hi All, We have two APPs in different namespaces, such as APP1 and APP2, and use hoststack based on same VPP.  APP1 listen on 192.168.1.2:8080,and APP2 connect APP2 through 192.168.1.3. Then, we can add two interfaces on VPP, but how to configure ip address?  Sup