QoS Policy Configuration Examples

XSR(config)#map-class frame-relay VoIP

XSR(config-map-class<VoIP>)#frame-relay cir out 256000

XSR(config-map-class<VoIP>)#frame-relay bc out 25600

XSR(config-map-class<VoIP>)#frame-relay be out 0

XSR(config-map-class<VoIP>)#service-policy output QoS-Policy

XSR(config-map-class<VoIP>)#frame-relay fragment 300

QoS with VLAN Policy

The following example configures QoS on a VLAN interface. First, add the class map cos5To7 with the matching CoS criterion 5 6 7. Then, create the traffic policy setCosTo4, associate it with the class map, set the minimum bandwidth guarantee to 50 percent, and specify the output VLAN header priority to 4. Finally, configure VLAN ID 1200 on GigabitEthernet sub-interface 2.1.

XSR(config)#class-map match-any Cos5To7

XSR(config-cmap<Cos5to7>)#match cos 5 6 7

XSR(config-cmap<Cos5to7>)#exit

XSR(config)#policy-map setCosTo4

XSR(config-pmap<setCosTo4>)#class cos5To7

XSR(config-pmap-c<Cos5to7>)#bandwidth percent 50

XSR(config-pmap-c<Cos5to7>)#set cos 4

XSR(config-pmap-c<Cos5to7>)#exit

XSR(config)#interface gigabitethernet 2.1

XSR(config-if<G2.1>)#vlan 1200

XSR(config-if<G2.1>)#ip address 192.168.33.44 255.255.255.0

XSR(config-if<G2.1>)#service-policy output setCosTo4

XSR(config-if<G2.1>)#no shutdown

Input and Output QoS Policy

The following example displays how the same policy map may be applied for input and output. With MLPPP, it is used for input QoS and on the Ethernet interface it is used for output QoS policy. Shaping, RED and bandwidth features take no effect on MLPPP.

XSR(config)#class-map A

XSR(config-cmap<A>)#match ip DSCP 32

XSR(config-cmap<A>)#match access-group 101

XSR(config-cmap<A>)#exit

XSR(config)#policy-map InOut

XSR(config-pmap<InOut>)#class A

XSR(config-pmap-c<A>)#bandwidth per 20

XSR(config-pmap-c<A>)#shape 100000

XSR(config-pmap-c<A>)#random-detect 10 20 10

XSR(config-pmap-c<A>)#exit

XSR(config-pmap<InOut>)#class class-default

XSR(config-pmap-c<class-default>)#police 50000 2000

XSR(config-pmap-c<class-default>)#exit

XSR(config-pmap<InOut>)#exit

12-28 Configuring Quality of Service

Page 310
Image 310
Enterasys Networks X-PeditionTM manual QoS with Vlan Policy, Input and Output QoS Policy