Cisco Systems WSC4500X16SFP Manual De Usuario

Descargar
Página de 680
27-38
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter 27      Configuring Quality of Service
Configuring QoS
Example 4
Assume there are two active flows on the Fast Ethernet interface 6/1 with destination addresses of 
192.168.20.20 and 192.168.20.21. The following example shows how to maintain each flow to 1 Mbps 
with an allowed burst value of 9000 bytes:
Switch# conf terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)# class-map c1
Switch(config-cmap)# match flow ip destination-address
Switch(config-cmap)# exit
Switch(config)# policy-map p1
Switch(config-pmap)# class c1
Switch(config-pmap-c)# police 1000000 9000
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface fa6/1
Switch(config-if)# service-policy input p1
Switch(config-if)# end
Switch# write memory
Switch# show policy-map interface
 FastEthernet6/1
  Service-policy input: p1
    Class-map: c1 (match-all)
      2965072 packets
      Match: flow  ip destination-address
      police: Per-interface
        Conform: 6105636 bytes Exceed: 476652528 bytes
    Class-map: class-default (match-any)
      0 packets
      Match: any
        0 packets
Example 5
Assume that there are two active flows on FastEthernet interface 6/1:
SrcIp          DstIp          IpProt SrcL4Port DstL4Port
--------------------------------------------------------
192.168.10.10  192.168.20.20  20     6789       81
192.168.10.10  192.168.20.20  20     6789       21
With the following configuration, each flow will be policed to 1000000 bps with an allowed 9000 burst 
value.
Note
If you use the match flow ip source-address|destination-address command, these two flows will be 
consolidated into one flow because they have the same source and destination address.
Switch# conf terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)# class-map c1
Switch(config-cmap)# match flow ip source-address ip destination-address ip protocol l4 
source-port l4 destination-port
Switch(config-cmap)# exit