cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
583
Views
0
Helpful
1
Replies

Applying QoS on a per VLAN basis with a trunk port

peter5
Level 1
Level 1

I have been reading up on applying QoS on a per VLAN basis on the 3650. I effectively have a switch which is trunked with an ESXI host and would like to ensure that bandwidth is shared amongst the VLAN's traversing the trunk - but at the same time if available I would like any VLAN to utilise additional bandwidth if available rather than policing a hard limit. Although I want to ensure traffic on vlan 10 always has a reserved amount of bandwidth.

 

I have the following configuration and would appreciate a second on opinion on whether the below will meet the above requirements:

 

# enable qos globally
mls qos
 
# define traffic i.e. everything
access-list 100 permit ip any any
 
# traffic classification
class-map qos_vlan10_cm
match access-group 100
 
class-map qos_vlan20_cm
match access-group 100
 
class-map qos_vlan30_cm
match access-group 100
 
# tag traffic with DSCP values
policy-map qos_vlan10_pm
class qos_vlan10_cm
set ip dscp 40
 
policy-map qos_vlan20_pm
class qos_vlan20_cm
set ip dscp 10
 
policy-map qos_vlan30_pm
class qos_vlan30_cm
set ip dscp 0
 
int gi0/1
description portchannel with esxi host
switchport mode trunk
switchport trunk native vlan 1000
switchport trunk allowed vlans 10,20,30
srr-queue bandwidth share 25 25 25 25
srr-queue bandwidth shape 16 0 0 0
mls qos trust dscp
mls qos vlan-based
switchport nonegotiate
channel-group 1 mode on
 
# apply service policies on SVI's
int vlan 10
service-policy input qos_vlan10_pm
service-policy output qos_vlan10_pm
 
int vlan 20
service-policy input qos_vlan20_pm
service-policy output qos_vlan20_pm
 
int vlan 30
service-policy input qos_vlan30_pm
service-policy output qos_vlan30_pm 

 

 

From this configuration I expect traffic from the different VLAN's to hit separate queues - does the above configuration reflect that?

1 Reply 1

Joseph W. Doherty
Hall of Fame
Hall of Fame
Duplicate post.