XpressLearn Home

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
Throttle bandwidth on Cisco router based on time of day

Create an access-list that matches a client workstation subnet, but only during the day.

Router(config)# time-range DAY (creates a new time range)
Router(config-time-range)# periodic weekdays 6:00 to 22:00 (matches weekdays from 6:00am to 10:00pm)
Router(config-time-range)# periodic weekend 6:00 to 22:00 (matches weekends from 6:00am to 10:00pm)
Router(config-time-range)# exit
Router(config)# ip access-list extended CLIENTS
Router(config-ext-nacl)# permit ip 192.168.100.0 0.0.0.255 any time-range DAY
Router(config-ext-nacl)# exit
Router(config)#

Create a class-map (used for QoS) that matches the CLIENTS access-list we just created.

Router(config)# class-map MATCH_CLIENTS (MATCH_SERVER is just the name)
Router(config-class-map)# match access-group name CLIENTS (ties in the access-list above)
Router(config-class-map)# exit
Router(config)#

Create a policy-map (used for QoS) that throttles the bandwidth.

Router(config)# policy-map LIMIT_CLIENTS (creates the policy)
Router(config-pmap)# class MATCH_CLIENTS (applies policy to this class)
Router(config-pmap-c)# police 80000 (limits bandwidth to 80Kbps)
Router(config-pmap-c)# exit
Router(config-pmap)# exit
Router(config)#

Apply the new policy to the incoming interface, which is the internal network.

Router(config)# interface fa0/0
Router(config-if)# service-policy input LIMIT_CLIENTS

Author Info:

 
Scott is the Founder, Administrator, Architect, Chief Editor and Shameless Hack who wrote and runs Xpresslearn.
 

Scott has been working in the networking field for 13 years and has experience in all the areas: Lan, Wan, Security, Optimization, High Availability, Wireless, and others.

When he is not working on further development of Xpresslearn, Scott loves spending time with his family and has such hobbies as Camping, Fishing, Cars, and Woodworking.

Related Posts:


Leave a Reply