07-18-2015 10:58 AM - edited 03-08-2019 01:01 AM
I have a Cisco router (3825) and switch (3750). I have an end-user that needs more bandwidth allocated to him for a 2 hour window during the day. I would like to allocate his port to use 60% of the bandwidth available during those 2 hours in order for him to perform his duty and then return things to normal after that 2 hour window.
Can anyone please assist me with what commands to write on the router and switch (his particular port) to make this happen?
Also please note I have an ASA 5512 on my network as well, not sure if any configs need to be done for the ASA..
Any help or pointing me in the right direction would be appreciated.
thanks
Richard
07-29-2015 07:20 PM
Richard,
If it is a known two hour window during the day you will want to use a time-based ACL for a specific QoS policy for his IP address. You could then apply it to an interface on the 3825.
Best regards,
tim
07-29-2015 09:41 PM
Tim,
I am seeking the commands to place on my router and his switch port to make this happened. The 2 hour window is not of great concern, but what commands do I implement?
v/r
Richard
07-30-2015 10:11 AM
Richard,
On your 3825 assuming a 10 meg WAN(/internet) circuit: You can apply the policy out to the WAN/internet as well, if you have bi-directional traffic.
time-range SPECIAL-USER
!during lunch time ..
periodic daily 11:00 to 13:00
!
ip access-list extended special-guy
remark timed acl for special-user
permit ip host 192.168.1.14 any time-range SPECIAL-USER
permit ip any host 192.168.1.14 time-range SPECIAL-USER
!
class-map match-any SPECIAL-GUY
description give user 2 hour window with 60% bandwidth
match access-group name special-guy
!
policy-map QOS_POLICY
class SPECIAL-GUY
bandwidth percent 60
class class-default
bandwidth percent 40
!
policy-map 10M_QOS_POLICY
class class-default
shape average 10000000
service-policy QOS_POLICY
!
interface gig0/0
description towards LAN
service-policy output 10M_QOS_POLICY
!
03-16-2018 05:17 AM
03-16-2018 08:45 AM
Hello,
on a side note, you could also use an EEM script with a cron timer. Just add the access list, class map and policy map, and use the EEM script to apply it to the interface. In the below sample, the policy is applied at 11, and removed at 13.
event manager applet BANDWIDTH_LIMIT_ON
event timer cron name BANDWIDTH_LIMIT_ON cron-entry "0 11 * * *" maxrun 9999999
action 1.0 cli command "enable"
action 1.1 cli command "conf t"
action 1.2 cli command "interface GigabitEthernet0/0"
action 1.3 cli command "service-policy output QOS_BANDWIDTH"
action 1.4 cli command "end"
action 1.5 cli command "wr mem"
event manager applet BANDWIDTH_LIMIT_OFF
event timer cron name BANDWIDTH_LIMIT_OFF cron-entry "0 13 * * *" maxrun 9999999
action 1.0 cli command "enable"
action 1.1 cli command "conf t"
action 1.2 cli command "interface GigabitEthernet0/0"
action 1.3 cli command "no service-policy output QOS_BANDWIDTH"
action 1.4 cli command "end"
action 1.5 cli command "wr mem"
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide