is this config ok if i want to limit the bandwidth for any smtp traffic anytime to 256K ?
class-map match-any smtp
match protocol smtp
match access-group 199
ip address 69.x.x.x 255.255.255.0
ip nbar protocol-discovery
ip nat outside
service-policy output limit
ip address 10.x.x.x 255.255.255.0
ip nat inside
access-list 199 permit tcp any any eq smtp
If you use a policy similar to the example shown in my prior post, you get the best. Your SMTP will effectively only obtain bandwidth not otherwise being used, but will be able to obtain all otherwise available bandwidth. I.e., almost no contention against other traffic but ablt to use full link bandwidth (if available).