1) Define a the servers and site
object-group network servers
host 1.1.1.1
host 1.1.1.2
host 1.1.1.3
host 1.1.1.4
!
object-group network site
2.2.2.0 255.255.255.0
!
2) Define the class maps (will correllate to the access-lists in step 3)
class-map match-any site_traffic
match access-group 199
match precedence 3
class-map match-any server_traffic
match access-group 198
match precedence 3
!
3) Define an access-list that matches both the "access-group" in step 2 and the "object-group" in step 1.
access-list 198 permit ip any object-group servers4) Define the limits that you want to apply.
access-list 199 permit ip any object-group site
!
policy-map QoS5) Apply the policy to the interface that you wish to control.
class servers
police 500000
class site
police cir 2000000
!
interface FastEthernet0/1
service-policy output QoS
Without these rules the network traffic could easily exceed the bandwidth available. For example without the rules, attempted traffic across a 10 Mbps circuit for the site and servers might look like this.
Once the rules are applied, netflow allows us to see the containment of the traffic: