Hello, I am hoping someone can help me.... I am trying to configure my samba...and the problem is the following: When I use nmblookup with -B option and Broadcast address it is impossible to find my samba server (named prova) that is: # nmblookup -B 10.254.14.127 prova querying prova on 10.254.14.127 name_query failed to find name prova If I do the same lookin up to another machine different from my samba server, then it is ok: # nmblookup -B 10.254.14.127 my_win_client querying my_win_client on 10.254.14.127 10.254.14.94 my_win_client<00> If I make: c:\net view \\prova there will be : error 1234 And id I do : nbtstat -A 10.254.14.80 (samba server ip) the answer is : unknown host Would some body help me ????
I can duplicate your situation (in both directions) by turning off the nmbd daemon on my server. Do you have nmbd running on the server? If so, is a firewall blocking it? Which port you ask? cat services | grep -i netbios netbios-ns 137/tcp # NETBIOS Name Service netbios-ns 137/udp netbios-dgm 138/tcp # NETBIOS Datagram Service netbios-dgm 138/udp netbios-ssn 139/tcp # NETBIOS session service netbios-ssn 139/udp Looks like port 137. Just guessing. Joel On Wed, Oct 09, 2002 at 11:55:25AM +0200, In Labore Fructus wrote:> Hello, > I am hoping someone can help me.... > > I am trying to configure my samba...and the problem is the following: > When I use nmblookup with -B option and Broadcast address it is > impossible to find my samba server (named prova) that is: > > # nmblookup -B 10.254.14.127 prova > querying prova on 10.254.14.127 > name_query failed to find name prova > > If I do the same lookin up to another machine different from my samba > server, then it is ok: > # nmblookup -B 10.254.14.127 my_win_client > querying my_win_client on 10.254.14.127 > 10.254.14.94 my_win_client<00> >
Are you sure nmbd is running? The cat services just shows the ports involved. try ps ax | grep nmbd 21017 ? S 0:06 /usr/local/samba/bin/nmbd -D 9546 ttyp2 S 0:00 grep nmbd or netstat -an | egrep 13[789] tcp 52 0 192.168.0.2:2960 192.168.0.6:139 ESTABLISHED tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN udp 0 0 192.168.0.2:138 0.0.0.0:* udp 0 0 192.168.0.2:137 0.0.0.0:* udp 0 0 0.0.0.0:138 0.0.0.0:* udp 0 0 0.0.0.0:137 0.0.0.0:* Try netstat -anp if your box supports the p option. It shows which daemon is listening. Joel