Vlan-based or interface based service policy

From: Maarten Vervoorn <mr.vervoorn_at_gmail.com>
Date: Wed, 28 Jul 2010 07:41:17 +0200

Hi All,

I just received a quetsion from the workbook lab with the following
question:
Configure VLAN 12 to allow a maximum bandwidth of 64 Kb
Configure VLAN 16 to allow a maximum bandwidth of 2048 Kbit

I think there are two option to do this. I can create a service policy and
put it on alle vlan 12 and 16 interfaces or I could you vlan-based to just
apply the policy to the vlan interface. Can anyone tell me if I'm correct.
In the real lab I could ask the proctor that I could do this question two
ways
*SW1*
mls qos
!
policy-map POLICE-16
  class class-default
    police 2048000 8000 exceed-action drop
policy-map VLAN16
  class class-default
    service-policy POLICE-16
policy-map POLICE-12
  class class-default
    police 64000 8000 exceed-action drop
policy-map VLAN12
  class class-default
    service-policy POLICE-12
!
int fa0/1
  sw access vl 12
  sw mo access
  mls qos vlan-based
int fa0/3
  sw access vl 16
  sw mo access
  mls qos vlan-based
int fa0/4
  sw tr en isl
  sw mo tr
  sw tr all vl 12,16
  mls qos vlan-based
int vlan 12
  service-policy in VLAN12
int vlan 16
  service-policy in VLAN16
!
**
*OR
SW1*
class-map ALL
  match access-group 100
class VLAN12
  match vlan 12
  match class-map ALL
class VLAN16
  match vlan 16
  match class-map ALL
!
policy-map LIMIT
  class VLAN12
    police 64000 8000 exceed-action drop
  class VLAN16
    police 2048000 8000 exceed-action drop
!
int fa0/1
  sw access vl 12
  sw mo access
  service-policy in LIMIT
int fa0/3
  sw access vl 16
  sw mo access
  service-policy in LIMIT
int fa0/4
  sw tr en isl
  sw mo tr
  sw tr all vl 12,16
  service-policy in LIMIT
!

Blogs and organic groups at http://www.ccie.net
Received on Wed Jul 28 2010 - 07:41:17 ART

This archive was generated by hypermail 2.2.0 : Sun Aug 01 2010 - 19:19:15 ART