Debian – Mounting NAS share: Bad Address

cifsdebianmountnetwork-attached-storageqnap

I have a Linux storage device (QNAP TS-459U), and 'massive1' folder shared. I need to mount this share on my Debian server. They are connected by regular patch cord. The Debian server has two network interfaces – eth0 and eth1. eth0 is for Internet, eth1 is for QNAP.

So, I'm saying this:

mount -t cifs //169.254.100.100/massive1/ /mnt/storage -o user=admin,

where 169.254.100.100 is an IP of QNAP's interface. The result I get (after entering password):

 mount error(14): Bad address
 Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Tried: mount.cifs, smbmount, with '/' at the end of the network share and without it, and many other variations of that command. And always it's: mount error(14): Bad address

Funny thing is when I was in Data Center, I had connected my netbook to QNAP by the same scheme (with Fedora 16 on it), and it connected without any problems, I could read/write files on the QNAP's NAS share!

So I'm really stuck with the Debian. I can't undrestand where's the difference with Fedora, making this error. Yeah, I've used Google. Couldn't find any useful info.

Ping to the QNAP's IP is working, I can log into QNAP's Linux by ssh, telnet on 139's port is working.

This is network interface configuration I use in Debian:

IP: 169.254.100.1
Netmask: 255.255.0.0

The only diffence in connecting to Fedora and Debian is that in Fedora I've added gateway – 169.254.100.129, but ping to this IP is not working, so I think it's not necessary at all.

~# cat /etc/debian_version
wheezy/sid

~# uname -a
Linux host 2.6.32-5-openvz-amd64 #1 SMP Mon Mar 7 22:25:57 UTC 2011 x86_64 GNU/Linux

~# smbtree

WORKGROUP
        \\HOST                         host server
                \\HOST\IPC$            IPC Service (host server)
                \\HOST\print$          Printer Drivers

NAS
        \\MASSIVE1                      NAS Server
                \\MASSIVE1\IPC$                 IPC Service (NAS Server)
                \\MASSIVE1\massive1
                \\MASSIVE1\Network Recycle Bin 1        [RAID5 Disk Volume: Drive 1 2 3 4]
                \\MASSIVE1\Public               System default share
                \\MASSIVE1\Usb                  System default share
                \\MASSIVE1\Web                  System default share
                \\MASSIVE1\Recordings           System default share
                \\MASSIVE1\Download             System default share
                \\MASSIVE1\Multimedia           System default share

Please, help me with solving this strange issue.

Best Answer

Is there any chance you have the QNAP's DHCP-server enabled? If so, that would explain why you were able to obtain an address locally via your laptop (zeroconf, maybe). Can you assign the QNAP and your network a proper local address scheme?

See: http://en.wikipedia.org/wiki/Private_network#Private_IPv4_address_spaces