LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-30-2011, 11:52 AM   #1
Vanyel
Member
 
Registered: Jul 2007
Location: NY, NY
Distribution: RHEL, CentOS, FC, Ubuntu
Posts: 113

Rep: Reputation: 17
Curious NFS issue


I have a machine (RHEL 6.1) NFS sharing a folder over 2 network interfaces, one internal to a lab, the other external. /etc/exports looks like this -
(I have redacted the IP of the other, public machine)

Code:
/programs       192.168.1.0/255.255.255.0(rw) ###.###.##.###/32(rw)

Now on machine ###.###.##.### (running CentOS 5.7) I do a showmount -e <sharehost public interface> and get

Code:
/programs  192.168.1.0/255.255.255.0
See? From the external machine, /programs looks like it's being exported to the internal network only.

HOWEVER, if from external machine ###.###.##.###, I try to mount /programs, it mounts fine. It just doesn't look like it *should* work!

Very bizarre. I don't understand why. Anybody?

- Van
 
Old 09-30-2011, 02:22 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,692

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
@ Reply

Hi there,

Quote:
/programs 192.168.1.0/255.255.255.0(rw) ###.###.##.###/32(rw)
How a network could be /32 because then there will not be any valid IPs/hosts.

Do a tracepath from your CentOS machine and let us know how it is reaching your RHEL server.
 
Old 10-05-2011, 06:11 AM   #3
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6
Posts: 1,398

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
Quote:
Originally Posted by T3RM1NVT0R View Post
How a network could be /32 because then there will not be any valid IPs/hosts.
/32 is a perfectly valid hostmask and will restrict to the given IP only.
 
Old 10-05-2011, 08:43 AM   #4
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 189Reputation: 189
Im not sure why its doing that as such,
but if you create a new entry for the redacted IP, and remove it from the first, i think it might fix it, although i have nothing to base that on :P
 
Old 10-05-2011, 04:12 PM   #5
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,692

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
@ Reply

@ TenTenths

Yup you are right. Got confused as merely putting the IP without any mask will be sufficient.

@ OP

I tried to duplicate the issue but wasn't able to. It is indeed strange issue. Even if it is exported only to local network it should show me both the IPs

This is what I have tested. Configured one machine with two interfaces: internal and external and configured NFS share for both internal and external network. Configured client machine with only on interface with external IP.

When I run showmount -e external_ip_of_nfs_server it shows me both the IPs to which nfs share is being shared. Since I didn't have internal IP bind on the client machine it should have showed me public interface share only but it did show me internal share as well. Ideally it should show both shares with both IPs.

Last edited by T3RM1NVT0R; 10-05-2011 at 04:14 PM.
 
  


Reply

Tags
nfs


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
NFS issue kingston Linux - Newbie 4 11-23-2010 07:18 AM
nfs issue manoj.linux Linux - Enterprise 3 12-16-2009 03:43 AM
[SOLVED] NFS issue malickhat Linux - Newbie 1 10-28-2009 05:55 AM
Curious 10.2 remote administration (VNC) issue. Dox Systems - Brian Suse/Novell 4 02-01-2007 01:06 PM
Curious ipw2100 issue (wireless networking) TMH Linux - Wireless Networking 2 03-14-2005 10:00 PM


All times are GMT -5. The time now is 04:30 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