问题描述
MS4100V2-28P在WEB页面调用Qos流策略后,提示无法应用,在命令行中报错如下:
[H3C-GigabitEthernet1/0/1]qos
apply policy Qos inbound
%Apr
26 12:11:17:646 2000 H3C QOS/4/QOS_POLICY_APPLYIF_FAIL:
Applying or refreshing QoS policy Qos to interface GigabitEthernet1/0/1
failed.
Reason: Not supported by hardware.
现场交换机配置如下:
#
version
5.20.99, Release 1119
#
acl
number 3000
rule
10 deny tcp destination-port eq telnet
rule
20 deny tcp destination-port range 137 139
rule
200 permit ip logging counting
#
traffic
classifier Lei operator and
if-match
acl 3000
#
traffic
behavior Liu
filter
deny
#
qos
policy Qos
classifier
Lei behavior Liu
#
interface
GigabitEthernet1/0/1
qos apply
policy Qos inbound
#
解决方法
因为MS4100V2这款交换机在配置ACL规则的时候,在具体的rule规则中,不支持指定端口的范围。仅对“等于”和“无限制”的端口操作符生效,其余操作符均不支持。同时目前设备不支持对counting、flow-label和logging参数的配置。
所以需要修改ACL3000里的rule规则为:
#
acl number 3000
rule 10 permit tcp destination-port eq telnet
rule 20 permit tcp destination-port eq 137
rule 30 permit tcp destination-port eq 138
rule 40 permit tcp destination-port eq 139
#