Try this lab and hopefully it will clear out some of your questions.
**
*Lab Setup:*
R1 and R2 are connected via their F0/0 interface, lets say they are in
VLAN 100
The F0/0 interface of R1 is configured with 10.1.12.1/24 and an IPv6
address of 12::1/64.
The F0/0 interface of R2 is configured with 10.1.12.2/24 and an IPv6
address of 12::2/64.
*Task 1*
From R2, ping R1 using an extended ping, this traffic should be generated
with an IP Precedence of 1. You should use an MQC to verify the traffics
IP Precedence levels of IPv4 packets.
*For verification eight class-maps are configured on R1, each matching
different IP Precedence levels; a policy-map called **TST** is configured
to reference the eight class-maps, and finally, the policy-map **TST** is
applied to the F0/0 interface of R1 in the inbound direction.*
* *
*On R1:*
R1(config)#*class-map P0*
R1(config-cmap)#*match ip precedence 0*
R1(config)#*class-map P1*
R1(config-cmap)#*match ip precedence 1*
R1(config)#*class-map P2*
R1(config-cmap)#*match ip precedence 2*
R1(config)#*class-map P3*
R1(config-cmap)#*match ip precedence 3*
R1(config)#*class-map P4*
R1(config-cmap)#*match ip precedence 4*
R1(config)#*class-map P5*
R1(config-cmap)#*match ip precedence 5*
R1(config)#*class-map P6*
R1(config-cmap)#*match ip precedence 6*
R1(config)#*class-map P7*
R1(config-cmap)#*match ip precedence 7*
R1(config)#*Policy-map TST*
R1(config-pmap)#*class P0*
R1(config-pmap)#*class P1*
R1(config-pmap)#*class P2*
R1(config-pmap)#*class P3*
R1(config-pmap)#*class P4*
R1(config-pmap)#*class P5*
R1(config-pmap)#*class P6*
R1(config-pmap)#*class P7*
R1(config)#*int f0/0*
R1(config-if)#*service-policy input TST*
* *
*An extended ping can be used to generate traffic with different IP
Precedence levels. Remember that IP Precedence uses the three most
significant bits of the TOS Byte, and the decimal value of these bits are:
128 (the most significant), 64 (the second most significant) and 32 (the
third most significant). The table below identifies the TOS Byte values
and their corresponding IP Precedence values: *
* *
*`** TOS Byte **_***
*IPP*
*IPP*
*IPP*
*D*
*T*
*R*
*ECN*
*ECN*
*Decimal*
*IPP Level*
*TOS Levels*
*0*
*0*
*0*
*0*
*0*
*0*
*0*
*0*
*0*
*0*
*0 31*
*0*
*0*
*1*
*0*
*0*
*0*
*0*
*0*
*32*
*1*
*32 63*
*0*
*1*
*0*
*0*
*0*
*0*
*0*
*0*
*64*
*2*
*64 95*
*0*
*1*
*1*
*0*
*0*
*0*
*0*
*0*
*96*
*3*
*96 127*
*1*
*0*
*0*
*0*
*0*
*0*
*0*
*0*
*128*
*4*
*128 159*
*1*
*0*
*1*
*0*
*0*
*0*
*0*
*0*
*160*
*5*
*160 191*
*1*
*1*
*0*
*0*
*0*
*0*
*0*
*0*
*192*
*6*
*192 223*
*1*
*1*
*1*
*0*
*0*
*0*
*0*
*0*
*224*
*7*
*224 - 255*
*128*
*64*
*32*
*16*
*8*
*4*
*2*
*1*
*Decimal Conversion *
* *
*On R2:*
* *
R2#*Ping*
Protocol [ip]: ` *Press Enter*
Target IP address: *10.1.12.1*
Repeat count [5]: ` *Press Enter*
Datagram size [100]: ` *Press Enter*
Timeout in seconds [2]: ` *Press Enter*
Extended commands [n]: *y*
Source address or interface: *10.1.12.2*
*Type of service [0]: **32*
Set DF bit in IP header? [no]: ` *Press Enter*
Validate reply data? [no]: ` *Press Enter*
Data pattern [0xABCD]: ` *Press Enter*
Loose, Strict, Record, Timestamp, Verbose[none]: ` *Press Enter*
Sweep range of sizes [n]: ` *Press Enter*
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.12.1, timeout is 2 seconds:
Packet sent with a source address of 10.1.12.2
*.!!!!*
*Success rate is 80 percent (4/5),* round-trip min/avg/max = 1/2/4 ms
*On R1:*
R1#*Show policy-map interface | s P1*
Class-map: P1 (match-all)
*4 packets, 456 bytes*
5 minute offered rate 0 bps
Match: ip precedence 1
*Note: The output of the above show command reveals that four packets were
matched to IP Precedence level 1.*
* *
*To clear the counter:*
* *
R1#*Clear counters*
Clear "show interface" counters on all interfaces [confirm]
*Press Enter to confirm*
* *
*Let's generate an IPv6 ping and verify the result:*
* *
*On R2:*
R2#*Ping ipv6*
Target IPv6 address: *12::1*
Repeat count [5]: ` *Press Enter*
Datagram size [100]: ` *Press Enter*
Timeout in seconds [2]: ` *Press Enter*
Extended commands? [no]: *Y*
Source address or interface: *12::2*
UDP protocol? [no]: ` *Press Enter*
Verbose? [no]: ` *Press Enter*
Precedence [0]: *4*
Include hop by hop option? [no]: ` *Press Enter*
Include destination option? [no]: ` *Press Enter*
Sweep range of sizes? [no]: ` *Press Enter*
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12::1, timeout is 2 seconds:
Packet sent with a source address of 12::2
*!!!!!*
*Success rate is 100 percent (5/5),* *round-trip min/avg/max = 0/1/4 ms*
*To verify the configuration:*
* *
*On R1:*
* *
R1#*Show policy-map inter | S P4*
Class-map: P4 (match-all)
*5 packets, 570 bytes*
5 minute offered rate 0 bps
Match: ip precedence 4
*Note: IPv6 traffic was matched to **Class P4** and the precedence level
was detected. In earlier versions of IOS the **match ip
precedence****matched on IPv4 packets ONLY, but in the current
version it matches on IPv4
and IPv6 traffic.***
* *
*Task 2*
Remove the service-policy, policy-map, and the class-map from the previous
task.
* *
*On R1:*
R1(config)#*int f0/0*
R1(config-if)#*No* *service-policy input TST*
**
R1(config)#*No* *policy-map TST*
R1(config)#*No* *class-map P0*
R1(config)#*No* *class-map P1*
R1(config)#*No* *class-map P2*
R1(config)#*No* *class-map P3*
R1(config)#*No* *class-map P4*
R1(config)#*No* *class-map P5*
R1(config)#*No* *class-map P6*
R1(config)#*No* *class-map P7*
*Task 3*
Ping R1 using IPv6 ping; this traffic should be generated with a DSCP value
of 20. You should use an MQC to verify the traffics DSCP value *ONLY* for
IPv6 packets on R1.
*Since only the DSCP value of IPv6 packets must be matched, the match
statement in the class-map** includes two statements: match dscp and
match protocol ipv6. ***
*On R1:*
R1(config)#*Class-map D20*
R1(config-cmap)#*Match protocol ipv6*
R1(config-cmap)#*Match dscp 20*
R1(config)#*Policy-map TST*
R1(config-pmap)#*class D20*
R1(config-pmap)#*Int F0/0*
R1(config-if)#*Service-policy in TST*
*To test the configuration:*
* *
*On R2:*
R2(config)#*Policy-map tst*
R2(config-pmap)#*class class-default*
R2(config-pmap-c)#*set dscp 20*
R2(config-pmap-c)#*Int F0/0*
R2(config-if)#*Service-policy output tst*
R2#*Ping ipv6 12::1 repeat 100*
Type escape sequence to abort.
Sending 100, 100-byte ICMP Echos to 12::1, timeout is 2 seconds:
*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*
*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*
*Success rate is 100 percent (100/100), round-trip min/avg/max = 0/0/0 ms*
*To verify the configuration:*
* *
*On R1:*
R1#*Sh policy-map inter*
FastEthernet0/0
Service-policy input: TST
Class-map: D20 (match-all)
*102 packets, 11596 bytes*
5 minute offered rate 2000 bps
Match: protocol ipv6
Match: dscp af22 (20)
Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
*We can see that the DSCP value was matched in the IPv6 packets. Lets ping
R1s IP address and see if it matches the **D20** class-map:*
*On R1*
R1#*Clear counters*
Clear "show interface" counters on all interfaces [confirm]
*Press Enter to confirm*
*On R2*
R2#*Ping 10.1.12.1 repeat 100*
Type escape sequence to abort.
Sending 100, 100-byte ICMP Echos to 10.1.12.1, timeout is 2 seconds:
*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*
*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*
*Success rate is 100 percent (100/100), round-trip min/avg/max = 1/1/4 ms*
*To verify the test:*
* *
*On R1*
R1#*Show policy-map interface*
FastEthernet0/0
Service-policy input: TST
Class-map: D20 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps
Match: protocol ipv6
Match: dscp af22 (20)
Class-map: class-default (match-any)
*100 packets, 11400 bytes*
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
I hope this helped.
On Wed, Mar 13, 2013 at 10:43 AM, Rati , Berikaant Jokhadze <
iinfo83_at_gmail.com> wrote:
> nope vice versa :-p
>
> On 03/13/2013 07:02 PM, Dennis Worth wrote:
>
>> "IP" = IPv4 and no-"IP" = IPv6/IPv4 if i remember correctly.
>>
>> On Wed, Mar 13, 2013 at 7:55 AM, ftt <femi0802_at_gmail.com> wrote:
>>
>> HI experts,
>>>
>>> Just accidentally came across this today. Can any please tell me what the
>>> difference is between the 2 policy below?
>>>
>>> Specifically, set precedence and set ip precedence
>>>
>>> policy-map CCIE1
>>> class ccie
>>> set precedence 5
>>> policy-map CCIE1
>>> class CCIE
>>> set *ip* precedence 5
>>>
>>>
>>> Blogs and organic groups at http://www.ccie.net
>>>
>>> ______________________________**______________________________**
>>> ___________
>>> Subscription information may be found at:
>>>
http://www.groupstudy.com/**list/CCIELab.html<http://www.groupstudy.com/list/
CCIELab.html>
>>>
>>
>
> Blogs and organic groups at http://www.ccie.net
>
> ______________________________**______________________________**
> ___________
> Subscription information may be found at: http://www.groupstudy.com/**
> list/CCIELab.html <http://www.groupstudy.com/list/CCIELab.html>
>
>
>
>
>
>
>
>
-- *Narbik Kocharians *CCSI#30832, CCIE# 12410 (R&S, SP, Security) *www.MicronicsTraining.com* <http://www.micronicstraining.com/> Sr. Technical Instructor YES! We take Cisco Learning Credits! A Cisco Learning Partner Blogs and organic groups at http://www.ccie.netReceived on Wed Mar 13 2013 - 21:14:09 ART
This archive was generated by hypermail 2.2.0 : Wed Apr 03 2013 - 19:06:19 ART