LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   networking tutorial (help) (https://www.linuxquestions.org/questions/linux-networking-3/networking-tutorial-help-45323/)

engineer55 02-13-2003 11:06 PM

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

born4linux 02-14-2003 04:10 AM

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

vhttp://www.yolinux.com/TUTORIALS/LinuxTutorialNetworking.html

jamrock 02-14-2003 04:14 AM

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.

engineer55 02-14-2003 07:19 AM

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

fsbooks 02-14-2003 07:33 AM

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.

engineer55 02-28-2003 12:21 AM

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

fsbooks 02-28-2003 07:03 AM

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.

Rickdog 02-28-2003 04:43 PM

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.

fsbooks 03-04-2003 09:29 PM

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.

Smerk 03-06-2003 06:51 PM

but wait there's more!
 
apparently the poor mug had only just bought that shirt in the shopping mall too..

Rickdog 03-11-2003 05:00 PM

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


Rickdog 03-12-2003 01:43 PM

[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.

engineer55 03-16-2003 10:38 PM

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

linuxfond 04-10-2003 05:04 PM

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.

plodders 09-12-2005 06:11 AM

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.


:confused: :confused:


All times are GMT -5. The time now is 10:34 PM.