Networking With Red Hat - Need Help (school Project)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware: in progress, Mandrake 9.2, Libranet, Vector
Posts: 373
Rep:
Networking With Red Hat - Need Help (school Project)
oK.. here is the thing. I'm taking this engineering course at school. Today we just started doing networking. My teacher put us into groups and our task is to create a network between two computers and then create a manuel of it.
We are using Red Had linux. The thing is, he is not going to go from A - Z and teach us everything. We have to find out ourselvs. If we really stuck, then he is going to help us. But not teach us.
Ok.... these are the parameters.
We can't use any routers. It has to be a direct connection from one computer to another. We should be able to share hard drive (no internet/printing). Just the hard drive. We have to be able to set it up from red hat and get it running.
But....
I just started using linux recently and havent touch the networking part yet. I use mandrake not Red Hat.
It would be really really great if someone can show me the way. I mean, if you know any websites and resources about this thing just post them here. It would be really helpful while I'm doing it myself.
Finally... thanks for taking the time to read the whole thing.
Originally posted by Nukem If both computers are running Linux, do I still need to configure Samba to share files?
No. You can use NFS where you are mounting a directory from PC1 onto PC2.
You have to have the NFS service running and configured (there's a file you need to put the name of PC2 into ... but I can't recall the filename.) Then from PC2 you mount the directory ... mount -t nfs pc1:/directoryname /mountpoint
Distribution: Slackware: in progress, Mandrake 9.2, Libranet, Vector
Posts: 373
Original Poster
Rep:
I found a tutorial by searching on google.com/linux but the NFS tutorial seems pretty complicated while Samba one looks kind of simple. Is using Samba easier than NFS?
Originally posted by Nukem I found a tutorial by searching on google.com/linux but the NFS tutorial seems pretty complicated while Samba one looks kind of simple. Is using Samba easier than NFS?
As with everything, easier is a relative term. It really depends on what you are trying to accomplish. Try out NFS, and if it doesn't meet your needs, it's easy to change back. Look at this piece from Linux Newbie and scroll down to the NFS section. It's amazingly easy, and will only take 60 seconds or so to setup. The one thing they don't mention is that the "host" PC must have the NFS service running (or if running, restarted) after the changes are made.
Since you're going to be directly connecting the two machines I'm going to assume that they will not be getting IP addresses from a DHCP server. In which case you will have to assign each an IP, say 192.168.0.1 and 192.168.0.2.
...then when you are mounting the drive, you'll want to use the IP address (otherwise it probably won't find the host computer)
Distribution: Slackware: in progress, Mandrake 9.2, Libranet, Vector
Posts: 373
Original Poster
Rep:
Ok.... when I connect the two computers using the cable, where do I have to go to set up the IP and stuff? I seriously have no idea about networking with linux.
Tomorrow I'm going to install red hat on two mechines and I don't know what do I do after. I'm going to see if I can find some more stuff on the internet. I have done researches about this subject on the internet in past and have failed. So any links to web pages and tips are welcome.
Originally posted by Nukem Ok.... when I connect the two computers using the cable, where do I have to go to set up the IP and stuff? I seriously have no idea about networking with linux.
Tomorrow I'm going to install red hat on two mechines and I don't know what do I do after. I'm going to see if I can find some more stuff on the internet. I have done researches about this subject on the internet in past and have failed. So any links to web pages and tips are welcome.
If you're going to be installing fresh, the install will ask you if you want to assign an IP address, or if one will be automatically assigned. In there you can put 192.168.0.1 on one PC, and 192.168.0.2 for another.
Distribution: Slackware: in progress, Mandrake 9.2, Libranet, Vector
Posts: 373
Original Poster
Rep:
for the command "mount server1name:/home/kashif /mnt/nfs" the server1name is the IP of the computer that the directory which you want to mount is located right? I'm going to try this tomorrow.
Thanks for the reply.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.