02-19-2012 10:09 PM - edited 03-07-2019 05:02 AM
Dear,
I am trying to do policy on the interfaces of my switch WS-4507R, below the configuration I used to shap the traffic to 1 Mbps. However, when I tested it the traffic excceded the 1 Mbps.
class-map match-all 1MB
match access-group name 1MB
!
policy-map 1MB
class 1MB
police 1024000 bps 192000 byte conform-action transmit exceed-action drop
!
interface FastEthernet4/47
switchport access vlan 2
switchport mode access
spanning-tree portfast
service-policy input 1MB
service-policy output 1MB
anybody can advice who I can restrict my bandwidth on the interface on 1 Mbps.
regrads
MHS
02-19-2012 10:13 PM
Hello,
Can you please also attach "show access-list 1MB", "show policy-map int fa4/47". Please also advise how do you measure the traffic passing through.
Nik
02-22-2012 01:35 AM
Dear Nik,
I dont have any access list for this policy.
SW#sh policy-map interface fastEthernet 4/47
FastEthernet4/47
Service-policy input: 1MB
Class-map: 1MB (match-all)
0 packets
Match: access-group name 1MB
police: Per-interface
Conform: 0 bytes Exceed: 0 bytes
Class-map: class-default (match-any)
0 packets
Match: any
0 packets
Service-policy output: 1MB
Class-map: 1MB (match-all)
0 packets
Match: access-group name 1MB
police: Per-interface
Conform: 0 bytes Exceed: 0 bytes
Class-map: class-default (match-any)
1068 packets
Match: any
1068 packets
SW#
I measure it by stressing the link and monitor the utilization of this port.
regards
MHS
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