[Posted and mailed]
Quote:> I hate to ask such a newbie question but I just can't find the info I
> need in a manner I can understand. So here's the skinny:
> I have a win98 machine and a linux machine with a NIC each on a hub
> which is uplinked to cable modem (nonstatic ip). Each has its own ip for
> internet. I would like to also allow file/print sharing between them. I
> have Samba installed on the Slackware machine. The problem is that when
> I run the samba client, the information reported back is that the ip is
> the one assigned by dhcpcd for the cable modem service. Since I
> understand that the machines would use tcp/ip, how do I assign ips to
> the two so they can file/print share but at the same time not*with
> the cable modem service. I still haven't conigured the win box because I
> don't know what to use for tcp/ip settings etc. I _know_ it shouldn't be
> the internet ip....right?
I'm going to assume that your cable modem provider gives you only one IP
address, dynamically assigned or not. If they give you multiple addresses,
then there's really no problem, although doing as I suggest below will
give you security benefits, IF you bother to configure your system
correctly.
The method I recommend is to install two NICs in the Linux box. Connect
one NIC to the cable modem and the other to your Win98 computer. (You
shove the hub in a closet and forget about it if you get a crossover
cable to go between your two computers. Otherwise, keep using the hub.)
Configure the Linux box to do IP masquerading, and set up Samba so it
works on the internal network but not the external network. Using security
tools like ipchains, xinetd, or TCP Wrappers is an *ABSOLUTE MUST* on this
configuration or any other that involves an always-up network connection.
There are about half a dozen different networking topics involved in a
configuration like this, and covering them all in a single posting would
be crazy. You can read the various HOWTOs on the topic or get a book. I've
written one (_Linux: Networking for Your Office_), and these topics are
covered in several others as well. I describe several of these books on my
web page:
http://www.veryComputer.com/
--
http://www.veryComputer.com/
Author of books on Linux networking & WordPerfect for Linux