ernestr
Cadet
- Joined
- Apr 4, 2020
- Messages
- 7
Hey all,
Thanks for the excellent storage solution and community.
I’m trying to add a subinterface for k3s. Whenever I add a subinterface and statically assign it an IP (on a different subnet than TrueNAS Scale’s IP) TrueNAS Scale can’t sustain a TCP connection to its orginial IP. Also, it assumes that its Webserver and SSH server should be listening on that new subinterface’s IP address.
I’m not sure if I am missing something fundamental about TrueNAS Scale’s configuration or if this is a bug. I expect the former, but I haven’t found anything in the docs or forum to confirm that. Hoping someone here can help point me to the docs or threads I’ve missed.
TrueNAS Scale is running on bare metal, and I have 4 physical NICS dedicated to it. Here’s my setup:
Network:
If I try to assign an IP to either vlan20 or vlan10, I quickly lose IP connectivity to TruenNAS Scale through the vlan1 (management) IP. Meanwhile, the new subinterface performs great for HTTPS and SSH. When I remove the IP assignment the issue goes away. I've tried reboots and other things after saving the network config. No joy.
Is there a means for me to prevent TrueNAS services from listening on the new subinterface except for k3s? I’m happy to dive into IPTables but would like to know if there is a simpler option.
Thanks for the excellent storage solution and community.
I’m trying to add a subinterface for k3s. Whenever I add a subinterface and statically assign it an IP (on a different subnet than TrueNAS Scale’s IP) TrueNAS Scale can’t sustain a TCP connection to its orginial IP. Also, it assumes that its Webserver and SSH server should be listening on that new subinterface’s IP address.
I’m not sure if I am missing something fundamental about TrueNAS Scale’s configuration or if this is a bug. I expect the former, but I haven’t found anything in the docs or forum to confirm that. Hoping someone here can help point me to the docs or threads I’ve missed.
TrueNAS Scale is running on bare metal, and I have 4 physical NICS dedicated to it. Here’s my setup:
Network:
- vlan1 – Management
- vlan10 – I want k3s on this subnet and no other TrueNAS Scale services
- vlan20 – IoT
- en02 is on vlan1. I use it for TrueNAS management: Web UI, SSH, rsync
- en01 and en03 are slaved to bond0
- eno4 is unused and not connected to anything
- bond0 has two subinterfaces. When neither have IPs assigned via DHCP or statically I don’t have issues with maintaining a TCP connection to TrueNAS Scale via its management interface (en2 on vlan1)
- vlan10@bond0
- vlan20@bond0
If I try to assign an IP to either vlan20 or vlan10, I quickly lose IP connectivity to TruenNAS Scale through the vlan1 (management) IP. Meanwhile, the new subinterface performs great for HTTPS and SSH. When I remove the IP assignment the issue goes away. I've tried reboots and other things after saving the network config. No joy.
Is there a means for me to prevent TrueNAS services from listening on the new subinterface except for k3s? I’m happy to dive into IPTables but would like to know if there is a simpler option.