cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1496
Views
1
Helpful
4
Replies

class-map configuration

ello 

Can anyone help me with QoS configuration on N540-24Z8Q2C-M ver.7.0.2

I just need to catch packets in VLAN6 and mark them as Cos5.

for that I configure:

 

RP/0/RP0/CPU0: CMX1-RND-VIL(config)#class-map match-any TV
RP/0/RP0/CPU0: CMX1-RND-VIL(config-cmap)#match VLAN 6
RP/0/RP0/CPU0: CMX1-RND-VIL(config-cmap)#commit
Tue Jul 7 09:43:30.651 EEST

% Failed to commit one or more configuration items during a pseudo-atomic operation. All changes made have been reverted. Please issue 'show configuration failed [inheritance]' from this session to view the errors
RP/0/RP0/CPU0: CMX1-RND-VIL(config-cmap)#show configuration failed
Tue Jul 7 09:43:37.841 EEST
!! SEMANTIC ERRORS: This configuration was rejected by
!! the system due to semantic errors. The individual
!! errors with each failed configuration command can be
!! found below.


!
class-map match-any TV
match vlan 6
end-class-map
!
!!% Policy manager does not support this feature: Match type "vlan" not supported for class-map type "qos"
end

RP/0/RP0/CPU0:CMX1-RND-VIL(config-cmap)#

 

I tried class-map type "traffic" but the result is the same

 

thanks

 

 

4 Replies 4

Hello,

 

what are your profile options ?

 

RP/0/RP0/CPU0:router(config)# hw-module profile qos ?

Hello

profile options is:

 

hw-module profile qos ingress-model default

Hello,

 

I have looked at the modular QoS configuration guide, and it looks like for this model you need something like below (assuming that your Vlan 6 has IP address space 192.168.6.0/24). The values used are obviously arbitrary.

 

ipv4 access-list qos-acl
10 permit ipv4 192.168.6.0 0.0.0.255 any set qos-group 1
20 deny ipv4 any any

class-map match-any qos1
match qos-group 1
end-class-map
!
policy-map qos-acl-map
class qos1
set precedence critical
!
class class-default
shape average 100000 kbps
!
end-policy-map
!
interface TenGigE0/0/1/0/0
service-policy input qos-acl-map
ipv4 address x.x.x.x y.y.y.y
ipv4 access-group qos-acl ingress compress level 3

Hi there, I am trying to configure QoS on a main interface that has multiple sub-interfaces and push a QoS profile based on VLAN tag, but I get the same error mentioned by VilmantasVasiliauskas29941 in the beginning of the thread, and I have used the configuration example given above based on ACL but this didn't worked for me as well. Is there any other option to match the traffic per vlan tag?

The platform used is NCS540-ACC-SYS and I have l2transport sub-interfaces and an L3 main interface. This qos profile is enabled: hw-module profile qos hqos-enable.

ipv4 access-list MUX_ACL
permit ipv4 192.168.250.0 0.0.0.255 any set qos-group 2
permit ipv4 192.168.255.0 0.0.0.255 any set qos-group 5
deny ipv4 any any

class-map match-any QOS_2
match qos-group 2
end-class-map
!
class-map match-any QOS_5
match qos-group 5
end-class-map
!

policy-map qos-acl-map
class QOS_5
set qos-group 5
set traffic-class 5
police rate 200 mbps
!
class QOS_5
set qos-group 5
set traffic-class 5
police rate 100 mbps
!
end-policy-map
!
interface gi0/0/0/0
service-policy input qos-acl-map
ipv4 access-group MUX_ACL ingress compress level 3

#### show config failed output below
interface GigabitEthernet0/0/0/0
ipv4 access-group MUX_ACL ingress compress level 3
!!% 'dpa_feat_mgr' detected the 'resource not available' condition 'ACL compression is not supported on this LC due to configuration or LC type'


##### and without hardware compression

interface GigabitEthernet0/0/0/0
ipv4 access-group MUX_ACL ingress
!!% 'dpa_feat_mgr' detected the 'warning' condition 'set qos-group is not supported for this ACL'
!

 

Review Cisco Networking for a $25 gift card