CANOGA PERKINS CanogaOS Configuration Guide User Manual

Page 275

Advertising
background image

CanogaOS Configuration Guide

Proprietary & Confidential Canoga Perkins Metro Ethernet Switches

Page 275 of 350

Note: The no class-map command deletes an existing class-map.


The following example shows configuring a class map named cmap1 with 1 match criterion: IP
access list ip-acl, which allows traffic from any source to any destination.

DUT(config)# ip access-list ip-acl

DUT(config-ip-acl)# permit any any any

DUT(config-ip-acl)#quit

DUT(config)# class-map cmap1

DUT(config-cmap)# match access-group ip-acl

Create Policy Map

The following shows creating a policy map to classify, police, and mark traffic.

1. configure terminal.

2. ip access-list to create an IP ACL.

3. class-map (match-any|match-all) NAME to create a class map.

4. policy-map NAME to create a policy map.

NAME = name of the policy map.

5. class NAME to define a traffic classification.

NAME = name of the class map.

6. set priority <0-63> color red|yellow|green to set a priority and color for the

packet matched class-map.

7. trust cos|dscp|ip-prec|port|outer to specify a policy to trust which to map

priority and color.

trust = set trust value for the class

dscp = trust dscp value in classified packets

cos = trust cos value in classified packets

ip-prec = trust ip precedence in classified packets

port = trust port default cos value in classified packets

outer = trust the outer header of tunnel to map to priority in classified packets

8. policer color-blind|color-aware cir <1-1000000> cbs <0-4000000> ebs

<0-4000000>| pir <1-1000000> pbs <0-4000000> drop-color red|yellow (use-l3-length)

to specify a policer.

color-blind = Color blind mode policer

color-aware = color-aware: Color aware mode policer

cir = CIR - commit Information rate (bps)

cbs = commit burst size (bytes)

ebs = EBS - Excess Burst Size (bytes)

pir = PIR - Peak Information Rate

Advertising