I have a public facing Internet router on a 2Mb cicuit. I would like to restrict the amount of bandwidth used by SMTP only, but leave all other traffic as is.
I believe this is possible, but not sure of the commands, I would like to say restrict SMTP inbound/outbound to 256k, can anyone help ?
You would probably be better off using QoS to do this instead of rate-limiting. For example, if you wanted SMTP to use no more than 256k when the pipe is 80% loaded, but use as much as it can when the pipe is less than 80% utilized, than QoS is the way to go. Rate-limiting is easier to configure, but QoS is better because rate-limiting will drop the packets that exceed the threshold, while QoS will queue the packets, and only drop packets when the queues get full.
In article , thrill5 wrote: :You would probably be better off using QoS to do this instead of :rate-limiting. For example, if you wanted SMTP to use no more than 256k :when the pipe is 80% loaded, but use as much as it can when the pipe is :less than 80% utilized, than QoS is the way to go. Rate-limiting is easier :to configure, but QoS is better because rate-limiting will drop the packets :that exceed the threshold, while QoS will queue the packets, and only drop :packets when the queues get full.
QoS is a policy framework, and rate-limiting is one of the possible policy-enforcement mechanisms that can be applied within QoS. Thus one should not speak of using QoS -instead- of rate-limiting. One could, though, speak of using rate-shaping instead of rate-limiting .
Sorry I'm not 100% sure. Try the below on yours and see if you get the command "rate-limit" come up. CBWFQ (class based weighted fair queuing) is a little more complex to setup so I would suggest trying the rate-limit option first and if it works maybe look at 'upgrading' to CBWFQ.
c2600#conf t Enter configuration commands, one per line. End with CNTL/Z. c2600(config)#int eth0/0 c2600(config-if)#rate? rate-limit
I've included below a sample config that I *think* should do the trick, what it does is limit any traffic going into or out of the ethernet port destined for port 25 to 256k.
Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.