Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-07-2007, 10:41 AM   #1
Registered: Sep 2005
Posts: 201

Rep: Reputation: 30
NFS questions

Hi, I was wondering if there was a way to automount a computer on my network?

I added this line in my fstab: /home/hp nfs rsize=8192,wsize=8192,timeo=14,intr 0 0

but the Internal IP is not guaranteed to be so this won't always work :S

Question 2: I don't understand why this:


Translates to this: "export path to all IP addresses between and with Read/Write access."

I mean we are looking at a "" right? How does it mean "" Programmers sure do some funky things with symbols...

On the same note, I accidentally mounted a shared folder of a computer with IP address with the command:

sudo mount 192.168.102:/home/justin shared
Is this related to my first question? Or is it just the fact that 0's are disregarded in the hexidecimal format of the ip address?
Old 08-07-2007, 01:35 PM   #2
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (
Posts: 1,900

Rep: Reputation: 69
How do you want to let computer know where is the share located? Here I described how to add any sequence of commands to boot process. For example, you can run 'host' and parse output to find IP by hostname, or something like that.

About the second question.. IP addresses are tuples of four bytes. Each byte is a number in the range 0-255. So it can be written in no more than 3 decimal digits. But if you take last two bytes of an IP address, they can also be read as a number, this time from 0 to 65535. It is assumed that number is little-endian here, so preceding byte is multiplied by 256 and added to the last byte. And it is customary that computers allow specifying the end of an IP address merging bytes. So, is the same as 127.0.257 . In your case, the third byte is zero, so 192.168.0.x = 192.168.x . Each byte is stored as 8 successive bits. When you specify a group of computers, you may say 'I want them to have common beginning of the addresses, and any end'. It makes sense as this usually means one LAN; and in general, routing on the level below ISP's is so that IP's that differ only in less significant bits are close in network sense. And to specify where the end begins you give one example and say that first n bits (in your case, 24, e.g. 3 bytes - or 3 dotted groups) must be fixed. All 0 (0) and all 1 (255 in your case) have special meaning as the end of an address, so they are excluded anyway (No host can have them).
Old 08-08-2007, 09:53 PM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,710

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
The convention is also that addresses ending in .0 mean the (sub)net itself, .255 means broadcast address ie all hosts on the (sub)net.


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 basic questions lnxnubie2 Linux - Newbie 2 06-08-2006 06:05 PM
Slow NFS mount, server questions dezza Linux - Networking 1 11-17-2004 03:49 AM
Questions about booting from NFS spuzzzzzzz Linux - Networking 1 07-04-2004 10:32 AM
NFS Questions phil1076 Linux - Networking 2 05-03-2004 05:34 PM
A few questions on NFS Thaidog Linux - Networking 4 12-15-2003 03:55 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration