LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-11-2003, 08:23 PM   #1
Avatar2112
LQ Newbie
 
Registered: Sep 2003
Location: Victoria, BC, Canada
Distribution: Redhat 9
Posts: 13

Rep: Reputation: 0
Basic LAN setup help needed


Here's the config:

System #1: My computer. Running a dual-boot (via GRUB) with Redhat 9 (2.4.20-20.9) and WIN98 SE. Also have a slave drive (DOS formatted) for backup etc.

System #2: Workstation. Running WIN98 SE

* Both computers access the internet via a HUB going to a cable modem using DHCP
* System #2 has a printer that System #1 needs to access
* System #1 needs to access the backup drive (mainly to play Mp3's from)
* Both need to access files from each other.

I have a good understanding of basic networking with Windows OS. I have read many docs explaining how to setup a LAN if the RedHat box is the server, but none that clearly explain how to access a printer on a WIN box. I understand that I should use SAMBA, but I have yet to find documentation that explains how to set this all up in plain-newbie-language. Do I have to use IP Masquerading and use IP's and all that? I hope this is enough info.

Can anyone point me in the right direction?
 
Old 09-12-2003, 05:38 AM   #2
sashhoney
Member
 
Registered: Jul 2003
Distribution: Red Hat, Fedora, Debian
Posts: 85

Rep: Reputation: 15
well u need not use ip masq at all for ur setup.
u just have to use samba for sharing linux resources(files/printer) from win, and installation of samba is extremely simple. there r so many How-to pages r available for samba and swat.
 
Old 09-12-2003, 11:17 AM   #3
Avatar2112
LQ Newbie
 
Registered: Sep 2003
Location: Victoria, BC, Canada
Distribution: Redhat 9
Posts: 13

Original Poster
Rep: Reputation: 0
ok, well that's good about not needing to use IP masq. But all the HOW-TO's I read, make the linux box the server/gateway and have two NIC cards. I guess my question is: Can I still use the same setup (two computers, each with one NIC card and connecting to the hub...which connects to the main cable input and use DHCP) without setting IP's and Gateways?

I have been trying to follow the setup instructions for Samba from:
http://www.justlinux.com/nhf/Networks/Samba.html

Thanks for you input.
 
Old 09-13-2003, 02:46 AM   #4
c0rrupt0
LQ Newbie
 
Registered: Sep 2003
Posts: 10

Rep: Reputation: 0
unless you have two IP's available to you from the DHCP server then you will need to assign one of the machines a static private IP. Otherwise when the DHCP offer is put out they might conflict. I ran into this problem and just gave it a 192.168.x.x IP and it worked fine.
 
Old 09-13-2003, 12:16 PM   #5
Avatar2112
LQ Newbie
 
Registered: Sep 2003
Location: Victoria, BC, Canada
Distribution: Redhat 9
Posts: 13

Original Poster
Rep: Reputation: 0
OK. Thanks. I will go ahead and try assigning IP's and a gateway. I get a little confused though when the HOW-TO's and FAQ's keep referring to the computer that will be the "server" (usually the Linux box). In my setup there really isn't a "server"

In this case, I guess the DHCP server is my ISP cable provider?
 
Old 09-13-2003, 02:14 PM   #6
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
Your talk about System 1 needing to access your FAT/FAT32 partitions that're on the same box.... You don't need Samba for that, I don't think...., all it requires is mounting those partitions. To do that, you edit them into your /etc/fstab and create a mountpoint in your /mnt/ directory. I don't think you have to do anything else for that task....
 
Old 09-13-2003, 02:22 PM   #7
Avatar2112
LQ Newbie
 
Registered: Sep 2003
Location: Victoria, BC, Canada
Distribution: Redhat 9
Posts: 13

Original Poster
Rep: Reputation: 0
Just for clarity, I have two HDD's on my Linux/WIN98 dual boot system. I want to be able to access my slave drive when running Redhat as I can when running WIN98.

I also want to share files and printer between myself (comp #1) and computer #2 (WIN98).
 
Old 09-13-2003, 02:34 PM   #8
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
so for the fstab file, you have as the device /dev/hdb1 fat /mnt/Backup, as well as the various arguments you want....
 
Old 09-14-2003, 12:43 PM   #9
Avatar2112
LQ Newbie
 
Registered: Sep 2003
Location: Victoria, BC, Canada
Distribution: Redhat 9
Posts: 13

Original Poster
Rep: Reputation: 0
Sorry, I don't understand. My main question is: Do I need to use IP's and gateways, etc with my current configuration? Since I have no "real" server...just two comps hooked together through a hub.

>I hate being a newbie :-(
 
Old 09-14-2003, 01:05 PM   #10
xjphil
Member
 
Registered: Aug 2003
Location: Collierville, TN
Distribution: Red Hat 9.0
Posts: 58

Rep: Reputation: 15
I think RJensen is right. I have a similar setup minus the second windows computer. I may not be able to answer your LAN question, but as far as your SMB deal, here's what I know.

I have a second physical (slaved) drive with XP, and RH9 on primary. The xp drive was NTFS, so mounting it took some configuring, but it is mounted. I can read, play mp3's, and all pics from the xp drive from RH9 no problem.

To do that, which was one of your questions above, do what r_jensen said. Add a directory in your /mnt directory, then mount the partitions that you want to access from RH, and when you boot up, all of your "local" drives and partitions will be accessable from within RH, as mine is set up.

I am still working on the networking thing, as I have a laptop that I would like to use also. So for your samba printer sharing question, I have looked, but I can't find the answer to your question.

I did find the smb: networking very easy when my laptop was using windows. Maybe when you run the printer set up on RH, search for printers, and look in the smb: directory... ?

I don't know much about it, but so far smb: has been easier for me than networking two RH computers!

If you figure it out, let me know!

phil
 
Old 09-15-2003, 01:14 AM   #11
sashhoney
Member
 
Registered: Jul 2003
Distribution: Red Hat, Fedora, Debian
Posts: 85

Rep: Reputation: 15
well i dont know how to share printer, when DHCP is used.
i m using similar conf but with one static ip from ISP. i configured my linux as gateway which has 2 nic. again i used static ips for my local net.

if u have static ips for the two machines
then u can share printer using foll method-
on ur linux machine run setup command and goto printer configuration
now to configure win printer select JETDIRECT option and add the ip of ur win machine
default port no will be 9100
 
  


Reply



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
basic LAN routing captain_b Linux - Networking 1 11-18-2005 10:46 AM
apache2 basic tutorial needed exodist Linux - Networking 1 02-22-2005 08:24 PM
basic lan config ryedunn Linux - Networking 10 01-29-2005 02:11 PM
help needed with basic networking ludwig W Linux - Networking 7 01-31-2004 03:03 PM
what is needed for a basic linux installation niehls Linux - General 6 05-03-2003 07:08 PM

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

All times are GMT -5. The time now is 01:54 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