Fixing TrueNAS SMB IP binding

After changing network settings, TrueNAS IP address has been updated. If modify SMB configuration, error like:

1
smb_update.bindip.0: IP address [192.168.0.51] is not a configured address for this server

thrown.

To reset and clean up already bind IP, login TrueNAS Console and run:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
root@TrueNAS[~]# midclt call smb.update '{"bindip": []}'
{
"id": 1,
"netbiosname": "TRUENAS",
"netbiosalias": [],
"workgroup": "IGLOO STUDIO",
"description": "TrueNAS Server",
"unixcharset": "UTF-8",
"loglevel": "MINIMUM",
"syslog": false,
"aapl_extensions": true,
"Localmaster": true,
"guest": "nobody",
"filemask"': "",
"dirmask"': "",
"smb_options": "",
"bindip": [],
"cifs_SID": "S-1-5-21-2487580926-3122677641-100607549",
"ntImv1_auth": false,
"enable_smb1": false,
"admin_group": null,
"next_rid": 0,
"multichannel": true,
"netbiosname_local": "TRUENAS"
}

then can modify SMB configuration successfully.

References

Contents