iSenne
Cadet
- Joined
- Apr 30, 2021
- Messages
- 2
Hello,
In my home I've got 2 networks (vlan10 and vlan20). The first vlan (10) has a subnet of 192.168.2.0/24 using a 'Sagemcom F5359' router (KPN Experiabox v12 for the dutch users). This router is the default router for my isp. The second vlan (20) has a subnet of 192.168.7.0/24 using a 'TL-WR940N' router. This router has a VPN installed for a UK network.
Now I also have a system running TrueNAS (version TrueNAS-12.0-U3). In this NAS I've setup both vlans, and it's working fine. I can reach the NAS on both networks using different IP addresses. So far so good.
Now, here is the strange part. I've got two jails running (transmission and plex) both using vlan10 on dhcp. Everything is still working fine on this point. I want to split those two jails over the 2 different networks. So I've stopped transmission, changed the 'vnet_default_interface' to vlan20 and started it again. Now this is where everything goes wrong.
As soon as I do this, 2 things happen.
1. The transmission plug-in still gets an IP from vlan10 (subnet 192.168.2.0/24)
2. My laptop (which is connected to vlan10) gets an IP from vlan20 (the 192.168.7.0/24 subnet)
Now at this point, I've restarted TrueNAS. TAfter that the jail will receive the correct IP this time, but my laptop still get a wrong IP. Only when I set both my jails to the same vlan (either 10 or 20) my network behaves normally.
How can I set my jails to use different networks?
In my home I've got 2 networks (vlan10 and vlan20). The first vlan (10) has a subnet of 192.168.2.0/24 using a 'Sagemcom F5359' router (KPN Experiabox v12 for the dutch users). This router is the default router for my isp. The second vlan (20) has a subnet of 192.168.7.0/24 using a 'TL-WR940N' router. This router has a VPN installed for a UK network.
Now I also have a system running TrueNAS (version TrueNAS-12.0-U3). In this NAS I've setup both vlans, and it's working fine. I can reach the NAS on both networks using different IP addresses. So far so good.
Now, here is the strange part. I've got two jails running (transmission and plex) both using vlan10 on dhcp. Everything is still working fine on this point. I want to split those two jails over the 2 different networks. So I've stopped transmission, changed the 'vnet_default_interface' to vlan20 and started it again. Now this is where everything goes wrong.
As soon as I do this, 2 things happen.
1. The transmission plug-in still gets an IP from vlan10 (subnet 192.168.2.0/24)
2. My laptop (which is connected to vlan10) gets an IP from vlan20 (the 192.168.7.0/24 subnet)
Now at this point, I've restarted TrueNAS. TAfter that the jail will receive the correct IP this time, but my laptop still get a wrong IP. Only when I set both my jails to the same vlan (either 10 or 20) my network behaves normally.
How can I set my jails to use different networks?