H3C 5500-SI 3610 5510系列交换机典型访问控制列表配置_5IJSJ_百度空间

      网需求

要求配置高级访问控制列表,禁止研发部门与技术支援部门之间互访,并限制研发部门在上班时间8:0018:00访问工资查询服务器;


      组网图

      配置步骤:

1.根据组网图,创建四个vlan,对应加入各个端口

<H3C>system-view

[H3C]vlan 10                                                               

[H3C-vlan10]port GigabitEthernet 1/0/1                                     

[H3C-vlan10]vlan 20                                                         

[H3C-vlan20]port GigabitEthernet 1/0/2                                     

[H3C-vlan20]vlan 20                                                        

[H3C-vlan20]port GigabitEthernet 1/0/3                                      

[H3C-vlan20]vlan 30                                                        

[H3C-vlan30]port GigabitEthernet 1/0/3                                     

[H3C-vlan30]vlan 40                                                        

[H3C-vlan40]port GigabitEthernet 1/0/4   

[H3C-vlan40]quit

2.配置各VLAN虚接口地址

[H3C]interface vlan 10                                                     

[H3C-Vlan-interface10]ip address 10.1.1.1 24                               

[H3C-Vlan-interface10]quit

[H3C]interface vlan 20                                                     

[H3C-Vlan-interface20]ip address 10.1.2.1 24                               

[H3C-Vlan-interface20]quit

[H3C]interface vlan 30                                                     

[H3C-Vlan-interface30]ip address 10.1.3.1 24                               

[H3C-Vlan-interface30]quit

[H3C]interface vlan 40                                                     

[H3C-Vlan-interface40]ip address 10.1.4.1 24                               

[H3C-Vlan-interface40]quit

3.定义时间段

[H3C] time-range huawei 8:00 to 18:00 working-day

需求配置

1.进入3000号的高级访问控制列表视图

[H3C] acl number 3000

2.定义访问规则禁止研发部门与技术支援部门之间互访

[H3C-acl-adv-3000]rule 1 deny ip source 10.1.2.0 0.0.0.255 destination 10.1.1.0 0.0.0.255

3.定义访问规则禁止研发部门在上班时间8:0018:00访问工资查询服务器

[H3C-acl-adv-3000] rule 2 deny ip source any destination 129.110.1.2 0.0.0.0 time-range Huawei

[H3C-acl-adv-3000] quit

4.定义流分类

[H3C] traffic classifier abc

[H3C-classifier-abc]if-match acl 3000

[H3C-classifier-abc]quit

5.定义流行为,确定禁止符合流分类的报文

[H3C] traffic behavior abc

[H3C-behavior-abc] filter deny

[H3C-behavior-abc] quit

6.定义Qos策略,将流分类和流行为进行关联

[H3C]qos policy abc

[H3C-qospolicy-abc] classifier abc behavior abc

[H3C-qospolicy-abc] quit

7.在端口下发Qos policy

[H3C] interface g1/1/2

[H3C-GigabitEthernet1/1/2] qos apply policy abc inbound

8.补充说明:

l        acl只是用来区分数据流,permitdenyfilter确定;

l        如果一个端口同时有permitdeny的数据流,需要分别定义流分类和流行为,并在同一QoS策略中进行关联;

l        QoS策略会按照配置顺序将报文和classifier相匹配,当报文和某一个classifier匹配后,执行该classifier所对应的behavior,然后策略执行就结束了,不会再匹配剩下的classifier

l        QoS策略应用到端口后,系统不允许对应修改义流分类、流行为以及QoS策略,直至取消下发。

      配置关键点:

1time-name 可以自由定义;

2.设置访问控制规则以后,一定要把规则应用到相应接口上,应用时注意inbound方向应与rulesourcedestination对应。



郑重声明:资讯 【H3C 5500-SI 3610 5510系列交换机典型访问控制列表配置_5IJSJ_百度空间】由 发布,版权归原作者及其所在单位,其原创性以及文中陈述文字和内容未经(企业库qiyeku.com)证实,请读者仅作参考,并请自行核实相关内容。若本文有侵犯到您的版权, 请你提供相关证明及申请并与我们联系(qiyeku # qq.com)或【在线投诉】,我们审核后将会尽快处理。
—— 相关资讯 ——