Hi Edward,
If you are using cbqos you can "show policy-map int x <direction>" and see
what actions have occurred there
E.g.
On R1 egress have a look at the counters of show policy-map int s1/1 output
Marked to see whats happening
On R2 ingress have a look at the number of packets against each class
R1
class-map match-all MatchS1/1
match access-group 100
policy-map Egress
class MatchS1/1
set ip precedence 5
class class-default
set ip precedence 0
interface Serial1/1
ip address 1.1.1.1 255.255.255.0
encapsulation ppp
load-interval 30
clock rate 64000
service-policy output Egress
!
access-list 100 permit ip host 1.1.1.1 any
R2
class-map match-all IPPrec0
match ip precedence 0
class-map match-all IPPrec1
match ip precedence 1
class-map match-all IPPrec2
match ip precedence 2
class-map match-all IPPrec3
match ip precedence 3
class-map match-all IPPrec4
match ip precedence 4
class-map match-all IPPrec5
match ip precedence 5
class-map match-all IPPrec6
match ip precedence 6
class-map match-all IPPrec7
match ip precedence 7
!
policy-map CheckIPPrec
class IPPrec0
class IPPrec1
class IPPrec2
class IPPrec3
class IPPrec4
class IPPrec5
class IPPrec6
class IPPrec7
!
interface Serial1/1
ip address 1.1.1.2 255.255.255.0
encapsulation ppp
service-policy input CheckIPPrec
!
R1#clear counters s1/1
Clear "show interface" counters on this interface [confirm]
R1#
*Jun 13 11:38:30.131: %CLEAR-5-COUNTERS: Clear counter on interface
Serial1/1 by console
R1#show policy-map int s1/1
Serial1/1
Service-policy output: Egress
Class-map: MatchS1/1 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps, drop rate 0 bps
Match: access-group 100
QoS Set
precedence 5
Packets marked 0
Class-map: class-default (match-any)
2 packets, 68 bytes
30 second offered rate 0 bps, drop rate 0 bps
Match: any
QoS Set
precedence 0
Packets marked 0
R2#clear counters s1/1
Clear "show interface" counters on this interface [confirm]
R2#
*Jun 13 11:45:51.467: %CLEAR-5-COUNTERS: Clear counter on interface
Serial1/1 by console
R2#show policy-map int s1/1 input
Serial1/1
Service-policy input: CheckIPPrec
Class-map: IPPrec0 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match: ip precedence 0
Class-map: IPPrec1 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match: ip precedence 1
Class-map: IPPrec2 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match: ip precedence 2
Class-map: IPPrec3 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match: ip precedence 3
Class-map: IPPrec4 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match: ip precedence 4
Class-map: IPPrec5 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match: ip precedence 5
Class-map: IPPrec6 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match: ip precedence 6
Class-map: IPPrec7 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match: ip precedence 7
Class-map: class-default (match-any)
0 packets, 0 bytes
30 second offered rate 0 bps, drop rate 0 bps
Match: any
R1#ping 1.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/6/12 ms
R1#show policy-map int s1/1
Serial1/1
Service-policy output: Egress
Class-map: MatchS1/1 (match-all)
5 packets, 500 bytes
30 second offered rate 0 bps, drop rate 0 bps
Match: access-group 100
QoS Set
precedence 5
Packets marked 5
Class-map: class-default (match-any)
5 packets, 188 bytes
30 second offered rate 0 bps, drop rate 0 bps
Match: any
QoS Set
precedence 0
Packets marked 0
R2#show policy-map int s1/1 input
Serial1/1
Service-policy input: CheckIPPrec
Class-map: IPPrec0 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match: ip precedence 0
Class-map: IPPrec1 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match: ip precedence 1
Class-map: IPPrec2 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match: ip precedence 2
Class-map: IPPrec3 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match: ip precedence 3
Class-map: IPPrec4 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match: ip precedence 4
Class-map: IPPrec5 (match-all)
5 packets, 520 bytes
30 second offered rate 0 bps
Match: ip precedence 5
Class-map: IPPrec6 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match: ip precedence 6
Class-map: IPPrec7 (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match: ip precedence 7
Class-map: class-default (match-any)
0 packets, 0 bytes
30 second offered rate 0 bps, drop rate 0 bps
Match: any
Cheers,
Adam
On Sun, Jun 13, 2010 at 11:19 AM, Bodnar, Edward
<[email protected]>wrote:
> What command can I use to verify that my packets are being marked with a
> precedence of 5 ?
>
> _______________________________________________
> For more information regarding industry leading CCIE Lab training, please
> visit www.ipexpert.com
>
>
_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit
www.ipexpert.com