how can I limit the bandwidth for some IPs ?
class-map match-any R5
match access-group 170
service-policy output RR5
access-list 170 permit ip 172.31.5.0 0.0.0.255 any
Note: R5 = 172.31.5.0/24
Is this enough for limiting network 172.31.5.0/24 bandwidth to 800 kbps ?
I want to limit all the traffic.
The "bandwidth" command under class R5 sets the minimum guaranteed bandwidth (NOT the maximum bandwidth) for the traffic classified by acl 170.
Instead of the bandwidth command you should use shaping or policing under class R5:
shape average 800000
police 800000 conform-action transmit exceed-action drop