I have a problem with my scenario in limiting bandwidth of ubuntu PC in GNS3 with class-map and policy-map.
this is my topology in GNS3:
The R1 is a cisco 3725 router with c3725-adventerprisek9-mz.124-25d.bin image, and this is my configuration:
access-lists
ip access-list extended UBUNTU_DW
permit ip any host 10.0.0.51
ip access-list extended UNUNTU_UP
permit ip host 10.0.0.51 any
class and policy maps
class-map match-all UBUNTU_DW
match access-group name UBUNTU_DW
class-map match-all UBUNTU_UP
match access-group name UBUNTU_UP
policy-map UP
class UBUNTU_UP
police cir 32000 bc 4000 be 4000
conform-action transmit
exceed-action drop
violate-action drop
policy-map DW
class UBUNTU_DW
police cir 32000 bc 4000 be 4000
conform-action transmit
exceed-action drop
violate-action drop
interface FastEthernet0/1
interface FastEthernet0/1
ip address 192.168.10.254 255.255.255.0
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
service-policy input DW
service-policy output UP
The problem is the 32kbps limitaion for ubuntu does not work.
R1#sh policy-map interface fastEthernet 0/1
FastEthernet0/1
Service-policy input: DW
Class-map: UBUNTU_DW (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group name UBUNTU_DW
police:
cir 32000 bps, bc 4000 bytes, be 4000 bytes
conformed 0 packets, 0 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
drop
violated 0 packets, 0 bytes; actions:
drop
conformed 0 bps, exceed 0 bps, violate 0 bps
Class-map: class-default (match-any)
905 packets, 812409 bytes
5 minute offered rate 27000 bps, drop rate 0 bps
Match: any
Service-policy output: UP
Class-map: UBUNTU_UP (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group name UBUNTU_UP
police:
cir 32000 bps, bc 4000 bytes, be 4000 bytes
conformed 0 packets, 0 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
drop
violated 0 packets, 0 bytes; actions:
drop
conformed 0 bps, exceed 0 bps, violate 0 bps
Class-map: class-default (match-any)
979 packets, 154180 bytes
5 minute offered rate 7000 bps, drop rate 0 bps
Match: any
Is there any wrong configuration? How can I apply this policy?