LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-07-2007, 09:41 AM   #1
Geminias
Member
 
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:
192.168.0.100:/home/justin /home/hp nfs rsize=8192,wsize=8192,timeo=14,intr 0 0

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

Question 2: I don't understand why this:

/path/to/shared/files 192.168.1.0/24(rw,no_root_squash,async)

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

I mean we are looking at a "192.168.1.0/24" right? How does it mean "192.168.1.1-254" Programmers sure do some funky things with symbols...

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

Code:
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, 12:35 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
How do you want to let computer know where is the share located? Here http://www.linuxquestions.org/questi...82#post2850082 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, 127.0.1.1 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, 08:53 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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