How to associate a VIF to a Network
- 
 Hi: It's my first time using the forum and I'm new to XCPng & Xen Orchestra. I wanted to know if there is a way to associate a VIF with a Network, and that the same VIF is not automatically used in another Network. The query is because I have had to create a network between two VMs, without associating a physical interface, and a VIF used in another network is associated with it. I couldn't find a way to do it in XO. Thanks in advance! Martin Pedros 
- 
 @olivierlambert Hi guys! First of all, many thanks to @olivierlambert and @ha_tu_su for their quick responses and I apologize for my delay in responding. I am very new to using XCPng, but it is such a good product that I am not going to rest until I learn it since I intend to replace the ESXi that I have with XCPng! I was able to realize my problem, which is that as I am deleting and registering interfaces in the VMs to test, sometimes the VIFs are exchanged and the interfaces of the VMs are changed. I solved it by deleting and adding the interfaces in the order that I want the VIFs to be assigned, and everything works perfectly for me, even the networks that are not interconnected to a physical port, but rather are to interconnect the VMs internally. I already have everything I need working! Thank you very much for all the support, I see that it is a very active community and I hope soon to be helping too... Martin Pedros 
- 
 Hi, I'm not sure to understand your need. Can you explain with more details? Every time you create a VIF, you assign it to a network. 
- 
 @martinpedros 
 If you want to create an internal network for the VMs to talk to each other without that traffic getting out of a physical NIC, private network is what you are looking for.Take a look at this post: https://xcp-ng.org/forum/topic/7309/option-to-create-host-only-private-network 
- 
 @olivierlambert Hi guys! First of all, many thanks to @olivierlambert and @ha_tu_su for their quick responses and I apologize for my delay in responding. I am very new to using XCPng, but it is such a good product that I am not going to rest until I learn it since I intend to replace the ESXi that I have with XCPng! I was able to realize my problem, which is that as I am deleting and registering interfaces in the VMs to test, sometimes the VIFs are exchanged and the interfaces of the VMs are changed. I solved it by deleting and adding the interfaces in the order that I want the VIFs to be assigned, and everything works perfectly for me, even the networks that are not interconnected to a physical port, but rather are to interconnect the VMs internally. I already have everything I need working! Thank you very much for all the support, I see that it is a very active community and I hope soon to be helping too... Martin Pedros 
- 
 O olivierlambert marked this topic as a question on O olivierlambert marked this topic as a question on
- 
 O olivierlambert has marked this topic as solved on O olivierlambert has marked this topic as solved on
- 
 Welcome @martinpedros  Happy to know it works for you now! Happy to know it works for you now!
