[Samba] SMB connection failed

Juan Nin juaid at juanin.com
Tue Apr 1 15:23:09 GMT 2003


Hi,

I got the following schemma:

                                        +---------------+
+---------------+              |   192.168.1.2  |
 |  Linux Box       |             +------------- -+
 +---------------+  ------  |        Router      |
 |     LAN            |             +---------------+
 | 192.168.1.1     |              |192.168.5.0/24|
+---------------+              +---------------+
          |                                           |
          |                                           |
+-----------------+         +-----------------+
|         LAN           |          |         LAN          |
+-----------------+         +-----------------+
| 192.168.1.0/24   |          | 192.168.1.0/24  |
+-----------------+         +-----------------+


I'm connecting via Samba from the Linux Box, to a Windows XP machine on the
192.168.1.0/24 LAN, of IP address 192.168.1.10, using the following script:

###################################################
#!/bin/bash
IPADDR="192.168.1.10"
SERVERUNC="//Server/C$"
SERVERMNT="/mnt/server/"
USER="username"
PASS="password"

smbmount ${SERVERUNC} ${SERVERMNT} ip=${IPADDR} fmask=644 -o
username=${USER},password=${PASS} > /dev/null
####################################################

It works OK...

Now, when I try to connect from the Linux box to another Windows XP machine,
that's in the 192.168.5.0/24 LAN, of IP address 192.168.5.15, using an
identical script but using that machine's information, I receive a "SMB
connection failed" error.

There are no routing problems, the Linux box can see the XP 192.168.5.15, I
can ping it. There are no forewall rules or anything that could be blocking
any type of access between both of them...

Moreover, I can connect from the XP 192.168.1.10 to the XP 192.168.5.15 and
mount it's hard drive without any problem

The Linux Box is a Debian 3.0 Woody with Kernel 2.4.18

Any ideas??

Thanks in advanced,

Juan





More information about the samba mailing list