10-02-2006 03:30 AM - edited 03-03-2019 05:20 AM
How can i shape/limit the interface of an cisco 3560 not to allow more than
8mbit of outgoing and ingoing traffic?
Will something like this work:
class-map match-all any
match ip dscp default
!
!
policy-map 8mbps
class any
police 8388500 8000 exceed-action drop
interface FastEthernet0/13
switchport access vlan 940
switchport mode access
service-policy input 8mbps
srr-queue bandwidth shape 12 12 12 12
Jo Christian Buvarp
Solved! Go to Solution.
10-02-2006 08:07 AM
Hi andrea,
as there was no information on additional configuration of the switch - and there IS additional configuration - I just could not rule out, that there is traffic sorted into all 4 queues. This is why I wrote "up to 24 Mbps".
Regards, Martin
10-02-2006 03:42 AM
your config looks like it's well on its way although it seems you may need a little more.
to verify your configuration and any other items you may have missed, please see the following link for 3560 bandwidth shaping:
10-02-2006 03:44 AM
Jo Christian,
You are matching traffic on DSCP with a zero value, which is valid configuration. However, you can classify ALL trafic with the class-default command within a policy-map.
policy-map police
class class-default
police 8000000 8000 exceed-action drop
interface FastEthernet0/13
service-policy input police
service-policy output police
Verify your work with the "show policy-map interface FastEthernet0/13" command.
HTH
--Leon
* Please rate ALL posts.
10-02-2006 03:51 AM
service-policy output police isn't supported on the 3560..
That's why I wonder if my config will work on "output" to..Pretty sure it will be ok for input :)
10-02-2006 04:15 AM
If you not sure about this policy, use rate-limit to limit the traffic in and out direction.
bye
FCS
Please rate me if I helped.
10-02-2006 04:33 AM
Do you have en example on how I can do this with rate-limit on an 3560 ?
10-02-2006 05:19 AM
Here you can read about rate-limit:
interface configs:
rate-limit input 8388608 1572864 3145728 conform-action transmit exceed-action drop
rate-limit outpu 8388608 1572864 3145728 conform-action transmit exceed-action drop
//
normal burst = configured rate * (1 byte)/(8 bits) * 1.5 seconds
extended burst = 2 * normal burst //
bye
FCS
Please rate me if I helped.
10-02-2006 04:56 AM
Hi,
your input config is ok and will limit traffic to 8 Mbps. on the output side, traffic is sorted into 4 queues. With shaped output, which you configured, each of the queues will be limited to 1/12 = approx. 8 Mbps. This will give you a total of up to 24 Mbps on output depending on how you sort traffic into the 4 queues.
If you can make sure all traffic is marked as "default", this should give you the desired result. You can also assign traffic to queues following
with the command
mls qos srr-queue output dscp-map queue queue-id threshold threshold-id dscp1...dscp8
Hope this helps! Please rate all posts.
Regards, Martin
10-02-2006 05:33 AM
Thank you :)
Btw, will a "mls qos cos override" make sure that all the traffic goes into the same queue?
10-02-2006 07:11 AM
I'm sorry Martin, for this stupid question,
but why 24Mbps? Normally with that conf the priority queue is unused?
thanks
Andrea
10-02-2006 08:07 AM
Hi andrea,
as there was no information on additional configuration of the switch - and there IS additional configuration - I just could not rule out, that there is traffic sorted into all 4 queues. This is why I wrote "up to 24 Mbps".
Regards, Martin
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