Re: Problem Match COS In 3750

From: אשד אלוני <eshedalonie_at_gmail.com>
Date: Thu, 7 May 2009 09:56:03 +0300

Anyone have Idea ?
Not working to match cos.

Router -> Switch

Current configuration : 104 bytes
!
interface FastEthernet1/0/2
 mls qos trust cos
 spanning-tree portfast
 service-policy input QOS
end

Switch#show class-map
 Class Map match-any class-default (id 0)
   Match any

 Class Map match-all COS7 (id 1)
   Match access-group name COS7

 Class Map match-all COS6 (id 2)
   Match access-group name COS6

 Class Map match-all COS5 (id 3)
   Match access-group name COS5

 Class Map match-all COS4 (id 4)
   Match access-group name COS4

 Class Map match-all COS3 (id 5)
   Match access-group name COS3

 Class Map match-all COS2 (id 6)
   Match access-group name COS2

 Class Map match-all COS1 (id 7)
   Match access-group name COS1

 Class Map match-all COS0 (id 8)
   Match access-group name COS0

Switch#show policy-map
  Policy Map QOS
    Class COS0
    Class COS1
    Class COS2
    Class COS3
    Class COS4
    Class COS5
    Class COS6
    Class COS7

Switch#show access-lists
Extended MAC access list COS0
    permit any any cos 0
Extended MAC access list COS1
    permit any any cos 1
Extended MAC access list COS2
    permit any any cos 2
Extended MAC access list COS3
    permit any any cos 3
Extended MAC access list COS4
    permit any any cos 4
Extended MAC access list COS5
    permit any any cos 5
Extended MAC access list COS6
    permit any any cos 6
Extended MAC access list COS7
    permit any any cos 7
Extended MAC access list IPV6a
    permit any any 0x8644 0x0

Router#ping 172.20.1.1 rep 1000

Type escape sequence to abort.
Sending 1000, 100-byte ICMP Echos to 172.20.1.1, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!

Switch#show mls qos int fastEthernet 1/0/2
FastEthernet1/0/2
Attached policy-map for Ingress: QOS
trust state: trust cos
trust mode: trust cos
trust enabled flag: ena
COS override: dis
default COS: 0
DSCP Mutation Map: Default DSCP Mutation Map
Trust device: none
qos mode: port-based

Switch#show policy-map interface fastEthernet 1/0/2
 FastEthernet1/0/2

  Service-policy input: QOS

    Class-map: COS0 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps
      Match: access-group name COS0

    Class-map: COS1 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps
      Match: access-group name COS1

    Class-map: COS2 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps
      Match: access-group name COS2

    Class-map: COS3 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps
      Match: access-group name COS3

    Class-map: COS4 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps
      Match: access-group name COS4

    Class-map: COS5 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps
      Match: access-group name COS5

    Class-map: COS6 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps
      Match: access-group name COS6

    Class-map: COS7 (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps
      Match: access-group name COS7

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

Switch#

On 5/7/09, WW)W WWWW W <eshedalonie_at_gmail.com> wrote:
>
> I See that in the 3750 I Can't match COS in Class-Map
>
> Switch(config)#class-map COS0
> Switch(config-cmap)#match ?
> access-group Access group
> any Any packets
> input-interface Select one or more input interfaces to match
> ip IP specific values
> not Negate this match result
> packet Layer 3 Packet length
> protocol Protocol
>
> But I See I can configure Mac Access-list with Match to COS
>
> mac access-list extended COS0
> permit any any cos 0
> mac access-list extended COS1
> permit any any cos 1
> mac access-list extended COS2
> permit any any cos 2
> mac access-list extended COS3
> permit any any cos 3
> mac access-list extended COS4
> permit any any cos 4
> mac access-list extended COS5
> permit any any cos 5
> mac access-list extended COS6
> permit any any cos 6
> mac access-list extended COS7
> permit any any cos 7
> mac access-list extended IPV6a
> permit any any 0x8644 0x0
>
>
> How Can I Attach the mac access-lists to the service-policy ?
>
> witch(config)#class-map COS0
> Switch(config-cmap)#?
> QoS class-map configuration commands:
> description Class-Map description
> exit Exit from QoS class-map configuration mode
> match classification criteria
> no Negate or set default values of a command
>
> Switch(config-cmap)#match ?
> access-group Access group
> any Any packets
> input-interface Select one or more input interfaces to match
> ip IP specific values
> not Negate this match result
> packet Layer 3 Packet length
> protocol Protocol
>
>
> Switch(config-cmap)#match an
> Switch(config-cmap)#match any ?
> <cr>
>
> Switch(config-cmap)#match pac
> Switch(config-cmap)#match packet ?
> length Layer 3 Packet length
>
> Switch(config-cmap)#match packet le
> Switch(config-cmap)#match packet length ?
> max Maximum length of packet
> min Minimum length of packet
>
> Switch(config-cmap)#match ip ?
> dscp Match IP DSCP (DiffServ CodePoints)
> precedence Match IP precedence
>
>
>
> Switch(config)#policy-map QOS
>
> Switch(config-pmap)#class COS0

Blogs and organic groups at http://www.ccie.net
Received on Thu May 07 2009 - 09:56:03 ART

This archive was generated by hypermail 2.2.0 : Mon Jun 01 2009 - 07:04:42 ART