Creating nonexisten class within the policy-map!
R3#show ver | in IOS Cisco IOS Software, 7200 Software (C7200-IS-M), Version 12.4(13b), RELEAS ARE (fc3)
No class map configured
R3#show run class-map Building configuration... Current configuration : 6 bytes end
No policy-map configured
R3#show run policy-map Building configuration... Current configuration : 6 bytes end
R3#conf ter Enter configuration commands, one per line. End with CNTL/Z. R3(config)#policy-map MYPM R3(config-pmap)#class match ?
ok seems that we need to hit enter here, he is expeting class named match =)
But…
R3(config-pmap)#class match access-gr 102
We have now a class-map configured automagically
R3(config-pmap-c)#do show run class-map Building configuration... Current configuration : 60 bytes ! class-map match-any match match access-group 102 ! end R3(config-pmap-c)#
Now here the running configuration will show the configuration using the match-any strategy in the class-map