华为配置专题
(四)ACL原理
1.ACL组成
2.规则编号
每个相邻规则编号之间的差值,缺省值为5
3.通配符
4.ACL分类
(五)ACL配置
1.如图,公司为保证财务数据安全,禁止研发部门访问财务服务器,但总裁办公司不受限制
2.配置路由器
system-view //进入系统
sysname Router //重命名
interface gigabitethernet 0/0/0 //进入接口
ip address 192.168.1.254 24 //设置网关
quit
interface gigabitethernet 0/0/1
ip address 192.168.2.254 24
quit
interface ethernet 4/0/0
ip address 192.168.3.254 24
quit
3.配置模拟互联网的路由
system -view
interfce gigabitethernet 0/0/0
ip address 1.1.1.1 24
quit
4.在Router上配置ACL
acl 3000 //创建高级ACL
//拒绝研发部访问财务部
rule 10 deny ip source 192.168.1.1 0.0.0.255 destination 192.168.3.100 0
//允许总裁访问财务部
rule 20 permit ip source 192.168.2.1 0.0.0.255 destinaion 192.168.3.100 0
rule 30 deny ip source any destination 192.168.3.100 0 //拒绝其他ip访问财务部
quit
//在接口出的方向配置流量过滤
interface ethernet 4/0/0
traffice-filter outbound acl 3000
quit
(密码的,学不完了)