Operating System - HP-UX
1822897 Members
3711 Online
109645 Solutions
New Discussion

Mounting CIFS shares with IP address

 
Bryan Strait
Advisor

Mounting CIFS shares with IP address

I'm not a guru by any means when it comes to windows networking. I've searched the forums and seen similar issues; each with the conclusion that CIFS shares cannot be mounted using only the IP address.


For example, the following works where server is resolved to 192.168.10.50 in the /etc/hosts file...

mount -F cifs server:/share /mnt/share

But the following produces a "connection refused" error...

mount -F cifs 192.168.10.50:/share /mnt/share


We're running version A.01.09 client running on HPUX 11i v2, connecting to shares on a Win2003 server. I can successfully mount the shares by hostname but not by IP. We're not using DNS, so the host name resolution is limited to /etc/hosts. The reason we need to mount by IP address instead of hostname is that I need shares to be mounted on specific IP addresses. When mounting by IP I get "connection refused."

Is there any way the CIFS client can be told which IP address to use? I've tried the ipaddr option with mount, but this only works as a netbios IP address. I've also tried using the cifsmount using the -I option and it also produces undesireable results. Furthermore, I've tried creating host entries in the /etc/hosts specific to the IP addresses we wish to mount - this still produces a connection refused.

Can anyone shed any light on this? Thanks so much!

Bryan
1 REPLY 1
Robert-Jan Goossens
Honored Contributor

Re: Mounting CIFS shares with IP address

Hi,

found this doc on docs.hp.com

http://docs.hp.com/en/B8724-90067/ch02s08.html

HTH,
Robert-Jan