[Sussex] Help with NFS

Karl E. Jorgensen karl at jorgensen.com
Wed Mar 2 16:16:55 UTC 2005


On Wed, Mar 02, 2005 at 03:55:14PM +0000, David Chapman wrote:
> On Wednesday 02 March 2005 15:24, Karl E. Jorgensen wrote:
> > ...
> > On Wed, Mar 02, 2005 at 12:29:59PM +0000, David Chapman wrote:
> > > ...
> > > I have my machine which is SuSE 9.2 which I want to
> > > share /var/lib/YaST2/you/mnt (this is were downloaded updates are stored)
> > > to the other 2 computers that run SuSE
> > > When I try to add this to the computer my boys use (nitrogen.home.lan) my
> > > computer does not show up as hydrogen.home.lan  but will show as
> > > 192.xxx.xxx.xxx
> > > trying to mount this share ends with connection refused by server.
> > >
> > > contents of /etc/exports
> > > /var/lib/YaST2/you/mnt/	192.168.0.*(ro,sync)
> >
> > According to exports(5) wildcards are not reliable when used with IP
> > addresses. So you may want to try:
> >     /var/lib/YaST2/you/mnt/	192.168.0.0/24(ro,sync)
> > or
> >     /var/lib/YaST2/you/mnt/ 192.168.0.0/255.255.255.0(ro,sync)
> > instead
> 
> Success
> Thanks Karl
> 
> Just for clarity
> Is there any difference between 
> 	192.168.0.0/24(ro,sync)
> and
>         192.168.0.0/255.255.255.0(ro,sync)

Nope - no difference. Either should work. The "/24" basically means "24
ones" (as you probably guessed) which ends up as 3 bytes of 0xff or 255
(in decimal). 

Personally I prefer the /24 notation as it is more difficult to make
mistakes and is often clearer. 

E.g. /26 is equivalent to /255.255.255.192 , whereas /255.255.255.92 is
invalid (92=1011100). Besides, some (all?) cisco equipment have the
netmask the "wrong" way around: 0.0.0.255 for /8 ...  

-- 
Karl E. Jørgensen
karl at jorgensen.com   http://karl.jorgensen.com
==== Today's fortune:
She sells cshs by the cshore.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.lug.org.uk/pipermail/sussex/attachments/20050302/b36ba84f/attachment.pgp 


More information about the Sussex mailing list