Samba doesn't detect any network interface

Tomasz Chmielewski mangoo at wpkg.org
Thu Feb 9 17:37:54 GMT 2006


Samba (smbd nor nmbd) doesn't detect any network interface on my system.

Perhaps it is because the system is a bit exotic (mipsel, uClibc, 
remember the "embedded Samba" thread?).

Normally, smbd and nmbd should "guess" the interfaces when "#interfaces 
=" are not defined in smb.conf.

In my case, it doesn't happen, and I get in the logs:

[2006/02/09 17:20:37, 0] lib/interface.c:load_interfaces(197)
   ERROR: Could not determine network interfaces, you must use a 
interfaces config line


The device has the following interfaces (as shown by ifconfig with most 
output removed):


br0       Link encap:Ethernet  HWaddr 00:15:F2:6A:E8:34
           inet addr:192.168.111.172  Bcast:192.168.111.191 
Mask:255.255.255.192

eth0      Link encap:Ethernet  HWaddr 00:15:F2:6A:E8:34

lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0

vlan0     Link encap:Ethernet  HWaddr 00:15:F2:6A:E8:34
           inet addr:192.168.111.180  Bcast:192.168.111.255 
Mask:255.255.255.0

vlan1     Link encap:Ethernet  HWaddr 00:15:F2:6A:E8:34


If I specify the interfaces manually:

interfaces = eth0 br0 vlan0 vlan1 lo

it doesn't help - netmask can't be determined:

[2006/02/09 17:29:54, 3] lib/util.c:interpret_addr(1203)
   sys_gethostbyname: Unknown host. vlan1
[2006/02/09 17:29:54, 2] lib/interface.c:interpret_interface(130)
   can't determine netmask for vlan1
[2006/02/09 17:29:54, 3] lib/util.c:interpret_addr(1203)
   sys_gethostbyname: Unknown host. lo
[2006/02/09 17:29:54, 2] lib/interface.c:interpret_interface(130)
   can't determine netmask for lo
[2006/02/09 17:29:54, 0] lib/interface.c:load_interfaces(225)
   WARNING: no network interfaces found


I thought a "workaround" would be to add IP/netmask:

interfaces = 192.168.111.172/255.255.255.192

And indeed, it doesn't complain anymore, but I cant use the tools like 
'rpcclient':

# rpcclient localhost -N -U'administrator%pass' -c 'setdriver SAMSU SAMSU'
ERROR: Could not determine network interfaces, you must use a interfaces 
config line


So, no luck really, I won't be able to use CUPS.


It seems to be something with interfaces.c, but I'm not sure.

Is there a way to make rpcclient work in my case?


-- 
Tomasz Chmielewski
http://wpkg.org


More information about the samba-technical mailing list