cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2004
Views
5
Helpful
5
Replies

Configure Bandwidth for a specific port?

grip27grip28
Level 1
Level 1

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

5 Replies 5

trfinkenstadt
Level 1
Level 1

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

 

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

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
!

Joseph W. Doherty
Hall of Fame
Hall of Fame
This for Internet bandwidth? If so, I presume it's much less than your LAN bandwidth. If so, you can deal with egress bandwidth, on the 3825, along the lines Tim shows. Doing similar, for ingress bandwidth, is generally impractical on "ordinary" routers (and/or switches).

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"