Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a 10Mb internet connection (via an ethernet cable) I have five servers that will use this internet connection. I want each server to be able to use as much bandwidth as possible when it is not in use by other servers, but guarantee that each server will always have at least 2MB available

What sort of device/configuration is able to handle this setup? Can it be done somehow with IPTables, or a Cisco ASA etc?

(This is planning for a new setup, so there is no prior commitment to use existing routers/equipment that needs to be taken into account)

share|improve this question
See: traffic-shaping, traffic-management‌​, htb for the Linux solution to shaping. – Zoredache Jul 28 '10 at 7:31
Pity these aren't VM's - VMWare's ESXi could do this for you very easily without any hardware. We use Cisco ACEs in Cat65's for this btw. – Chopper3 Jul 28 '10 at 8:36
Thanks Zoredache - knowing the proper search term is a huge help. – DrStalker Jul 29 '10 at 8:50
up vote 2 down vote accepted

On a Cisco router, you can do it using policy-maps, First, define a service-class for each server (you'll need an extended ACL, so you can match on source IPs), then define a policy-map that allocates a minimum guarantee of 2 Mbps to each service-class.

After that, apply this as an outbound policy-map on your WAN interface (will require that you change the percentage allocatable from 75% to 100%).

class-map server1
 match access-group 101
policy-map fair-allocation
 class server1
  bandwidth 2000
access-list 101 permit ip host any

You would need to define a class-map for each server and within the policy-map, you'll need to repeat the "class-map server ..." for each server.

Then, on your WAN interface, you'd need to do:

interface WAN
 max-reserved-bandwidth 100
 service-policy output fair-allocation
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.