two Subnets, but no access - SMB

This is a discussion on two Subnets, but no access - SMB ; Hi, I have already tried a lot, but just now I have no idea. Following situation: XP-Computer (192.168.1.3 and 192.168.2.3), DSL-Router/Hub (192.168.1.1) and Linux-Computer (192.168.2.1). Therefore from the XP-Computer I have access to the Internet and to the Webserver from ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: two Subnets, but no access

  1. two Subnets, but no access

    Hi,

    I have already tried a lot, but just now I have no idea.
    Following situation: XP-Computer (192.168.1.3 and 192.168.2.3),
    DSL-Router/Hub (192.168.1.1) and Linux-Computer (192.168.2.1).
    Therefore from the XP-Computer I have access to the Internet and to the
    Webserver from Linux-Computer. The Linux-Computer can not speak to the
    router therefore no Internet-access. This is running without problems.
    But it is impossible to connect the Linux to XP (via net use
    \\xxx\yyy). If I use only one network (Linux has 192.168.1.5) then all
    is running.
    Pings are recognized. It should be something with Samba-configuration.
    Generally is such combination permitted?

    Bye Uwe


  2. Re: two Subnets, but no access


    Uwe Neumann wrote:
    > Hi,
    >
    > I have already tried a lot, but just now I have no idea.
    > Following situation: XP-Computer (192.168.1.3 and 192.168.2.3),
    > DSL-Router/Hub (192.168.1.1) and Linux-Computer (192.168.2.1).
    > Therefore from the XP-Computer I have access to the Internet and to the
    > Webserver from Linux-Computer. The Linux-Computer can not speak to the
    > router therefore no Internet-access. This is running without problems.
    > But it is impossible to connect the Linux to XP (via net use
    > \\xxx\yyy). If I use only one network (Linux has 192.168.1.5) then all
    > is running.
    > Pings are recognized. It should be something with Samba-configuration.
    > Generally is such combination permitted?
    >
    > Bye Uwe


    You are exporting shares from Samba to XP? If not then I
    misunderstood.

    What I do not understand is why you are using 'net use' when simple
    network neighbourhood browsing should do it.
    - do you have something in your samba config restricting you to a
    certain network?
    - have you looked at the logfiles? They are probably in /var/log or
    /var/log/samba.
    http://home.arcor.de/36bit/samba.html#4.13 may help.
    - if the samba logs are not showing anything then you need to look more
    closely at your XP PC. Make sure that your File/Printer sharing uses
    the correct network.

    The e-mail address supplied above, the real one has gmx.net as the
    domain.


  3. Re: two Subnets, but no access

    Yes, I try to use shares within XP. With network neighbourhood browsing
    I can not see the Linux-computer. But normally I connect a network
    share with Explorer. But it doesn't run.
    I the log.nmbd I can read following:

    [2006/02/10 22:23:56, 0] libsmb/nmblib.c:send_udp(756)
    Packet send failed to 192.168.1.3(137) ERRNO=Network is unreachable
    [2006/02/10 22:23:56, 0] nmbd/nmbd_packets.c:reply_netbios_packet(987)
    reply_netbios_packet: send_packet to IP 192.168.1.3 port 137 failed

    The log.smbd looks normal.
    But the IP 192.168.1.3 is the second adress of the XP-network-card
    (subnet between XP and router). Linux should verify IP 192.168.2.3
    instead of IP 192.168.1.3 !!
    Maybe it is only possible if you use WINS. Now WINS is not running and
    not activated.


  4. Re: two Subnets, but no access

    You only ever needed WINS if you were browsing across subnets. That is
    not the case here, everything you want is on 192.168.2.x

    Why does Samba think it should be advertising itself on 192.168.1.3?
    - XP Firewall? (not with that error)
    - something in smb.conf refers to the wrong network?
    - a bad /etc/hosts line with the other address?
    - your linux box itself has the IP address wrongly set (unlikely if
    ping works :-)
    - are you sure you have the right smb.conf file? SuSE put theirs in
    /etc/samba/smb.conf and the last time I unpacked and compiled a Samba,
    it wanted the config somewhere in the /usr/local tree (I think, this is
    ages ago!)

    If I do a 'ps aux', I get lines like:
    root 6399 0.0 0.2 5932 2012 ? Ss 17:55 0:00
    /usr/sbin/nmbd -D -s /etc/samba/smb.conf
    root 6501 0.0 0.4 8548 3156 ? Ss 17:55 0:00
    /usr/sbin/smbd -D -s /etc/samba/smb.conf

    That is all I can think of at the moment.


  5. Re: two Subnets, but no access

    It is very strange. Now I have changed the IP-adresses at the
    XP-computer again: XP-Computer (first: 192.168.2.3 and second:
    192.168.1.3). Removed DNS and gateway of router (192.168.1.1) and put
    in again. All other settings were not modified!
    And: it is running. I have no idea why. But the result ist ok.
    Heap thanks for your effort.


+ Reply to Thread