ensp,acl访问控制列表


ACL分类:

  1. 基本ACL 编号范围: 2000-2999     参数:源ip地址
  2. 高级ACL 编号范围: 3000-3999     参数:源ip地址,目的ip地址,源端口,目的端口等
  3. 二层ACL 编号范围: 4000-4999     参数 源mac地址,目的mac地址,以太帧协议等

基础ACL配置规则命令:

 

 

acl $int //int 编号rule $int $tia source $ip $tongpeifu 
//int 编号 ip 目标网段 tongpeifu 通配符
//tia deny 不允许通过 permit 允许通过
int $face //face 接口
traffic-filter $stu acl $int 
//int acl编号 
//stu outbound 出口 inbound 进口

  

  高级ACL配置命令:

rule deny $t source $ip $t destination $ip $0 destination-port eq $port
//$t tcp或udp
//$ip 目标网段 $t 统配符
//$ip 源ip $0 通配符
//$port 匹配端口

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM