LinuxQuestions.org
Visit Jeremy's Blog.
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 10-06-2008, 11:20 PM   #1
nvelissa
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
new with linux - adding computers to network


i am a student at rosalind franklin university for medicine and science. i am a first year with not very much linux experience and we are adding computers to our neuroimaging lab. we are haveing problem adding two new computers to a network file sharing(nfs) on a linux network. one is on red hat 9, the other is an imac running os10.3.9

the other computers are running red hat or fedora core and are working properly. we have properly configured host table and fstab file on both client and host. we know the network is working properly because ssh allows access to the host. we however, have no access to any of the data through nfs.

any advice or help for me?

nick
nvelissa@gmail.com
 
Old 10-06-2008, 11:49 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Most likely you need to open up port 111 in the firewall.
Interesting ports on hpmedia.jesnet (192.168.1.101):
Code:
PORT     STATE SERVICE
22/tcp   open  ssh
111/tcp  open  rpcbind
2049/tcp open  nfs
Ports 111 and 2049 needs to be open on the nfs server. Port 111 needs to be open on the client.

Also check the /etc/exports file on the server. If it lists each host individually, you need to add the ip address of each client. Mine allows connections from the subnet. I've had better luck using <net address>/<netmask>.
Code:
/home/jschiwal/podcasts 192.168.1.0/255.255.255.0(fsid=0,rw,root_squash,sync,no_subtree_check)
Examples from "man exports":
Code:
EXAMPLE
       # sample /etc/exports file
       /               master(rw) trusty(rw,no_root_squash)
       /projects       proj*.local.domain(rw)
       /usr            *.local.domain(ro) @trusted(rw)
       /home/joe       pc001(rw,all_squash,anonuid=150,anongid=100)
       /pub            (ro,insecure,all_squash)
       /srv/www        -sync,rw server @trusted @external(ro)
If the /etc/exports file uses a netgroup (e.g. @labgroup), make sure that the new computers are members of the netgroup.

Last edited by jschiwal; 10-07-2008 at 03:01 AM.
 
Old 10-09-2008, 03:01 PM   #3
nvelissa
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Most likely you need to open up port 111 in the firewall.
Interesting ports on hpmedia.jesnet (192.168.1.101):
Code:
PORT     STATE SERVICE
22/tcp   open  ssh
111/tcp  open  rpcbind
2049/tcp open  nfs
Ports 111 and 2049 needs to be open on the nfs server. Port 111 needs to be open on the client.

Where do I find the iptables file on a mac and linux? I tried opening these 2 ports on the server (nc -l portnumber), but it said they were already in use. When I run these commands on the clients, it just hangs.


Also check the /etc/exports file on the server. If it lists each host individually, you need to add the ip address of each client. Mine allows connections from the subnet. I've had better luck using <net address>/<netmask>.
Code:
/home/jschiwal/podcasts 192.168.1.0/255.255.255.0(fsid=0,rw,root_squash,sync,no_subtree_check)
Examples from "man exports":
Code:
EXAMPLE
       # sample /etc/exports file
       /               master(rw) trusty(rw,no_root_squash)
       /projects       proj*.local.domain(rw)
       /usr            *.local.domain(ro) @trusted(rw)
       /home/joe       pc001(rw,all_squash,anonuid=150,anongid=100)
       /pub            (ro,insecure,all_squash)
       /srv/www        -sync,rw server @trusted @external(ro)
If the /etc/exports file uses a netgroup (e.g. @labgroup), make sure that the new computers are members of the netgroup.[/QUOTE]

I tried your suggestion of using the ipaddress/netmask, but it doesn't work. For the other three machines, I am just using the names of the machines, and it has always worked fine for them.

Here is my exports file, by the way:
/home pigpen(rw,sync,nohide) 192.168.43.44/255.255.255.0(rw,sync,nohide) lucy(rw,sync,nohide)
homer(rw,sync,nohide) 192.168.43.46/255.255.255.0(rw,sync,nohide)
/share/brains2 pigpen(rw,sync,nohide) 192.168.43.44/255.255.255.0(rw,sync,nohide) lucy(rw,sync,nohide)
homer(rw,sync,nohide) 192.168.43.46/255.255.255.0(rw,sync,nohide)
/share/afni pigpen(rw,sync,nohide) 192.168.43.44/255.255.255.0(rw,sync,nohide) lucy(rw,sync,nohide)
homer(rw,sync,nohide) 192.168.43.46/255.255.255.0(rw,sync,nohide)
/usr/local/brains2 pigpen(rw,sync,nohide) 192.168.43.44/255.255.255.0(rw,sync,nohide) lucy(rw,sync,nohide)
homer(rw,sync,nohide) 192.168.43.46/255.255.255.0(rw,sync,nohide)
/usr/local/matlab74_sv pigpen(rw,sync,nohide) 192.168.43.44/255.255.255.0(rw,sync,nohide) lucy(rw,sync,nohide)
homer(rw,sync,nohide) 192.168.43.46/255.255.255.0(rw,sync,nohide)
/usr/local/mricro pigpen(rw,sync,nohide) 192.168.43.44/255.255.255.0(rw,sync,nohide) lucy(rw,sync,nohide)
homer(rw,sync,nohide) 192.168.43.46/255.255.255.0(rw,sync,nohide)
 
Old 10-09-2008, 08:38 PM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Red Hat 9 is pretty old so not sure is the issue is that simple but iptables is just iptables on the command line "iptables -nvL" will show the currently rules. As for a Mac, I didn't think Macs came with firewalls on by default, I have a Mac and never touched any firewalling on it really...
 
  


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
setting up 1 linux desktop 10.0 on a network with 3 xp computers dicedaniels Linux - Networking 0 11-04-2006 04:48 PM
How do you view Linux computers on a home network? dlackovic Linux - Newbie 8 01-10-2006 11:41 AM
home network can't ping linux computers stimpsonjcat Linux - Networking 5 01-09-2006 04:07 PM
linux network problem! HELP! cannot be pinged by other computers! debug019 Linux - Newbie 1 10-17-2004 11:15 PM
How do I set up a Network between Linux and Windows computers? PsychoFlare Linux - Newbie 7 02-05-2004 04:33 PM

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

All times are GMT -5. The time now is 06:35 AM.

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