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 
test/test_vcl.py). 

If yes, then can I ask for more details about your use case? Your apps are part 
of different app namespaces but they share the ip routing on purpose? Also, are 
you enforcing the source ip in the connect?

Regards,
Florin

> On Nov 28, 2019, at 5:50 AM, wanghanlin <[email protected]> wrote:
> 
> 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?  
> Suppose netmask is 24, VPP can not support two interfaces with same subnet. 
> 
> 
> Regards,
> Hanlin
> 
>       
> wanghanlin
> 
> [email protected]
>  
> <https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=1&name=wanghanlin&uid=wanghanlin%40corp.netease.com&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png&items=%5B%22wanghanlin%40corp.netease.com%22%5D&logoUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyeicon%2F209a2912f40f6683af56bb7caff1cb54.png>
> 签名由 网易邮箱大师 <https://mail.163.com/dashi/dlpro.html?from=mail81> 定制

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#14729): https://lists.fd.io/g/vpp-dev/message/14729
Mute This Topic: https://lists.fd.io/mt/64106592/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to