Mailinglist Archive: opensuse (3959 mails)

< Previous Next >
Re: [SLE] no Samba server in network neighborhood
  • From: FX Fraipont <fxf@xxxxxxxxx>
  • Date: Tue, 07 Jan 2003 20:05:31 +0100
  • Message-id: <3E1B24FB.1060304@xxxxxxxxx>
Tom Emerson wrote:

OK, "one last test..." per the docs, the default is to assign this "on every broadcast capable network interface"; presumably your system does NOT have interface 192.168.0.1 "defined", so attempts to allocate on that network should not be happening "but they are..." What happens if you explicitly add in
interfaces 192.168.0.99/255.255.255.0

[I believe .99 is the one you said was this host -- obviously, alter this if I'm wrong...]


You're right.
This is what I get:

[2003/01/07 19:47:24, 0] nmbd/nmbd.c:main(794)
Netbios nameserver version 2.2.5-SuSE started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2003/01/07 19:47:24, 0] nmbd/asyncdns.c:start_async_dns(148)
started asyncdns process 6245
[2003/01/07 19:47:24, 0] lib/util_sock.c:open_socket_in(804)
bind failed on port 137 socket_addr = 192.168.0.1.
Error = Cannot assign requested address
[2003/01/07 19:47:24, 0] nmbd/nmbd_subnetdb.c:make_subnet(139)
nmbd_subnetdb:make_subnet()
Failed to open nmb socket on interface 192.168.0.1 for port 137. Error was Cannot
assign requested address
[2003/01/07 19:47:24, 0] nmbd/nmbd.c:main(872)

No, no luck ....


BUT ! I think I've found the culprit.

After editing smb.conf, I ran testparm, and got "Loaded services file OK" and an invitation to see the dump of my services definition, I pressed enter, and guess what I saw?

# Global parameters
[global]
coding system =
client code page = 850
code page directory = /usr/share/samba/codepages
workgroup = WORKGROUP
netbios name =
netbios aliases =
netbios scope =
server string = Samba Server
interfaces = 192.168.0.1/24 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
bind interfaces only = No
security = USER


I'm beginning to think the error messages are a bit of a red herring -- you're getting this message for address 192.168.0.1, which presumably isn't defined [aside: try an "ifconfig" command at some point --
vertigo:/var/log/samba # ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:61:42:99:79
inet addr:192.168.0.99 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::204:61ff:fe42:9979/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:581363 errors:0 dropped:0 overruns:0 frame:0
TX packets:342496 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:720226372 (686.8 Mb) TX bytes:34177310 (32.5 Mb)
Interrupt:11 Base address:0xc800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:209 errors:0 dropped:0 overruns:0 frame:0
TX packets:209 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:154236 (150.6 Kb) TX bytes:154236 (150.6 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:217.136.113.211 P-t-P:217.136.113.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:80821 errors:0 dropped:0 overruns:0 frame:0
TX packets:89501 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:50811052 (48.4 Mb) TX bytes:54352598 (51.8 Mb)



you might want to pipe this to "more/less" or increase the number of lines in your terminal in case this scrolls -- perhaps something "grabbed" this IP address, such as dhcp,


I don't have dhcp running.

So where does samba get all these configuration options listed in the dump that are not explicitly specified in /etc/smb.conf?
Or is any net in the 192.168.0.x range defined like this : 192.168.0.1/24?

But then, typing the question suddenly rings a belle, and I check my SuSEfirewall2 configuration, and I find:

FW_MASQ_NETS="192.168.0.0/24"

and full of hope, I change that to 192.168.0.99/24, restart firewall, nmbd, smbd, and the log.nmbd looks like this :-(

[2003/01/07 20:01:22, 0] nmbd/nmbd.c:main(794)
Netbios nameserver version 2.2.5-SuSE started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2003/01/07 20:01:22, 0] nmbd/asyncdns.c:start_async_dns(148)
started asyncdns process 7379
[2003/01/07 20:01:22, 0] lib/util_sock.c:open_socket_in(804)
bind failed on port 137 socket_addr = 192.168.0.1.
Error = Cannot assign requested address
[2003/01/07 20:01:22, 0] nmbd/nmbd_subnetdb.c:make_subnet(139)
nmbd_subnetdb:make_subnet()
Failed to open nmb socket on interface 192.168.0.1 for port 137. Error was Cannot
assign requested address
[2003/01/07 20:01:22, 0] nmbd/nmbd.c:main(872)


?????


FXF

--
______________________
Courtesy of SuSE Linux
nibz.org



< Previous Next >
Follow Ups