注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 35岁技术人遭遇年龄坎儿,..
 帮助

ACL访问控制列表


2007-06-29 18:13:53
 标签:列表 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





    文章评论
 
2007-06-29 19:31:10
路过,以前还真没有发现这方面的知识。

辛苦啦,博主

 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: