Cisco Cisco IOS Software Release 12.0(22)S

ページ / 34
 
      8-Port OC-3 STM-1 ATM Line Card for Cisco 12000 Series Internet Routers
Configuration Examples
10
Cisco IOS Release 12.0(22)S
Configuration Examples
This section provides configuration examples.
Configuring Per-VC Queue Limits
In the following example, per-VC queue limits are configured on a single queue.
First, configure the policy map:
Router(config)# policy-map qlimit1
Router(config-pmap)# class class-default
Router(config-pmap-c)# queue-limit 576 cells
Router(config-pmap-c)# exit
Router(config-pmap)# exit
Then, attach the policy map to an ATM subinterface.
Router(config)# int atm4/0.1 point-to-point
Router(config-subif)# pvc 4/11
Router(config-if-atm-vc)# service-policy output qlimit1
Configuring Per-VC WRED
In the following example, simple WRED is configured on a VC without MDRR.
In this example, class-default is a special class.  It is the only kind of class that can be configured without 
using the bandwidth or priority commands.
Router(config)# policy-map WRED-1
Router(config-pmap)# class class-default ! <- must use class-default for
Router(config-pmap)#                  ! per-VC WRED without per-VC MDRR
Router(config-pmap-c)# random-detect
Router(config-pmap-c)# random-detect exponential-weighting-constant 10
Router(config-pmap-c)# random-detect precedence 0 300 cells 700 cells 1
Router(config-pmap-c)# random-detect precedence 1 350 cells 800 cells 1
Router(config-pmap-c)# random-detect precedence 2 400 cells 900 cells 1
Router(config-pmap-c)# random-detect precedence 3 450 cells 1000 cells 1
Router(config-pmap-c)# random-detect precedence 4 500 cells 1100 cells 1
Router(config-pmap-c)# random-detect precedence 5 550 cells 1200 cells 1
Router(config-pmap-c)# random-detect precedence 6 600 cells 1300 cells 1
Router(config-pmap-c)# random-detect precedence 7 650 cells 1400 cells 1
Once the policy map has been created, configure it on the VC using the service-policy command:
Router(config-if)# exit
Router(config)# int atm1/0.1
Router(config-if)# pvc 1/1
Router(config-if-atm-vc)# service-policy output WRED-1
Configuring Per-VC MDRR and Low Latency Queueing
Using MDRR, the 8-Port OC-3 STM-1 ATM line card supports up to eight queues for classes of traffic 
per VC. One of the queues is always reserved for a special class called class-default. Up to seven of the 
classes are normal queues, including the class-default queue. The eighth class is always a low latency 
queue.