Problem: After Network Configuration Change Samba Does not Work

Problem

After a network configuration change Samba does not work any longer.

Solution

Match the Samba primary interface with the configured ones.
So here ens2 is the configured interface:

root@master:~# ucr search --brief interfaces/| grep -v "\.\*"
interfaces/ens192/address: 10.250.200.100
interfaces/ens192/broadcast: 10.250.200.255
interfaces/ens192/ipv6/acceptRA: false
interfaces/ens192/netmask: 24
interfaces/ens192/network: 10.250.200.0
interfaces/ens192/start: true
interfaces/ens192/type: static
interfaces/handler: ifplugd
interfaces/primary: ens192
interfaces/restart/auto: <empty>
samba/interfaces/bindonly: yes

They should match Samba settings:

root@master:~# ucr search --brief samba/interf
samba/interfaces/bindonly: yes
samba/interfaces: lo <interfaces/primary>
Mastodon