Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
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).
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.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.