R5:
ip cef
!
class-map match-all TELNET
match protocol telnet
class-map match-all FTP
match protocol ftp
class-map match-all WWW
match protocol http
!
!
policy-map CUSTOM
class WWW
bandwidth 5000
queue-limit 30
class FTP
bandwidth 3000
class TELNET
bandwidth 500
!
interface Ethernet0/1
ip nbar protocol-discovery
max-reserved-bandwidth 100
!

Rack1R5#sh policy-map int
Rack1R5#sh policy-map interface e0/1
Ethernet0/1

Service-policy output: CUSTOM

Class-map: WWW (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol http
Queueing
Output Queue: Conversation 265
Bandwidth 5000 (kbps) Max Threshold 30 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0

Class-map: FTP (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol ftp
Queueing
Output Queue: Conversation 266
Bandwidth 3000 (kbps) Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0

Class-map: TELNET (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol telnet
Queueing
Output Queue: Conversation 267
Bandwidth 500 (kbps) Max Threshold 64 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0

Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
Rack1R5#