Help - Search - Members - Calendar
Full Version: Peer to Peer Network with Mandrake 10 OE.
MandrivaUsers.org > Advanced Topics > Networking
korsam
I've got 2 Mandrake 10 desktop computers and a D-Link router. I've never networked Linux and Linux before. I don't have a crossover cable so I used my router between the two machines. I've tried using DHCP from the router and also static IP's. Installed NFS but all it did was slow down both machines terribly and I have no idea how to browse from one machine to the other.

To make this short, I don't know what the &^%$#@ I'm doing! I reversed everything I did and uninstalled NFS and now the computers are moving fast like before. I'm wondering if someone can walk me through a simple peer to peer network setup and explain the best way to browse the network. I don't want to set up a default gateway, just simply use the router as a hub I guess. I'm using dial-up for the Internet so specifying a default gateway will block me from browsing.

There's got to be an easy way to do this. I'm dual booting with WinXP on both machines and the network was "cake" to set up. This chaps my hide because I hate WinXP (I just use it for gaming).

HELP!! I'm Network+ certified but feel like a retard right now! cheeky.gif

Sam
Gowator
First you need the server and the client if you want both to browse both.
check your hostname is OK by typing hostname...
then if you have static IP's its best to declate them in
/etc/hosts (including each other)

#IP FQDN SHORTNAME
192.168.1.1 box1.mydomain.com box1
192.168.1.2 box2.mydomain.com box2

make sure you are restricted to a class C
netmask should be 255.255.255.0



QUOTE
Edit the exports file vi /etc/exports and add:           
/dir/to/export host1.mydomain.com(rw,root_squash)
/dir/to/export host2.mydomain.com(rw,root_squash)
           

Where:


/dir/to/export is the directory you want to export.

host#.mydomain.com is the machine allowed to log in this directory.

The ro option mean mounting read-only.

The root_squash option for not allowing root write access in this directory.


For this change to take effect you will need to run the following command on your terminal:            [root@deep]# /usr/sbin/exportfs -a


choose where you want to mount them and make a directory
mkdir /mnt/box2
chmod 777 /mnt/box2
mount box2:/dir/to/export /mnt/box2 -o rw -t nfs
(-o and -t are optional here)
then
ls -l /mnt/box2
should show dir/to/export on box2


enjoy!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.