11-29-2012 02:19 AM - edited 03-07-2019 10:18 AM
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.
11-29-2012 02:33 AM
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.
11-29-2012 02:37 AM
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.
11-29-2012 02:45 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide