perryb
Cadet
- Joined
- Apr 10, 2018
- Messages
- 9
I have two network interfaces setup for LAGG on my TrueNAS SCALE. Everything works fine as long as I use a dhcp reservation on my dhcp server to assign an IP address to the bond0 interface. Now I want to set the change the IP address AND set it statically on the TrueNAS box. However, I cannot set the IP address manually etiher through the web GUI, the menu driven CLI interface, or from the actual CLI. Whenever I try to set the alias for the bond0 interface, etiher by the Web GUI or the CLI menu, TrueNAS throws a runtime error. From the Web GUI, I got to:
network/intefaces/bond0
go down to bottom of the bond0 interface pop-out to the "add alias" section (by the way, the DHCP radio button on the pop-out for bond0 is unchecked and I still get a dhcp assined ip), enter the new ip address (in my case I enter 192.168.0.3 /24). When I click save a runtime error window pops up that says the following:
When I close bothe the error and bond0 configuration windows, I am now able the select the "Test Changes" button. When I select the "Test Changes," it thinks for about 10 seconds, then nothing changes and it keeps the orginal dhcp assigned IP address. Essentially the same theing happens when I try to change it for the CLI menu. When I try to get into the CLI /etc/network/interfaces section, it's very empty - notthing configured,all files are empty.
I've serached the boards and Google about this problem and while there are those that have problems setting a static IP on their trueNAS SCALE, none of them have my specific issue. Can anyone help me get around this problem and statically assign the IP address information to my (Lagg) bond0 interface?
Thank you
network/intefaces/bond0
go down to bottom of the bond0 interface pop-out to the "add alias" section (by the way, the DHCP radio button on the pop-out for bond0 is unchecked and I still get a dhcp assined ip), enter the new ip address (in my case I enter 192.168.0.3 /24). When I click save a runtime error window pops up that says the following:
Code:
Error: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/main.py", line 184, in call_method result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self) File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1317, in _call return await methodobj(*prepared_call.args) File "/usr/lib/python3/dist-packages/middlewared/service.py", line 951, in update rv = await self.middleware._call( File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1317, in _call return await methodobj(*prepared_call.args) File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1247, in nf res = await f(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1379, in nf return await func(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/plugins/network.py", line 1253, in do_update lag_id = await self.middleware.call( File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1368, in call return await self._call( File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1317, in _call return await methodobj(*prepared_call.args) File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1379, in nf return await func(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/plugins/datastore/write.py", line 103, in update raise RuntimeError(f'{len(rows)} found, expecting one') RuntimeError: 0 found, expecting one
When I close bothe the error and bond0 configuration windows, I am now able the select the "Test Changes" button. When I select the "Test Changes," it thinks for about 10 seconds, then nothing changes and it keeps the orginal dhcp assigned IP address. Essentially the same theing happens when I try to change it for the CLI menu. When I try to get into the CLI /etc/network/interfaces section, it's very empty - notthing configured,all files are empty.
I've serached the boards and Google about this problem and while there are those that have problems setting a static IP on their trueNAS SCALE, none of them have my specific issue. Can anyone help me get around this problem and statically assign the IP address information to my (Lagg) bond0 interface?
Thank you