Is there any alternative methods for making isolated network

jjuk

New Member
Jun 30, 2023
21
2
3
The setup is quite simple. Everything is within one node. I'm currently using SDN; one simple zone + one vNet.
In this small network, there is one firewall/dhcp (pfSense) and several guest VMs.
Target is, the dhcp assigns IP addresses to the guest VMs, so that they can ping each other in the same subnet.
In order not to cause any conflict, the vNet hasn't set subnet, gateway and IP range. The zone also has its 'automatic dhcp' disabled.

Sounds very simple, isn't it? But it indeed has given me a lot of headache because of its unpredictable outcome.
The VMs can't always get the IPs. Some of them successfully get the IPs, but fail after a restart (not always, but sometimes)
I've also tried removing the existing Network device and adding a new one to the VMs when they fail to get the IP. Then some of them can get the IPs.
It also doesn't work even if I manually set static IP addresses for the VMs.
Imagine that VM1 IP is 192.168.0.1 and VM2 IP is 192.168.0.2 with the same subnet mask and gateway but can't ping each other.

This problem never happens if I set all these VMs and pfSense connect to a Linux/OVS bridge (the physical interface).
Therefore, my verdict is that the "SDN simple zone" is unstable with random errors that make it very difficult to trace what's wrong under the hood.

I know many people use SDN with VLAN settings across multiple nodes in their production system without issues.
Not many people use SDN to set up isolated networks for testing purposes. Less people use means less impact and so I don't expect there will be a quick solution.
This is why I rather look for alternative methods.
Bridging to a physical network (Linux/OVS) is not an option for me as I don't want to mix up the production and testing environments.
 
make a bridge without any interface
(iirc, this what SDN do )
Hi _gabriel, Thanks for the tips. But I've no idea how to create the *bridge* that you mentioned.
All I know is that both Linux bridge and OVS bridge (create under node > Network) require a "Bridge port" that must relates to physical network device.
Without providing the "Bridge port", it can't be activated.
 
edit:
All I know is that both Linux bridge and OVS bridge (create under node > Network) require a "Bridge port" that must relates to physical network device.
No.

Alternative :
replace member of created bridge by "none", from shell, directly in /etc/network/interfaces
then reboot
 
Last edited:
replace member of created bridge by "none", from shell, directly in /etc/network/interfaces
then reboot
Thanks _garbiel. I found that after adding new Linux bridges on the web interface, and then follow a normal reboot can change the "Active" status to "Yes".

This is different to those bridges that have assigned a "Bridge Port" which automatically change their status to "Yes" without rebooting.

The network status between the virtual pfSense and the VM guests are much stable now. I'll monitor the status for 1 more week to see if there is anymore issues.