Re: netbios name resolution with samba

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>   $ nmblookup 192.168.2.255 '*'
>   $ nmblookup -A 192.168.2.42
>   $ smbclient -L 192.168.2.42 -N
> 
> When you search your network neighbourhood from Windows, Samba
> should log in /var/log/samba/smbd.log and /var/log/samba/nmbd.log.

results of nmblookup 192.168.2.155 '*':
192.168.2.42 as the first one, then the IPs
of the other 100+ machines on this subnet.

[root@testbox samba]# nmblookup -A 192.168.2.42
Looking up status of 192.168.2.42
        TESTBOX         <00> -         M <ACTIVE>
        TESTBOX         <03> -         M <ACTIVE>
        TESTBOX         <20> -         M <ACTIVE>
        80              <00> - <GROUP> M <ACTIVE>
        80              <1e> - <GROUP> M <ACTIVE>

[root@testbox samba]#

smbclient -L 192.168.2.42 -N produced:
[root@testbox samba]# smbclient -L 192.168.2.42 -N
added interface ip=192.168.2.42 bcast=192.168.2.255 nmask=255.255.255.0
Domain=[80] OS=[Unix] Server=[Samba 2.2.5]

        Sharename      Type      Comment
        ---------      ----      -------
        cdrom          Disk      CD-ROM drive
        apache         Disk      Authorized users only!
        IPC$           IPC       IPC Service (testing machine)
        ADMIN$         Disk      IPC Service (testing machine)
        root           Disk      Your Home Directory

        Server               Comment
        ---------            -------
        LBOX                 Debian Test Box
        TESTBOX              testing machine

        Workgroup            Master
        ---------            -------
        80                   LBOX
[root@testbox samba]#
The logs didn't seem to show anything crazy, but here's what happens when i restart samba:
[root@testbox samba]# /etc/init.d/smb restart
Shutting down SMB services:                                [  OK  ]
Shutting down NMB services: /etc/init.d/smb: line 201: kill: (8963) - No such process
/etc/init.d/smb: line 201: kill: (8946) - No such process
                                                           [  OK  ]
Starting SMB services:                                     [  OK  ]
Starting NMB services:                                     [  OK  ]
(I noticed that there wasn't an nmbd.log, by the way)
Thanks for your help, any other advice?
Kev
----------------------------------------------------------- 
Kevin Worthington - <kworthington (at) linuxmail {dot} org>
Faithful Red Hat Linux user since April 1998
Registered Linux User #218689 - http://counter.li.org
-- 
Get your free email from www.linuxmail.org 


Powered by Outblaze





[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux