LinuxQuestions.org
Register a domain and help support LQ
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 02-13-2003, 11:06 PM   #1
engineer55
LQ Newbie
 
Registered: Feb 2003
Posts: 26

Rep: Reputation: 15
Question networking tutorial (help)


could anyone give me a link to a tutorial as how to set up a network of two computers using either mandrake 8.0 or 9.0.

im talking about something that actually tells you to type in certain keystrokes rather than (enter the ip address). in windows tutorials i see instructiions like ( in the next box type in 195.168.0.4) not enter the ip address. a classroom type of help.

the first two screens on network setup ask for ip addy, host name, dns server, and gateway. i need fictional info for these entries.

this is year two for me and still no network in linux.

thanks in advance.

pete
 
Old 02-14-2003, 04:10 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
not the exact stuff u are looking for but should get you started:

vhttp://www.yolinux.com/TUTORIALS/LinuxTutorialNetworking.html
 
Old 02-14-2003, 04:14 AM   #3
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Do you want to connect two Linux machines together or do you want to connect a Windows machine to a Linux machine?

You may not be able to find everything in a single tutorial. You may have to start with one on setting up the network, then read others on setting up I.P. addresses etc. as the need arises.

One of the advantages of using proprietary software is that you have a single source for tech. support. In the open source world, you have to search around a bit.

When you get stuck, use this forum to ask for help. I have learnt quite a bit here.
 
Old 02-14-2003, 07:19 AM   #4
engineer55
LQ Newbie
 
Registered: Feb 2003
Posts: 26

Original Poster
Rep: Reputation: 15
thanks for the responses

the link from born4linux is a start. ill get into it tonight a little more.

as to jamrock im just trying to connect two linux machines at this time. i set up two i gig machines with linksys cards that i know are compatable with linux because on my previous attempts to network i could ping either linux machine and a windows machine on the same network.

my only success at linux windows communication has been a one shot success at seeing a windows drive from a linux drive on the same computer.

pete
 
Old 02-14-2003, 07:33 AM   #5
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: fedora, slackware, suse
Posts: 448

Rep: Reputation: 31
As jamrock implies, network setup is dependent on your configuration, and there are many possibilities. It really depends what you want to do and how you want to do it. It is your choice, not Bill's anymore!!

I would skim this document found at the Linux Documentation Project. This one may not be quite current, but will certainly help a person understand some of the possibilities.

A simple tutorial that helped me specifically on a home network is found here.

Sorry for just posting links, but without specific questions and problems, a short concise answer that might be useful is impossible.

Last edited by fsbooks; 02-14-2003 at 07:36 AM.
 
Old 02-28-2003, 12:21 AM   #6
engineer55
LQ Newbie
 
Registered: Feb 2003
Posts: 26

Original Poster
Rep: Reputation: 15
ok, still totally lost.

can anyone give me a sequence as to what i should start to do first in my quest to share files.

i have 2 boxes set up with mandrake 9.0. the network cards are up and working. i dont need my own information. i can put anything you tell me to get started.

the next step will have to be paid help.

and yes i have used google untill my eyes blur.

and thanks again
 
Old 02-28-2003, 07:03 AM   #7
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: fedora, slackware, suse
Posts: 448

Rep: Reputation: 31
Quote:
what i should start to do first in my quest to share files
If you want to share files, that implies NFS, Network File Sharing. Assuming this is what you want, that the network is up and working (the machines can communicate), and that the Mandrake procedure is not that different from RedHat, the following should get you started.
  • Make sure you have nfs-utils installed.
    Edit the file /etc/exports on the machine (the server) which has the file you wish to share with the other machine.
    Add a line such as "/mnt/work clientname" to this file. Replace, of course, /mnt/work with the directory you wish to share and clientname with the IP or name of the machine where it will be shared.
    Start the nfs services. I use the following: "/etc/init.d/nfsd start".
    You should now be able to mount /mnt/work (or whatever you exported) on the client machine with the command "mount servername:/mnt/work /mnt/work". Note that you can mount it wherever you like and the directory (mount point) must exist).
