Wait… do not hit enter yet

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

A Networker Blog

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s