Forum Discussion
Ian_Smith
Jun 23, 2010Ret. Employee
the [IP::addr] command is what lets you match on CIDR network masks in the code snippet you provided, not the if conditional.
Unfortunately, that functionality isn't part of the switch matching engine - you can do classful networks with -glob matching (/8,/16, /24) but not CIDR networks (/21 /9 /30).