Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connect to a NetBios share only knowing the IP address

Status
Not open for further replies.

arlequin

Programmer
Sep 21, 1999
232
UY
Hi, guys!

I want to connect to a netbios share on a win32 from my linux box.

The problem is the folllowing:
I don't know the share name, only the IP address of the machine running the netbios protocol.

How can I use smbclient or smbmount?


Thanks!!! Arlequín
arlequin@montevideo.com.uy
 
Hi,

You just make up a name for the server and link using the IP address :

mount -t smbfs -o user=user1,passwd=whatever,ip=192.168.0.1 //whatever/test /mnt/test

Hope this helps
 
Thanks ifincham!!!

I also have a printer attachet to the machine IP 192.168.0.1...

which is the way to set that remote printer to work under my system printers?

thanks Arlequín
arlequin@montevideo.com.uy
 
Hi,



You can probably just go through the config to set it up as a samba printer and specify the IP address instead of the netbiosname (server name). Of course you can also set up the mapping between netbiosnames and IP addresses in your /etc/samba/lmhosts file (create it if it doesn't exist). The format is more or less identical to /etc/hosts except that the hostname is the netbiosname - lmhosts should be placed in the same directory as your smb.conf file.


Once you have a print queue in existence on the linux box (samba or otherwise) you can share it via samba through smb.conf as for any other printer that the linux box knows about.



Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top