LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-17-2003, 08:13 PM   #1
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
Networking with a switch


I have two computers, one running Slack, the other running Windows 2000. I used to have my network set up so the 2k box had two network cards (cable modem/Internet and switch/LAN) and I would access the Internet on the second computer by setting the first one to use ICS and act as a DHCP server. Now, I found out that my ISP provides multiple IPs, so I changed everything around: plugged the cable modem and both computers into the switch. Now they can access the internet independently, but I have no LAN. There is nothing in Network Neighborhood on the 2k box (not sure how to check in linux). So, how can I get the computers to see each other? If I get more cat 5 cable and run one from the second NIC in the 2k box to the switch, would it do anything?
 
Old 12-17-2003, 10:17 PM   #2
jstu
Member
 
Registered: Jan 2002
Distribution: slackware
Posts: 193

Rep: Reputation: 30
Read up on samba.
www.samba.org
 
Old 12-18-2003, 01:04 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Both computers can see each other just fine on your LAN. You've fallen for the common misconception that Microsoft networking == LAN (and vis versa). Really, a LAN is just a bunch of systems running the same protocols and physically connected some how (in this case, through the switch). Your Win2K box runs IP (Internet Protocol), and so does Linux. Technically speaking, they're networked to each other.

What you're thinking of is SMB/CIFS, which is Microsoft networking and uses a set of proprietary protocols built on top of IP. For that, use Samba (like above).
 
Old 12-18-2003, 12:57 PM   #4
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
Yeah I know that, but this is the thing. I am running Samba on this computer, but they don't see each other. I can look in network neighborhood or do "smbclient -L <IP of Win2000 box>" and they don't see each other. I would guess because they seem to be going through the Internet to reach each other (several hops) instead of right to each other. My network is set up like this:
Code:
|Cable Modem|
      |
      |
   |Switch|
     / \
Comp1   Comp2
Correct me if I am wrong anywhere. The definition of "LAN" I am using is where they can talk to each other without leaving my house. They are not set up for this because they both have network cards that have non-local IPs (via DHCP). If I got an additional network card for each computer and hooked them to the switch with statis IPs like 192.168.0.1 and 192.168.0.2 or something, would that work? As far as I can see, using the cable modem with the switch is basically like giving the cable modem more ports, like I had both computers directly plugged into the modem.
 
Old 12-18-2003, 01:55 PM   #5
jstu
Member
 
Registered: Jan 2002
Distribution: slackware
Posts: 193

Rep: Reputation: 30
Can you ping the linux box from the windows and vice versa. Or try a traceroute. See what that returns

Last edited by jstu; 12-18-2003 at 01:57 PM.
 
Old 12-18-2003, 03:26 PM   #6
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Oooooh, you have multiple IPs from your ISP and each computer gets an Internet IP? OK, that makes more sense.

You could get an additional NIC for each box and hook them together with a crossover cable (giving each NIC a private IP on the same net). Another way to do it would be to use some sort of gateway between the cable modem and the switch. Most SoHo devices do not have support for multiple WAN IPs, but you could use a Linux box for this and configure ipmasq. Then the Linux box (or any other *nix, for that matter) would have both external IPs and it would NAT them to internal private IPs. Your internal boxes would have private IPs.

Using only your current equipment, you could buy one more NIC for the Linux box and setup NAT on the Linux box. The cable modem would plug into one NIC on the Linux box, and the other NIC would plug into the switch with the Windows box.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
networking my linux machine with my xp machine through a 3com switch chefkahuna Linux - Networking 1 07-06-2005 09:01 AM
thread switch results in kernel stack switch superstition Linux - General 1 05-17-2005 11:48 PM
Random Networking to Non-Networking o-o Ne0BDP Slackware 3 07-08-2004 01:18 AM
set up DSL thru SWITCH - winXp connected to SWITCH too husz Linux - Newbie 5 04-22-2004 12:08 AM
the switch is on Robert0380 LinuxQuestions.org Member Success Stories 1 09-11-2003 12:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration