shanenin Posted February 1, 2006 Report Share Posted February 1, 2006 (edited) I have this line in my /etc/exports. this will allow all ips in my local network/mnt/media 192.168.1.0/255.255.255.0(rw,no_root_squash)I want to add a range of addresses in the 5. range for example, 5.18.152.214how would I include all address starting with 5.18, or even just with 5would this work5.18.0/255.255.255.0and this5.0/255.255.255.0edit added later//I tried those and they did not work. I am sure they obviouly show I have no understaning of cidr. it does give you the idea of what I need to do Edited February 1, 2006 by shanenin Quote Link to post Share on other sites
shanenin Posted February 1, 2006 Author Report Share Posted February 1, 2006 (edited) I noticed the subnet mask is differnt then my nomal oneham0 Link encap:Ethernet HWaddr 2A:A3:28:3D:A0:CF inet addr:5.18.152.214 Bcast:5.255.255.255 Mask:255.0.0.0 Edited February 1, 2006 by shanenin Quote Link to post Share on other sites
CataclysmCow Posted February 1, 2006 Report Share Posted February 1, 2006 (edited) You need to change your masks and it wouldn't be a bad idea to fill out the netID (some apps handle it, some don't). So your 5.18.0/255.255.255.0should be 5.18.0.0/255.255.0.0In CIDR notation that would be 5.18.0.0/16 (or just 5.18/16)Your 5.0/255.255.255.0should be 5.0.0.0/255.0.0.0In CIDR it would be 5.0.0.0/8 (or just 5/8) Edited February 1, 2006 by CataclysmCow Quote Link to post Share on other sites
shanenin Posted February 1, 2006 Author Report Share Posted February 1, 2006 (edited) Thanks alot :-)I think I am following your pattern(not really understanding the concepts) , so then this should work for a class c networkso to specify all ips starting with 192 would either be192.0.0.0/255.0.0.0192.0.0.0/8 (using CIDR)then for a specifing all ips in a class c network that start with 192.168 would be192.168.0.0/255.255.0.0192.168.0.0/16 (using CIDR) Edited February 1, 2006 by shanenin Quote Link to post Share on other sites
CataclysmCow Posted February 1, 2006 Report Share Posted February 1, 2006 (edited) Yes, your subnet definitions are correct, but you typically don't have 8 or 16 bit masks on Class C assignments (Class C would use /24 or higher). Classfull addressing isn't used anymore so you can pretty much just ditch the term altogether. Edited February 1, 2006 by CataclysmCow Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.