QOS策略应用在vlan,在模拟器上配置不生效请问是这么配置吗?
原华为配置:
#
acl number 3999
rule 1 permit ip source 199.0.0.1 0.0.255.255 destination 10.0.0.32 0
rule 2 permit tcp source 199.0.1.1 0 destination 192.168.184.99 0 destination-port eq 22
rule 3 permit ip source 198.0.0.1 0.0.0.7
rule 4 permit tcp source 197.0.0.100 0 destination-port eq 22
rule 100 deny ip
#
traffic classifier acl3999 type or
if-match acl 3999
#
traffic behavior acl3999
#
traffic policy acl3999
classifier acl3999 behavior acl3999 precedence 10
#
interface Vlanif12
ip address 172.10.12.1 255.255.255.0
traffic-policy acl3999 inbound
#
模拟器上配置
#
acl number 3999
rule 1 permit ip source 199.0.0.1 0.0.255.255 destination 10.0.0.32 0
rule 2 permit tcp source 199.0.1.1 0 destination 192.168.184.99 0 destination-port eq 22
rule 3 permit ip source 198.0.0.1 0.0.0.7
rule 4 permit tcp source 197.0.0.100 0 destination-port eq 22
rule 100 deny ip
#
traffic classifier acl3999 operator or
if-match acl 3999
#
traffic behavior acl3999
#
qos policy acl3999
classifier acl3999 behavior acl3999
#
qos vlan-policy ACL3001 vlan 12 inbound
(0)
最佳答案
Host通过接口GigabitEthernet1/0/1接入设备Device。
配置流量过滤功能,对接口GigabitEthernet1/0/1接收的源端口号不等于21的TCP报文进行丢弃。
图7-1 流量过滤配置组网图
# 定义高级ACL 3000,匹配源端口号不等于21的数据流。
<Device> system-view
[Device] acl advanced 3000
[Device-acl-ipv4-adv-3000] rule 0 permit tcp source-port neq 21
[Device-acl-ipv4-adv-3000] quit
# 定义类classifier_1,匹配高级ACL 3000。
[Device] traffic classifier classifier_1
[Device-classifier-classifier_1] if-match acl 3000
[Device-classifier-classifier_1] quit
# 定义流行为behavior_1,动作为流量过滤(deny),对数据包进行丢弃。
[Device] traffic behavior behavior_1
[Device-behavior-behavior_1] filter deny
[Device-behavior-behavior_1] quit
# 定义策略policy,为类classifier_1指定流行为behavior_1。
[Device] qos policy policy
[Device-qospolicy-policy] classifier classifier_1 behavior behavior_1
[Device-qospolicy-policy] quit
# 将策略policy应用到接口GigabitEthernet1/0/1的入方向上。
[Device] interface gigabitethernet 1/0/1
[Device-GigabitEthernet1/0/1] qos apply policy policy inbound
(0)
在模拟器上配置基于vlan qos策略不生效
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
在模拟器上配置基于vlan qos策略不生效