cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1161
Views
0
Helpful
3
Replies

How to create class-map and sub class-map on cisco router

Srinivas N
Level 1
Level 1

Dear friends,

In my cisco 2800 router I could stop single website (facebook.com) by creating class-map, but not multiple sites.

Finally I came to know that to stop the multiple web sites in our local network....

we can create and class-map and sub class-map on single interface.

So that we can block multiple web sites ....

My config.....

class-map match-all WWW
  match protocol http host "*facebook.com*"
!

exit
!
policy-map DROP_WWW
  class WWW
    drop
!

exit
!

exit
!
interface FastEthernet0/0
service-policy output DROP_WWW

But i don't know how to create sub class in the same clsass-map

plz advice me with examples..........       

Thanks & Regards,
Srinivas. N.       

Thanks & Regards, Srinivas. N.
3 Replies 3

cadet alain
VIP Alumni
VIP Alumni

Hi,

If you want to block multiple sites then just change your class-map from match-all to match-any and add the match statements for the other blocked sites.

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

Hi cadet alain,

already i tried with match-any ........ with multiple statement, but not working....

I heard that by creating sub class only we can block the multiple sites........

Plz advise me how to do ?

Thanks & Regards,
Srinivas. N.

Thanks & Regards, Srinivas. N.

Hi,

I don't know what you are referring to by sub class and it should be working with match-any.

Can you provide sh policy-map interface f0/0  output.

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.
Review Cisco Networking products for a $25 gift card