From: Victor Cappuccio (cvictor@protokolgroup.com)
Date: Wed Aug 30 2006 - 17:45:07 ART
Thist link should help ya
http://www.cisco.com/univercd/cc/td/doc/product/lan/c3550/12225see/scg/swqos
.htm#wp1024977
To define packet classification on a per-port per-VLAN basis, follow these
guidelines:
You must use the match-all keyword with the class-map global configuration
command.
Per-port per-VLAN classification is a per-port feature and does not work on
redundant links. It is supported only on an ingress port configured as a
trunk or as a static-access port.
The class map must have two match commands in this order: one match vlan
vlan-list class-map configuration command and one match class-map
class-map-name class-map configuration command. The class map specified in
the match class-map class-map-name command must be predefined and cannot
contain the match vlan vlan-list and the match class-map class-map-name
commands.
You cannot configure both port-based classification and VLAN-based
classification at the same time. When you configure the match vlan vlan-list
command, the class map becomes per-port per-VLAN based. If you configure a
policy map that contains both port-based and VLAN-based class maps, the
switch rejects the policy map when you attach it to an interface.
With per-port per-VLAN classification, unmatched VLANs are treated
similarly to the default class, which means that the unmatched VLANs share
the remaining bandwidth from those used by the matched VLAN classes. You
cannot modify this default-class behavior. If necessary, you can use VLAN
map filters to block these VLANs.
Within a policy map, when you use the match vlan vlan-list command, all
other class maps must use the match vlan vlan-list command.
Switch(config)# class-map match-any dscp_class
Switch(config-cmap)# match ip dscp 9
Switch(config-cmap)# exit
Switch(config)# class-map match-all vlan_class
Switch(config-cmap)# match vlan 10 20-30 40
Switch(config-cmap)# match class-map dscp_class
Switch(config-cmap)# exit
Switch(config)# policy-map policymap2
Switch(config-pmap)# class vlan_class
Switch(config-pmap-c)# police 80000 8000 exceed-action drop
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# service-policy input policymap2
-----Mensaje original-----
De: nobody@groupstudy.com [mailto:nobody@groupstudy.com] En nombre de
storage4mail
Enviado el: Miircoles, 30 de Agosto de 2006 04:01 p.m.
Para: ccielab@groupstudy.com
Asunto: QoS - Per-Port Per-VLAN question
Here's a scenario for which I'd like your input on two given configurations
below (as to what's the difference),
Scenario:
Incoming traffic from a certain interface (y) in a switch that is assigned
to specific VLAN(x) needs to be marked with immediate precedence.
Config. 1:
ip cef
class-map CLASS1
match access-group name VLANx
policy-map PM
class CLASS1
set ip precedence immediate
interface y
service-policy input PM
ip access-list standard VLANx
permit <VLANx prefix with inverse mask>
Config. 2:
ip cef
class-map CLASS1
match access-group 1
class-map CLASS2
match vlan x
match class-map CLASS1
policy-map PM
class CLASS2
set ip precedence immediate
int y
service-policy input PM
This archive was generated by hypermail 2.1.4 : Fri Sep 01 2006 - 15:41:59 ART