I feel bad asking this...

I feel bad asking this...

Post by Al Ardueng » Sat, 29 Jan 2000 04:00:00



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?

Laymen's terms if possible, please. I would be greatful.

Regards,
-Al

 
 
 

I feel bad asking this...

Post by Rod Smi » Sat, 29 Jan 2000 04:00:00


[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

 
 
 

I feel bad asking this...

Post by Jean Pierre Rup » Sat, 29 Jan 2000 04:00:00


Hi Al,

Up to what I know you can only assign one IP address to each network
interface in your system so if you only have one interface card for all
the services then that interface card will only have one IP address.
Anyways I think you can add the IP address of both computers to the
other's hosts file so the computer don't try to search internet DNS
servers for the name of the other computer that's in the same network.

Hoping this can be helpful...

Jean Pierre Rupp


> 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?

> Laymen's terms if possible, please. I would be greatful.

> Regards,
> -Al

--
Posted via CNET Help.com
http://www.veryComputer.com/
 
 
 

1. I feel bad...

Space Girl escribi en artculo:

I had the same trouble getting a script to automate the process... I
just used minicom, pppd defaultroute /dev/modem, and ifconfig until I
got a ppp connection... I just fried my slackware (kinda sorta on
purpose) and am now in the process of downloading enough RedHat to
start over again...

heh heh... troll...

_ _
coochie coo
benjamin d. capoeman      jelliebun's dainty ursine of delight
http://www.blarg.net/~balloo         balloo at wilhelp dot com
mhm15x1  wsd10   empire of meow   order of the greasy sombrero
solidly smeetered          alt.alien.vampire.flonk.flonk.flonk
--

2. VGA programming

3. I've got a bad feeling about this

4. Turtle Beach Montego

5. Bad Feeling?

6. X Drawing problem with Pixmaps

7. I feel bad for RH/Mandrake users.

8. Installing OpenBSD 2.4 intel

9. Okay, feeling very newbie asking this but, help me!

10. I feel silly but have to ask...

11. 014 Bad Bad Bad !!! for Linux

12. Bad, bad, bad VM behaviour in 2.4.10

13. Bad driver...Bad bad driver