Configuration Examples For Ip Precedence Marking And Classification - Cisco 10000 Series Configuration Manual

Quality of service configuration guide
Hide thumbs Also See for 10000 Series:
Table of Contents

Advertisement

Chapter 7
Marking Traffic
Command
Step 4
Router(config-pmap-c)# exit
Step 5
Router(config-pmap)# exit
Step 6
Router(config)# interface type number
Step 7
Router(config-if)# service-policy {input |
output} policy-map-name

Configuration Examples for IP Precedence Marking and Classification

Example 7-1
Bronze is created and the class map named Voice is associated with the Bronze policy. For all outbound
packets on the Gigabit Ethernet 2/0/1 interface, the router sets the IP precedence bits to 5.
Example 7-1
Router(config)# class-map Voice
Router(config-cmap)# match access-group 110
Router(config-cmap)# exit
Router(config)# policy-map Bronze
Router(config-pmap)# class Voice
Router(config-pmap-c)# set ip precedence 5
Router(config-pmap-c)# exit
Router(config-pmap)# exit
Router(config)# interface GigabitEthernet 2/0/1
Router(config-if)# service-policy output Bronze
Example 7-2
named Second is created and the class map named ip-prec is associated with the Second policy. For all
outbound packets on Gigabit Ethernet interface 2/0/1, the router classifies packets based on the setting
of their IP precedence bits. If the bits are set to 3, the router assigns the packets to the ip-prec class and
polices the traffic as indicated in the Second policy map.
Example 7-2
Router(config)# class-map ip-prec
Router(config-cmap)# match ip precedence 3
Router(config-cmap)# exit
Router(config)# policy-map Second
Router(config-pmap)# class ip-prec
Router(config-pmap-c)# police 8000 4000 2000 conform-action transmit exceed-action drop
violate-action drop
Router(config-pmap-c)# exit
Router(config-pmap)# exit
OL-7433-09
shows how to configure IP precedence marking. In the example, a policy map named
Configuring IP Precedence Marking
shows how to configure IP precedence-based classification. In the example, a policy map
Configuring IP Precedence-Based Classification
Cisco 10000 Series Router Quality of Service Configuration Guide
Purpose
Exits policy-map class configuration mode.
Exits policy-map configuration mode.
Specifies the interface to which you want to attach the service
policy map. Enters interface configuration mode.
type is the type of interface (for example, serial).
number is the number of the interface (for example, 1/0/0).
Attaches the policy map you specify to the interface. The
router applies the service policy to packets on the interface in
either the input or output direction.
input indicates to apply the service policy to inbound
packets.
output indicates to apply the service policy to outbound
packets.
policy-map-name is the name of the policy map.
Configuring Traffic Marking
7-23

Advertisement

Table of Contents
loading

Table of Contents