07-12-2004
08:37 AM
- last edited on
03-25-2019
02:54 PM
by
ciscomoderator
I built a config to rate shape P2P traffic on my network to 30k/s. I thought it would be useful for people who are looking to limit peer-peer traffic inside their company. If you have any additions or other ideas, let me know.
This is on a Cisco 1751 with IOS 12.3(4)T6. Later versions of 12.3 has newer PDLMs so you don't have to download them.
You will need to apply it to a interface by using the "service-policy output" command, also you need to have "ip nbar protocol-discovery" turned on the interface to get statistics.
!
ip nbar custom bittorrent tcp range 6881 6889
!
class-map match-any Peer2Peer
description QoS class map for Peer 2 Peer applications
match protocol gnutella
match protocol fasttrack
match protocol kazaa2
match protocol napster
match protocol bittorrent
!
!
policy-map Peer2PeerPolicy
description Throttle P2P applications
class Peer2Peer
shape peak 384000
!
03-20-2013 11:35 AM
Hi,
How do i apply this class-map to an interface?
If i have a few servers on the same vlan, can i apply it to the vlan instead of the individual switch ports?
Best Regards and thanks for any feedback.
Ezequiel
03-20-2013 08:42 PM
9 yrs old thread, unlikely the OP is still following it.
03-21-2013 05:20 PM
Hi again,
Ideas please on how to apply this to an interface?
Thanks
Ezequiel
03-22-2013 12:48 AM
Avoid NBAR, it's obsolete stuff without practical use.
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