This is a stetch only. Note by default this procedure "shares" files readonly (ro). Also note that you can configure the server to start nfsd on bootup (use chkconfig probably) and the client to automatically mount the filesystem (/etc/fstab). Once you get into it, you may like automount, which can mount a filesytem on demand.

More complete information can be found at your local mirror of the Linux Documentation Project. For me, that is the following:
http://www.wtfo.com/LDP/HOWTO/NFS-HOWTO/index.html

Have fun sharing.
 
Old 02-28-2003, 04:43 PM   #8
Rickdog
LQ Newbie
 
Registered: Feb 2003
Location: North Dakota
Distribution: Redhat 7.3, 8.0
Posts: 28

Rep: Reputation: 15
You will probably want to use samba and swat to enable file sharing. Here is a tutorial for samba. http://www.techtv.com/screensavers/l...458393,00.html As the article suggests, you will want to be behind a firewall to use this method, or you may be opening your whole network to attacks from the web.

Before that will work, you will have to have your basic network, nics installed, ip addresses set, set your external nic to dhcp (most likely), give fixed ip address to the internal nic, set the default gateway to the internal nic address of the gateway machine, etc. Firestarter has a pretty good graphic and explanation on setting up a small home lan. Their firewall is also very nice, especially with Redhat. Check out the manual and program at http://firestarter.sourceforge.net/index.php Check out the diagram and explanation in the manual -> NAT - Internet Connection Sharing. It shows exactly how to set up the IP addresses so that ICS will work, which BTW, will also work for samba and file sharing.

PS, what they call a twisted pair ethernet cable, is more commonly called a crossover cable in the states. If using a networking switch or hub, just use plain straight through cable, if connecting one machines nic directly to another, use the crossover, available at Radioshack and elsewhere or make one yourself by clipping one end of a patch cable and hooking up a new CAT5 connector with the appropriate crossover configuration.

Last edited by Rickdog; 02-28-2003 at 05:08 PM.
 
Old 03-04-2003, 09:29 PM   #9
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: fedora, slackware, suse
Posts: 448

Rep: Reputation: 31
Correct me if I am wrong, but Isn't Samba used to connect to windoze toys? Personally I've never heard of using it for network file sharing (note initials) between two linux boxes, two unix boxes, or a unix and a linux box.

But hey, who am I to know. I've heard of stranger things, such as a man being arrested today in a shopping mall in Albany NY (my father was born there) for wearing a tee shirt reading Give Peace a Chance on the front and Peace on Earth on the back.
 
Old 03-06-2003, 06:51 PM   #10
Smerk
Member
 
Registered: Oct 2002
Location: Cairnsian, Oz
Distribution: Debian testing/unstable, knoppix/debian fudged router!
Posts: 169

Rep: Reputation: 30
but wait there's more!

apparently the poor mug had only just bought that shirt in the shopping mall too..
 
Old 03-11-2003, 05:00 PM   #11
Rickdog
LQ Newbie
 
Registered: Feb 2003
Location: North Dakota
Distribution: Redhat 7.3, 8.0
Posts: 28

Rep: Reputation: 15
OK, I'm sorry, I misunderstood your question. Mandrake 9.0 likes to network. Did you select all the networking stuff when you selected the package groups during installation? If not, no big deal, start up the installation disk again and choose upgrade and you can add all the packages you want. I would select everything used for networking. Once when I installed MDK 9.0 it actually set up networking and sharing printer and such without me even doing anything!

Quote:
Originally posted by engineer55
ok, still totally lost.

can anyone give me a sequence as to what i should start to do first in my quest to share files.

i have 2 boxes set up with mandrake 9.0. the network cards are up and working. i dont need my own information. i can put anything you tell me to get started.

the next step will have to be paid help.

and yes i have used google untill my eyes blur.

and thanks again

Last edited by Rickdog; 03-11-2003 at 05:02 PM.
 
Old 03-12-2003, 01:43 PM   #12
Rickdog
LQ Newbie
 
Registered: Feb 2003
Location: North Dakota
Distribution: Redhat 7.3, 8.0
Posts: 28

