[Switch-acl-adv-3001] quit
级0、1、2、3和允许
IP 优先级4、5、6、7的报文通过。
[Switch] acl 3001 [Switch-acl-adv-3001] rule p ermit ip p recede nee 0
[Switch-acl-adv-3001] rule p ermit ip p recede nee 1
[Switch-acl-adv-3001] rule p ermit ip p recede nee 2
[Switch-acl-adv-3001] rule p ermit ip p recede nee 3
[Switch] acl 3002
[Switch-acl-adv-3002] rule p ermit ip p recede nee 4 配置LSW 与Switch 对接的接口为Trunk 类型接口,并加入 VLAN100和 VLAN200。
#创建VLANIF100 和VLANIF200,并配置各虚拟接口 IP 地址。
[Switch] in terface via nif 100 [Switch-Vla nif100] ip address 10.1.20.2 24
[Switch-Vla nif100]
quit [Switch] in terface via nif 200 [Switch-Vla nif200] ip address
10.1.30.2 24 [Switch-Vla nif200] quit
3.2、配置ACL 规贝U
#在Switch 上创建编码为3001、3002的高级ACL ,规则分别为允许IP 优先