General discussion

  • Creator
    Topic
  • #2114959

    Linux / Windows network HELP!

    Locked

    by m trump ·

    OK, here’s the situation: I’m a Windows specialist w/ a basic understanding of networking principles and I’m trying to help my brother get my Dad’s PIII to share his cable modem on a Linux box. Basically, I’m stumped.

    Here’s the architecture:The cable modem is hooked up to the Linux box to one NIC w/ a crossover cable, Another NIC on the same machine is connected to a hub w/ a straight cable and another straight cable from the hub is connected to the NIC in my Dad’s PC. All NICs are working (getting lights) but neither machine can see the other when pinged. The PC is set up with a static IP and has the Linux box’s IP set as a gateway, I’ve also mixed between no IP and no gateway but no go. My brother says he has his end set up right but I have no idea….whatever suggestions I get I’m forwarding them to him as well. This should be simple to do, I’m just not familiar enough w/ Linux or advanced networking to get it to work……

    HELP!!

All Comments

  • Author
    Replies
    • #3686415

      Linux / Windows network HELP!

      by mtuppen ·

      In reply to Linux / Windows network HELP!

      I’m not sure what it is you are wanting to do once you have the PC’s networked. If you are wanting to share an internet connection, then IP-Masquerading may be the answer. There is a HOWTO on how to do it. It should be fairly simple to setup the network addressing on the linux PC, depending on the flavour of linux it is. If you’re using RedHat, you can go into linuxconf (as root) and configure your IP settings there. There is also some networking HOWTO documents available from http://www.linuxdoc.org.On the other hand, if you are wanting to see Windows drives on the linux PC, you will need to have SAMBA installed. It all depends on what you intend on doing with it.

      Regards,
      Mike.

      • #3821572

        Linux / Windows network HELP!

        by m trump ·

        In reply to Linux / Windows network HELP!

        Share Internet connection and the Linux box has already been set up, it’s getting the two machines to see each other that’s the problem. Been to Linuxdoc already and I know about SAMBA but that’s not even an issue right now. Thanks anyway!

    • #3686363

      Linux / Windows network HELP!

      by dustbunnyden_webmaster ·

      In reply to Linux / Windows network HELP!

      check out http://www.linuxdoc.org this site is home to the linux how-to’s.

      • #3821573

        Linux / Windows network HELP!

        by m trump ·

        In reply to Linux / Windows network HELP!

        Thanks; been there, done that, T-shirt faded in the wash 🙂 In other words, no help……..the Linux box has already been setup.

    • #3821607

      Linux / Windows network HELP!

      by jcmcintyre ·

      In reply to Linux / Windows network HELP!

      The easiest way to share the Internet connection is by setting up a SmootWall Firewall / gateway.

      Go to http://www.smoothwall.org

      The completion installation takes about 30 minutes, completed firewalling, Ip masquerading, and a router.

      Cheers

      Jim

    • #3826751

      Linux / Windows network HELP!

      by marshallkeithusa ·

      In reply to Linux / Windows network HELP!

      Your first Mistake is that you should not use
      a crossover cable. You did not say what
      flavor of Linux you were using. IT DOES MAKE
      A DIFFERENCE. Most of the newer versions use
      ipchains or iptables. Most likely you are
      using ipchains so lookat the man page for ip
      chains. You also have to have the linux
      machine set up with IP forward. using ip
      chains forward to deny. Then on the nic that
      is hooked to the DSL to masq the address
      range of your internal network. I have the
      same setup with a cable modem. If you could
      tell us what IP’s and what version of linux I
      could be more accruate.

    • #3801177

      Linux / Windows network HELP!

      by dallen ·

      In reply to Linux / Windows network HELP!

      I would agree with Marsha, you shouldn’t be using a cross-over cable to the DSL router. You would only need a corss-over if you were going from the DSL router to the HUB/Switch. And if you did this you’re DSL router would have to support Proxy/Firewall, so you would not be charged for extra connections.

      You may want to check your subnetting, If ypu cannot ping the machine than you may not be local to it. Also if your brother is like mine, Make sure he does not have a “Deny” record for your machine. I would statically add your machine to the Linux routing tables. Also add the Linux bow to your windows Hosts file.

    • #3681292

      Linux / Windows network HELP!

      by brianbarber ·

      In reply to Linux / Windows network HELP!

      If I read your problem accurately, you cannot ping your firewall from your PC and you can’t ping your PC from your firewall. I would recommend that you issue this command from your firewall:
      /sbin/route -add host ip.of.your.pc netmask ip.of.your.netmask dev ethx
      (x being your internal NIC)

      On my network, it would be:
      route -add host 192.168.1.2 netmask 255.255.255.0 dev eth1

      This adds a static route to your routing table from your firewall to your PC. If this works, add the command you issued at the prompt to the end of /etc/rc.d/rc.local so that when your machine reboots, the route is added.

      I’ve set up a few linux-based firewalls for folks with cable modems and everytime I have used a straight-through cable from the publicNIC on the firewall to the cable modem.

      Cheers,
      BB

    • #3674638

      Linux / Windows network HELP!

      by sjb_xexec ·

      In reply to Linux / Windows network HELP!

      Maybe I misparsed, but it seems that your problem is that while the physical connections are in place, the default routes are not.

      Assuming that the 2 pc’s have IP addresses in the same subnet, and they can ping each other but not traverse the linux router, do this:
      (assuming WW is the IP of the router, XX is the IP of the windows PC, YY is the IP of the linux pc eth1(connected to the hub) and ZZ is the IP of linux pc eth0(connected to the router)

      /sbin/route add default gw ZZ dev eth1
      /sbin/route add default gw WW dev eth0
      /sbin/route add net netmask
      etc… read the manpages for iproute2

      Joel

    • #3674637

      Linux / Windows network HELP!

      by sjb_xexec ·

      In reply to Linux / Windows network HELP!

      Maybe I misparsed, but it seems that your problem is that while the physical connections are in place, the default routes are not.

      Assuming that the 2 pc’s have IP addresses in the same subnet, and they can ping each other but not traverse the linux router, do this:
      (assuming WW is the IP of the router, XX is the IP of the windows PC, YY is the IP of the linux pc eth1(connected to the hub) and ZZ is the IP of linux pc eth0(connected to the router)

      /sbin/route add default gw ZZ dev eth1
      /sbin/route add default gw WW dev eth0
      /sbin/route add net netmask
      etc… read the manpages for iproute2

      Joel

    • #3675609

      Linux / Windows network HELP!

      by m trump ·

      In reply to Linux / Windows network HELP!

      This question was closed by the author

Viewing 8 reply threads