14-21

Ethernet Card Software Feature and Configuration Guide, R7.2
January 2009
Chapter 14 Configuring Quality of Service
ML-Series VoIP Example
Match input-interface SPR1
Match cos 1
ML-Series VoIP Example

Figure 14-7 shows an example of ML-Series QoS configured for VoIP. The associated commands are

provided in Example 14-12.

Figure 14-7 ML-Series VoIP Example
Example 14-12ML-Series VoIP Commands
Router(config)# class-map match-all voip
Router(config-cmap)# match ip precedence 5
Router(config-cmap)# exit
Router(config)# class-map match-any default
Router(config-cmap)# match any
Router(config-cmap)# exit
Router(config)# policy-map pos0
Router(config-pmap)# class default
Router(config-pmap-c)# bandwidth 1000
Router(config-pmap-c)# class voip
Router(config-pmap-c)# priority 1000
Router(config-pmap-c)# interface FastEthernet0
Router(config-if)# ip address 1.1.1.1 255.255.255.0
Router(config-if)# interface POS0
Router(config-if)# ip address 2.1.1.1 255.255.255.0
Router(config-if)# service-policy output pos0
Router(config-if)# crc 32
Router(config-if)# no cdp enable
Router(config-if)# pos flag c2 1
ML-Series Policing Example

Figure 14-8 shows an example of ML-Series policing. The example shows how to configure a po licer

that restricts traffic with an IP precedence of 0 to 1,000,000 bps. The associated code is provided in

Example 14-13.

ONS 15454
with ML100T-12

Router_A

Fast Ethernet 0 POS 0
SONET/SDH
STS-1 circuit
VoIP Traffic
General Data Traffic
During periods of congestion, the ML-Series card services
all VoIP traffic before servicing any general data traffic.
83181