QOS template for 6500 – Ingress

Posted: May 24, 2006 by sankar in 6500, QOS

Globally enable QOS

set qos enable

Port commands (Mandatory)

set port qos <mod/port> vlan-based | port-based (mandatory)
set port qos <mod/port> trust {trust-dscp|trust-cos|trust-ipprec|untrusted} (mandatory)
SET port qos <mod/port> trust-ext untrusted | trust-cos (mandatory)
### instructs phones to not trust cos coming from PC or to trust the cos.

Port commands (optional)

set port qos <mod/port> cos-ext <value> (0 through 7) —- resets cos to specified value. (optional)
set port qos <mod/port> cos <value> (optional)
set port qos <mod/port> trust-device cisco-ipphone (optional)
set qos rxq-ratio 1q4t 80 20 (optional)
### works only for 1p1q type receive queues (6548, 6748)

Policing

set qos policer aggregate <nameofpolicer> rate <rate> burst <burst> {drop|policed-dscp}
############ used in PFC or PFC2

set qos policer agggreate <nameofpolicer> rate <rate> {policed-dscp-map} erate <erate> {drop|policed-dscp-map} burst <burst> eburst <eburst>
########### used in PFC2 or PFC3.


set qos policed-dscp-map {in-profile-dscp : dscp-mark-down}

##This is used with aggregate policer defined in section 1 (specify one rate and one burst)

set qos policed-dscp-map normal-rate {in-profile-dscp|dscp-mark-down}

##Used with aggregate policer defined in section 2 (specify, rate and erate, burst and eburst)

set qos policed-dscp-map excess-rate {in-profile-dscp|dscp-mark-down}

##Used with aggregate policer defined in section 2 (specify, rate and erate, burst and eburst)


burst = rate /4000 + 12kbps.
Commands needed for Microflow policing
—————————————
set qos bridged-microflow-policing enable <vlan no>
### Only for MSFC2

set qos policer microflow <nameofpolicer> rate <rate> burst <burst> {drop|policed-dscp}

QOS ACLs

set qos acl ip <acl_name> {dscp|trust-dscp|trust-ipprec|trust-cos} {microflow <mflowpolicer>|aggregate <agg policer>} {ip|tcp|udp} <src address> <mask> <port> <dst address> <mask> <port> {precedecne <prec> | dscp-field <dscp>} {before <editbuffer>|modify <editbuffer>}
commit qos acl <acl_name>
set qos acl map <acl_name> <mod/port>

rollback qos acl map <acl_name>

clear qos acl map <acl_name>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s