LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-10-2013, 02:15 AM   #1
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Rep: Reputation: 36
showmount get cidr netmask


Hello folks,

On my NFS server if i have a share meant for say 192.168.1.0/23,can i have showmount show me that /23 when i run 'showmount -e <nfshost>. Does any know how to get this info regarding the subnet mask ?


# showmount -e nfshost

/share/NFS 192.168.1.0


How do you determine if 192.168.1.0 is /23 or /24 ?
 
Old 10-10-2013, 03:20 AM   #2
CodeFreaker
LQ Newbie
 
Registered: Feb 2010
Posts: 27

Rep: Reputation: 12
Cool

Quote:
Originally Posted by kdelover View Post
Hello folks,

On my NFS server if i have a share meant for say 192.168.1.0/23,can i have showmount show me that /23 when i run 'showmount -e <nfshost>. Does any know how to get this info regarding the subnet mask ?


# showmount -e nfshost

/share/NFS 192.168.1.0


How do you determine if 192.168.1.0 is /23 or /24 ?
It depends on your network prefix.Most of the time for internal networks we depend on 24 sub-net mask,
Further in your configuration it should be

/share/NFS 192.168.1.0/24(rw,rsync,no_root_squash)

you can omit no_root_squash is you are not going to log with root from client.

 
Old 10-10-2013, 03:29 AM   #3
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Original Poster
Rep: Reputation: 36
I think you didnt get my question. What i am looking at is,to have showmount show me the CIDR/netmask along side the allowed hosts.On my file server if export to '192.168.1.0/23' showmount would show me just '192.168.1.0',it doesn't tell if its /23 or /24.
 
Old 10-10-2013, 05:31 AM   #4
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Original Poster
Rep: Reputation: 36
I looked at the wireshark packet captures between mount/showmount and the NFS server,i figured out how this works.
 
  


Reply


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
bash CIDR calculator genderbender Programming 18 10-29-2014 11:13 AM
[SOLVED] A question about CIDR Mask example... trist007 Linux - Newbie 10 09-18-2011 12:55 PM
[SOLVED] CIDR explanantion? qwertyjjj Linux - Newbie 2 08-18-2009 08:02 AM
C cidr argv quantt Programming 11 01-26-2009 08:03 AM
Understanding CIDR notation for iptables Madone_SL_5.5 Linux - Networking 5 12-07-2007 11:26 AM

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

All times are GMT -5. The time now is 05:22 PM.

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