Re: Ethernet subinterface

From: Elias Chari (elias.chari@gmail.com)
Date: Wed Jun 28 2006 - 14:41:13 ART


Is this what you are after?

Rgds
Elias
==================

class-map match-all icmp
 match protocol icmp
class-map match-all http
 match protocol http

!
!
policy-map CHILD
 class http
  bandwidth 5000
 class icmp
   police 128000
policy-map PARENT
 class class-default
  shape average 100000000
  service-policy CHILD

interface FastEthernet0/1.900
 encapsulation dot1Q 900
 ip address 204.12.1.3 255.255.255.0
 no snmp trap link-status
 service-policy output PARENT
end

Rack1R3#sh policy-map int f0/1.900
 FastEthernet0/1.900

  Service-policy output: PARENT

    Class-map: class-default (match-any)
      47 packets, 6841 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: any
      Traffic Shaping
           Target/Average Byte Sustain Excess Interval Increment
             Rate Limit bits/int bits/int (ms) (bytes)
        100000000/100000000 625000 2500000 2500000 25 312500

        Adapt Queue Packets Bytes Packets Bytes Shaping
        Active Depth Delayed Delayed Active
        - 0 47 6841 0 0 no

      Service-policy : CHILD

        Class-map: http (match-all)
          0 packets, 0 bytes
          5 minute offered rate 0 bps, drop rate 0 bps
          Match: protocol http
          Queueing
            Output Queue: Conversation 265
            Bandwidth 5000 (kbps) Max Threshold 64 (packets)
            (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0

        Class-map: icmp (match-all)
          0 packets, 0 bytes
          5 minute offered rate 0 bps, drop rate 0 bps
          Match: protocol icmp
          police:
              cir 128000 bps, bc 4000 bytes
            conformed 0 packets, 0 bytes; actions:
              transmit
            exceeded 0 packets, 0 bytes; actions:
              drop
            conformed 0 bps, exceed 0 bps

        Class-map: class-default (match-any)
          47 packets, 6841 bytes
          5 minute offered rate 0 bps, drop rate 0 bps
          Match: any
Rack1R3#

On 6/28/06, Sami <sy1977@gmail.com> wrote:
>
> Thanks Scott
>
> Just noticed if shaping is enabled on default class but I want to police
> another class in this case ICMP to 16K , it doesn't allow.
>
> Can't we combine shaping and polcing ?
>
> policy-map shape
> class ICMP_TF
> class class-default
> shape average 3000000
> service-policy 64KVOIP
>
> R5(config-pmap)#class ICMP_TF
> R5(config-pmap-c)#police cir 16000
> *Output rate-limit already configured, police not allowed*
>
> Thanks
> Sami
>
> On 6/28/06, Scott Morris <swm@emanon.com> wrote:
> >
> > Subinterfaces do not have queues associated with them. You'll need to
> do
> > a
> > nested policy to initiate shaping first (creating a queue), the initiate
> > queuing.
> >
> > policy-map 64KVOIP
> > class VOIP
> > priority 64
> >
> > policy-map shape
> > class class-default
> > shape average 3000000
> > service-policy 64KVOIP
> >
> > Int fa0/0.1
> > service-policy output shape
> >
> > HTH,
> >
> >
> > Scott Morris, CCIE4 (R&S/ISP-Dial/Security/Service Provider) #4713,
> JNCIE
> > #153, CISSP, et al.
> > CCSI/JNCI
> > IPExpert CCIE Program Manager
> > IPExpert Sr. Technical Instructor
> > smorris@ipexpert.com
> > http://www.ipexpert.com
> >
> >
> >
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
> > Sami
> > Sent: Wednesday, June 28, 2006 12:48 PM
> > To: Cisco certification
> > Subject: Ethernet subinterface
> >
> > Group,
> >
> > While doing some QoS stuff , Router complains it can't apply service
> > policy
> > to subinterfaces.
> >
> > Is MQC not supported on subinterfaces ?
> >
> > policy-map 64KVOIP
> > class VOIP
> > priority 64
> >
> > policy-map shape
> > class class-default
> > shape average 3000000
> >
> > R5(config-subif)#service-policy output 64KVOIP CBWFQ : Not supported on
> > subinterfaces
> >
> > Thanks
> > Sami
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Sat Jul 01 2006 - 07:57:33 ART