Hi,
I'm trying to set static IP for my server, following this documentation. As per the documentation, I must test the changes before applying them. But every time I try to test it, TrueNAS errors out and I can't set it.
I searched online, but to no avail. It seems that I'm missing some parameter in some place, but no clue where.
This is the interface I'm trying to setup:
Thank you in advance.
I'm trying to set static IP for my server, following this documentation. As per the documentation, I must test the changes before applying them. But every time I try to test it, TrueNAS errors out and I can't set it.
Code:
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/network.py", line 842, in commit
await self.sync()
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/network.py", line 1904, in sync
await self.middleware.call('interface.vlan_setup', vlan, disable_capabilities, parent_interfaces)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1278, in call
return await self._call(
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1246, in _call
return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1151, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/interface/vlan.py", line 29, in vlan_setup
iface.configure(vlan['vlan_pint'], vlan['vlan_tag'], vlan['vlan_pcp'])
File "netif.pyx", line 1313, in netif.VlanInterface.configure
OSError: [Errno 22] Invalid argument
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 139, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1235, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 975, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/network.py", line 845, in commit
await self.rollback()
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/interface/vlan.py", line 29, in vlan_setup
iface.configure(vlan['vlan_pint'], vlan['vlan_tag'], vlan['vlan_pcp'])
File "netif.pyx", line 1313, in netif.VlanInterface.configure
OSError: [Errno 22] Invalid argumentI searched online, but to no avail. It seems that I'm missing some parameter in some place, but no clue where.
This is the interface I'm trying to setup:
Thank you in advance.