Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: two network cards - cant see other machine

  1. #11

    Re:two network cards - cant see other machine

    Omg i always seem to think of something else after a post.
    Just in case it's getting confusing with the ip changes.

    Win 1 = 192.168.0.1
    Win 2 = 192.168.1.2
    eth0 (in linux box connected to win1) = 192.168.0.3
    eth1 (in linux box connected to win2) = 192.168.1.4

    ok thats it for now.
    Its better to regret something you have done than to regret something you havent done :P

  2. #12
    JimH
    Guest

    Re:two network cards - cant see other machine

    Quote Originally Posted by friskydrifter
    dont know how to put a quote in here Jim but you wrote
    Have you configured the shares on your windows boxes in your smb.conf?
    I meant the smb.conf on your Linux box. I could have phrased the better. :P

    Silly question, but you do have sharing enabled in windows on the drives you are trying to share?

    You state that the windows boxes can see each other, but can you see the drives you are trying to share on the windows boxes?

    Jim H

  3. #13

    Re:two network cards - cant see other machine

    Ha ha ha , yes i understood the smb.conf in the linux box.

    And yes im sharing directories (not drives) on my windows machines.

    What I mean is that when i go into "Workgroup" on the win boxes i can see the "Samba Server" and the "other win boxes(1 and 2)". But when i try to acces a win box from another win box i cant.

    Messsage says cant find the network path.

    I tried a few other things in the smb.conf e.g.
    os level = 255
    local master=yes
    domain master=yes

    still didnt work.

    Have you configured the shares on your windows boxes in your smb.conf?
    how?

    also was digging around and found this

    Alas, samba browsing is broadcast based, and broadcasts will not be
    forwarded between subnets. You need a "bridge" to join networks in that
    fashion.

    hmmmmm dont know much about that? hope it gives your brain a kick lol???

    ok still determined to figure this out!
    Frisky
    Its better to regret something you have done than to regret something you havent done :P

  4. #14
    JimH
    Guest

    Re:two network cards - cant see other machine

    Ok I just learned something I didn't know. ;D

    Look at the BROWSING.txt file in your Samba docs it tells exactly how to set up browsing across subnets.

    On my RH 7.3 it is here:
    /usr/share/doc/samba-2.2.3a/docs/textdocs/BROWSING.txt

    Just do a: locate BROWSING.txt to find it on your box.

    An excerpt:


    With the release of Samba 1.9.17(alpha1 and above) Samba has been
    updated to enable it to support the replication of browse lists
    across subnet boundaries. New code and options have been added to
    achieve this. This section describes how to set this feature up
    in different settings.

    To see browse lists that span TCP/IP subnets (ie. networks separated
    by routers that don't pass broadcast traffic) you must set up at least
    one WINS server. The WINS server acts as a DNS for NetBIOS names, allowing
    NetBIOS name to IP address translation to be done by doing a direct
    query of the WINS server. This is done via a directed UDP packet on
    port 137 to the WINS server machine. The reason for a WINS server is
    that by default, all NetBIOS name to IP address translation is done
    by broadcasts from the querying machine. This means that machines
    on one subnet will not be able to resolve the names of machines on
    another subnet without using a WINS server.

    Remember, for browsing across subnets to work correctly, all machines,
    be they Windows 95, Windows NT, or Samba servers must have the IP address
    of a WINS server given to them by a DHCP server, or by manual configuration
    (for Win95 and WinNT, this is in the TCP/IP Properties, under Network
    settings) for Samba this is in the smb.conf file.


    And it goes on to explain how to configure you Samba server as a WINS server.

    Jim H

  5. #15

    Re:two network cards - cant see other machine

    ;D ;D ;D YEEEEESSSSS!! ;D ;D ;D

    Mission Accomplished Jim ! lol :P

    Thanks for your help! I didn't even know that .txt file existed.
    Plus i didn't know the "locate" command. It's great!

    Anyway as i said when i figured this out i'd explain it at the end for people who can't be bothered reading long posts and who zoom to the bottom to see if there's an answer (like me).

    1. Set up Samba

    2. Give the two cards on the linux box an IP address that puts them on a different subnet. e.g. eth0 - 192.168.0.1 eth1 - 192.168.1.1
    With red hat you can change this in "etc/sysconfig/network-scripts/ifcfg-eth0 ( and ifcg-eth1)

    3. edit /etc/samba/smb.conf :
    GLOBAL SETTINGS
    a) workgroup = WORKGROUP (or whatever workgroup you like)
    b) local master = yes (not sure if needed but did it anyway - test it!)
    c) os level = 65 ( or higher up to 255)
    d) domain master = yes
    e) preferred master = yes
    f) wins support = yes

    4. Make your Ip address for the windoze boxes match the subnet of the eth(x) card they are connected to e.g. if eth0 is 192.168.0.1 then the windoze box connected to it should have an ip something like 192.168.0.2 and if eth1 is 192.168.1.1 then make the windoze box connected 192.168.1.2 (this is using a subnet mask of 255.255.255.0 for all windoze machines and eth(x) cards on the linux box)

    5. Make the default gateway on the windoze boxes the same ip address of the eth(x) card they are connected to.

    6. In tcp/ip properties on the windoze boxes make WINS the same ip address of the eth(x) card the box is connected to ( will be the same as the default gateway you just configured)

    7. Share some files on the windoze boxes.

    8. hail www.getlinuxonline.com

    9. Pray a little.

    10. Reboot the lot! (just to be safe)

    11. Sit around and think you are really clever for a bit as you share files from 1 win box to another.

    Thats it! if you get stuck read the .txt file Jim states above.

    Next im gonna try to add a modem to the linux box and see if i can get some internet connection sharing happening, but i think thats going to be another thread/post whatchama callit?

    Good luck Newbies and thanks again Jim H

    Frisky Drifter
    Its better to regret something you have done than to regret something you havent done :P

  6. #16

    Re:two network cards - cant see other machine

    DAMN! i always forget something!

    Make sure the workgroup name is the same on all boxes !


    Its better to regret something you have done than to regret something you havent done :P

  7. #17
    JimH
    Guest

    Re:two network cards - cant see other machine

    Quote Originally Posted by friskydrifter
    10. Reboot the lot! (just to be safe)
    Reboot a Linux box? You have been hanging around windows tooooo long. :P ;D

    Jim H

  8. #18

    Re:two network cards - cant see other machine

    Ahem! guess what else i forgot to mention?
    You have to make make ip_forward = 1
    :-[
    In RedHAt you can change this in /etc/sysctl.conf
    make net.ipv4.ip_forward = 1

    And also Jim I only say reboot the lot bacause if you have Red Hat 7.2 and havent updated the initscripts then you will run into trouble when you change the ip addresses :P

    Well I did anyway??

    ok this is the last note from me i hope :
    Frisky
    Its better to regret something you have done than to regret something you havent done :P

  9. #19
    JimH
    Guest

    Re:two network cards - cant see other machine

    Quote Originally Posted by friskydrifter
    Ahem! guess what else i forgot to mention?
    You have to make make ip_forward = 1
    :-[
    In RedHAt you can change this in /etc/sysctl.conf
    make net.ipv4.ip_forward = 1
    I imagine that is just a line wrap problem with the post, but I assume you mean without the "make":

    net.ipv4.ip_forward = 1

    And also Jim I only say reboot the lot bacause if you have Red Hat 7.2 and havent updated the initscripts then you will run into trouble when you change the ip addresses :P
    LOL yeah that was a bug in initscripts if you didn't download the errata.

    Jim H

Similar Threads

  1. Unable to access remote machine after network upgrade
    By n.dave in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 12-06-2008, 05:36 AM
  2. Net sharing using 2 lan cards
    By Arun_adm in forum Windows - General Topics
    Replies: 3
    Last Post: 05-07-2008, 06:50 AM
  3. Squid at one machine and SquidGuard at another machine
    By Dogar in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 04-03-2007, 05:11 AM
  4. Phone cards..
    By TeRG in forum General Chat
    Replies: 7
    Last Post: 06-08-2004, 07:21 PM
  5. Install network cards
    By Black666 in forum Linux - Hardware, Networking & Security
    Replies: 11
    Last Post: 06-17-2002, 03:12 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •