Mounting NAS share: Bad Address
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
Related videos on Youtube
Korben
Updated on September 18, 2022Comments
-
Korben over 1 year
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.
-
Korben about 12 yearsBut why it worked in Fedora? And why it's pingable? I can't understand.
-
Korben about 12 yearsOkay, I've set up QNAP's network interface with IP 192.168.100.100/24, and the debian IP - 192.168.100.1/24. Result is the same - Bad address.
-
Korben about 12 yearsBy the way, using 169.254.100.100 and 169.254.100.1 IPs described in the installation guide book for QNAP, so it must work. The reason is 100% in Debian, but what's wrong, I can't get.
-
Korben about 12 yearsI think I know, why it worked on my laptop. It's because it has only one network adapter, when the server has two interfaces. I think the reason is in routing.
-
Korben about 12 yearsInstalled CentOS and everything became fine.