ONTAP Discussions

Can I add a subnet to a netgroup (and have it work)?


I've been trying to add a subnet as a member of a netgroup used in an export policy rule and the hosts in the subnet still do not have access. I've tried both forms of subnet spec (a.b.c.d/m and a.b.c.d/w.x.y.z) and neither seem to work. I can't find any documentation that states that this isn't allowed, nor can I find any that states that it is. Please advise as to if this is possible or not. If it is, it will greatly simplify the administration of access to filesystems for one of our primary applications. We really don't want to have to add new export policy rules to each impacted filesystem, then have to track them all back down later when we need to update the subnet list, that'd be a ton of overhead and quite error prone. Please advise as whether or not this is possible. We are using netgroups serviced from LDAP.


Thank you for your attention to this matter.



Subnet notation of any form for IPs in netgroups is not supported by standard, or by ONTAP, sorry. 



I have been adding subnets to export-policy clientmatch and its working like a charm without any issues.


The format I am using is a.b.c.d/m. I haven't seen any issues till now. You can add that subnet to the clientmatch in a export rule and run "export-policy check-access" command to verify if that server has proper access or not. Either this will work or I understood this question incorrectly.


Either way, I urge you to try it out once. Check the ns-switch output too of that vserver.

Making it work from a standards compliant netgroup served from LDAP is the key difference from what you’ve posted 

export-policy: yes
netgroup: no
We would certainly love it if netgroups supported subnets but alas, I doubt we'll ever see it.