My main interface is a Link Aggregation called bond0, I had set up a static IP bind at router. I had add a bridge called br0, select bond0 as member, add 10.31.0.0/24 as IP aliases.Like @LarsR mentioned you need a bridge.
To set up the bridge for your main interface correctly from the WebGUI you need to follow specific order of steps to not loose connectivity:
Now you just assign the bridge as an interface for your VM.
- Set up your main interface with static IP by disabling DHCP and adding IP alias (use the same IP you are connected to for easy results)
- Test Changes and then Save them (important)
- Edit your main interface, remove the alias IP
- Don't click Test Changes
- Add a bridge, name it something like br0, select your main interface as a member and add the IP alias that you had on main interface
- Click Apply and then Test Changes
- It will take longer to apply than just setting static IP, you can even get a screen telling you that your NAS in offline but just wait - worst case scenario TrueNas will revert to old network settings.
- After 30sec you should see an option to save changes.
- After you save them you should see both your main interface and new bridge active but bridge should have the IP
I used this method and it worked for a while (a couple of hours). But after a time I can't reach my TrueNas anymore, seems like all inbound traffic is stopped. This has happened twice today. I can still reach LAN and WAN from my TrueNas but I'm not able to ping, ssh or reach the web GUI. My bridge br0 is connected to my 10 GB network adapter, but I have a built-in 1GB NIC that is connected but not in use, can I use that one in VM without bridging?To set up the bridge for your main interface correctly from the WebGUI you need to follow specific order of steps to not loose connectivity:
Now you just assign the bridge as an interface for your VM.
- Set up your main interface with static IP by disabling DHCP and adding IP alias (use the same IP you are connected to for easy results)
- Test Changes and then Save them (important)
- Edit your main interface, remove the alias IP
- Don't click Test Changes
- Add a bridge, name it something like br0, select your main interface as a member and add the IP alias that you had on main interface
- Click Apply and then Test Changes
- It will take longer to apply than just setting static IP, you can even get a screen telling you that your NAS in offline but just wait - worst case scenario TrueNas will revert to old network settings.
- After 30sec you should see an option to save changes.
- After you save them you should see both your main interface and new bridge active but bridge should have the IP
Strange, my TrueNas is working with this bridge configuration for days now without issue.I used this method and it worked for a while (a couple of hours). But after a time I can't reach my TrueNas anymore, seems like all inbound traffic is stopped. This has happened twice today. I can still reach LAN and WAN from my TrueNas but I'm not able to ping, ssh or reach the web GUI. My bridge br0 is connected to my 10 GB network adapter, but I have a built-in 1GB NIC that is connected but not in use, can I use that one in VM without bridging?
I might have the same problem as in this post. I tried with my second NIC but it only made my Scale setup confused of which NIC to outbound traffic to. It started to use my 1GiB Nic instead of my 10GiB Nic.Strange, my TrueNas is working with this bridge configuration for days now without issue.
When it comes to second interface - not sure, never tried it but should work in theory.
I have the same problem as well. I am try to change my router's IP aliases, and change PC's gateway to bridge IP, and I can reach my truanas server again.Strange, my TrueNas is working with this bridge configuration for days now without issue.
When it comes to second interface - not sure, never tried it but should work in theory.
It works, thank youLike @LarsR mentioned you need a bridge.
To set up the bridge for your main interface correctly from the WebGUI you need to follow specific order of steps to not loose connectivity:
Now you just assign the bridge as an interface for your VM.
- Set up your main interface with static IP by disabling DHCP and adding IP alias (use the same IP you are connected to for easy results)
- Test Changes and then Save them (important)
- Edit your main interface, remove the alias IP
- Don't click Test Changes
- Add a bridge, name it something like br0, select your main interface as a member and add the IP alias that you had on main interface
- Click Apply and then Test Changes
- It will take longer to apply than just setting static IP, you can even get a screen telling you that your NAS in offline but just wait - worst case scenario TrueNas will revert to old network settings.
- After 30sec you should see an option to save changes.
- After you save them you should see both your main interface and new bridge active but bridge should have the IP
I am guessing not as it is the designed behavior of the Linux QEMU-KVM hypervisor which SCALE uses. This is exactly the issue I had to overcome when I wanted a VM on a Raspberry Pi running via QEMU-KVM to communicate with the Pi itself.Is this something they will fix in future updates?