Rep: Reputation: 15
[QUOTE]Originally posted by fsbooks
[B]Correct me if I am wrong, but Isn't Samba used to connect to windoze toys? Personally I've never heard of using it for network file sharing (note initials) between two linux boxes, two unix boxes, or a unix and a linux box.

Actually, yes you can use samba between linux boxes. From the RH 8.0 Customization Guide, chapt. 16, " To connect to a Samba share from a Linux system, from a shell prompt, type the following command:
smbclient //hostname/sharename -U username", you are right though, it is not necessary by any means. I mistakenly thought he was setting up a heterogeneous network. That's where people often have problems getting through the iptables filtering, password problems, access rights, and so on.
 
Old 03-16-2003, 10:38 PM   #13
engineer55
LQ Newbie
 
Registered: Feb 2003
Posts: 26

Original Poster
Rep: Reputation: 15
SUCCESS

after close to a year and a half i can see and share certain files between 3 linux machines. still a ways to go. pete8 and pete7 can be accessed fron pete9 but not each other. i also can see my three windows machines using mandrake control centers mount point/smbmountpoint.

at this point i im asking what i have to do to access pete7, workgroup home, password crab, (a win98 machine)with c shared, from pete9 (mandrake 9.0) password crab, workgroup home.

in mandrake control center, mount point, samba, pete7,c (search servers) i click on mount point and it asks where i want to mount it. (i probably want to put it in pete9, home, tmp) . with the previous info could someone give me the actual information i have to type in this box? ill keep researching but all my attemps to date havent worked.

and thanks to all for the help.

pete
 
Old 04-10-2003, 05:04 PM   #14
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30
Quote:
Originally posted by fsbooks
  • Make sure you have nfs-utils installed.
    Edit the file /etc/exports on the machine (the server) which has the file you wish to share with the other machine.
    Add a line such as "/mnt/work clientname" to this file. Replace, of course, /mnt/work with the directory you wish to share and clientname with the IP or name of the machine where it will be shared.
    Start the nfs services. I use the following: "/etc/init.d/nfsd start".
    You should now be able to mount /mnt/work (or whatever you exported) on the client machine with the command "mount servername:/mnt/work /mnt/work". Note that you can mount it wherever you like and the directory (mount point) must exist).
Hi, I have done what you have written above.
I have two mandrake 9.1 computers on a crossover network - just a cable between the two machines. eths are up on both machines. static IPs assigned to both: 123.123.1.1 on the server, and 169.254.229.239 on the client.
nfs services are up on both.
/etc/exports on the server machine has been edited. The only line added is exactly this:
# /mnt/windows 169.254.229.239

I run on the client machine:
#mount 123.123.1.1:/mnt/windows /mnt/windows
and get an error:
mount: RPC: Remote system error - Network is unreachable

Can somebody hint where is my mistake?

Many thanks.
 
Old 09-12-2005, 06:11 AM   #15
plodders
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
On a windows xp machine connected directly to broadband via wireless router, the small icon in the bottom right corner indicates:

IP Address : 192.168.1.100

SN Mask: 255.255.255.0

Default gateway : 192.168.1.1

DHCP Server: 192.168.1.1

DNS Servers: 192.168.4.100 & 192.168.8.100

I'm trying to connect a Suse 9.1 pro linux host on the internet but am a bit unsure of what the ip settings should be.

I have done a ping loopback test 127.0.0.1 so it would seem the wlan card is OK, but would appreciate any further help from some experts on TCP/IP, thanks.


 
  


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
QT tutorial vinsky2002 Linux - Software 2 03-02-2005 03:15 AM
Quick and dirty tutorial on networking? neocookie Linux - Networking 2 08-27-2004 07:22 AM
Basic Networking With Windows Tutorial Boffy Linux - General 1 08-10-2004 06:39 AM
Simple Networking Tutorial? EuroJovi Linux - Networking 1 11-24-2003 10:04 PM
How about a weekly tutorial? or just a tutorial Alinuxnoob LQ Suggestions & Feedback 2 04-09-2002 08:30 PM


All times are GMT -5. The time now is 09:51 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration