ACL访问控制列表
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://kendy.blog.51cto.com/147692/32426 |
When I review the lab today,I experienced the odd number and even of subnet。I think everybody maybe use it in fact,So I introduce it now for everyone:
It is actually simple ,use "254"mask(0.254.255.255;0.0.254.255;0.0.0.254 of course ,you should know witch class of network address do you want to match)and 1 or 0.both of them be used to complete the worke.
For instance :192.168.0.0/24;192.168.1.0/24;192.168.2.0/24;192.168.3.0/24;192.168.4.0/24;192.168.5.0/24……
Now We only allow the even subnet to be match ,So We need to do this:
Access-list 1 permit 192.168.0.0 0.0.254.255 or access-list 1 deny 192.168.1.0 0.0.254.255
The second instance:10.0.1.0/16;10.1.1.0/16;10.2.1.0/16;10.3.1.0/16;10.4.1.0/16;10.5.1.0/16;……Now We only allow odd number of subnet to be match,So We should to do like this:
access-list 1 permit 10.1.1.0 0.254.255.255 or access-list 1 deny 10.0.1.0 0.254.255.255
Another ones look like as above,Everyone need to do it by yourself。 本文出自 “Kendy” 博客,请务必保留此出处http://kendy.blog.51cto.com/147692/32426 本文出自 51CTO.COM技术博客 |


kendy
博客统计信息
热门文章
最新评论
友情链接