D-Link DGS-1510 Series Reference Manual page 502

Gigabit ethernet smartpro switch
Hide thumbs Also See for DGS-1510 Series:
Table of Contents

Advertisement

DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
Command Mode
Interface Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
Use the service-policy command to attach at most one policy map for input type on an interface. This
policy is attached to the interface for aggregate and controls the number or rate of packets. A packet
arriving at a port will be treated based on the service policy attached to the interface.
Example
This example shows how two policy maps are defined: (1) cust1-classes and (2) cust2-classes.
For cust1-classes, gold is configured to match CoS 6 and be policed by a single rate policer with a
committed rate of 800 Kbps. Silver is configured to match CoS 5 and be policed by a single rate
policer with a committed rate of 2000Kbps, and bronze is configured to match CoS 0 and be policed
by a single rate policer with a committed rate of 8000Kbps.
For cust2-classes, gold is configured to use Cos Queue 6 and be policed by a single rate policer with
a committed rate of 1600 Kbps. Silver is policed by a single rate policer with a committed rate of 4000
Kbps, and bronze is policed by a single rate policer with a committed rate of 16000 Kbps.
The cust1-classes policy map is configured and then attached to interfaces eth3/0/1 and eth3/0/2 for
ingress traffic.
Switch# configure terminal
Switch(config)# class-map match-all gold
Switch(config-cmap)# match cos 6
Switch(config-cmap)# exit
Switch(config)# class-map match-all silver
Switch(config-cmap)# match cos 5
Switch(config-cmap)# exit
Switch(config)# class-map match-all bronze
Switch(config-cmap)# match cos 0
Switch(config-cmap)# exit
Switch(config)# policy-map cust1-classes
Switch(config-pmap)# class gold
Switch(config-pmap-c)# police 800 2000 exceed-action set-dscp-transmit 0
Switch(config-pmap-c)# exit
Switch(config-pmap)# class silver
Switch(config-pmap-c)# police 2000 2000 exceed-action set-dscp-transmit 0
Switch(config-pmap-c)# exit
Switch(config-pmap)# class bronze
Switch(config-pmap-c)# police 8000 2000 exceed-action set-dscp-transmit 0
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface eth3/0/1
Switch(config-if)# service-policy input cust1-classes
Switch(config-if)# exit
Switch(config)# interface eth3/0/2
Switch(config-if)# service-policy input cust1-classes
Switch(config-if)#
The cust2-classes policy map is configured and then attached to interface eth4/0/1 for ingress traffic.
499

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents