Instructions for setting a bridge between NAS and VM unclear

axeleroy

Cadet
Joined
Oct 24, 2022
Messages
6
Hello,

I would like to set up a bridge between my NAS and VM to allow them to communicate. The documentation is a bit unclear to me, I don't understand which values to set in each alias field. Also the documentation does not describe what to do when TrueNAS asks for a new Default Gateway IP.

My setup is a bit particular, as both my NAS's and VM's IPs are static and set by the router via DHCP:
  • TrueNAS version: SCALE 23.10.0.1
  • NAS IP: 192.168.0.112
  • Gateway IP: 192.168.0.1 (router)
  • Desired VM IP: 192.168.0.113
  • Network mask: 192.168.0.0/24
 

chuck32

Guru
Joined
Jan 14, 2023
Messages
623
I don't recall that you have to set a gateway, but it would be your router.

Basically you uncheck DHCP for your Network interface and remove the alias (IP address).

Then create the bridge, leave DHCP unchecked, you assign the IP manually anyway.
Add your physical interface as a member
And your alias would be 192.168.0.112/24

You just move the IP / alias from eno1 or whatever to br1.

Your desired VM IP is a different setting, either assign a static IP in the VM or in your router.

---

Let's say eno 1 is your physical network interface which currently has the .112 assigned..

1700068515041.png


1700068542387.png


1700068553107.png
 
Last edited:

axeleroy

Cadet
Joined
Oct 24, 2022
Messages
6
Great, it works now, thanks! One question though: is my NAS's IP locked to 192.168.0.112 as I wished? I'm not so sure now that it does not follow DHCP.
 

chuck32

Guru
Joined
Jan 14, 2023
Messages
623
If you disabled DHCP and set .112 as your IP then yes, this will be your permanent IP.
 

chuck32

Guru
Joined
Jan 14, 2023
Messages
623
For the sake of completeness and for future readers, are your sure your router had assigned the .112 statically?

I just realized that the bridge probably gets assigned a different MAC address than your physical interface.
In that case there should/could have been a conflict. At least my router uses the Mac address to assign a static IP. If it is already taken by your physical network interface you would need to delete that entry in your router so the IP is released again.

But I'm not a 100 % how your router handles static IP assignment. I would leave the setup as is now, just for future reference.
 

axeleroy

Cadet
Joined
Oct 24, 2022
Messages
6
On my initial setup the router assigned .112 based on MAC address but I disabled it as I figured TrueNAS was configured to get it by itself.
 
Top