ā11-20-2012 11:33 PM - edited ā03-07-2019 10:10 AM
hi ,
i want to gurantee bw of 20 Mega to one single ip
i want to do it by policymap
here is my config below , plz tell me wts wrong and why it didnt succed :
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
policy-map zwifi
class zwifi
police cir 20480000 bc 3840000 be 7680000
bandwidth 20480
class class-default
ip access-list extended zwifi
permit ip host x.x.66.246 any
class-map match-all zwifi
match access-group name zwifi
int Gi0/1
service-policy output zwifi
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
i applied this configs to the exit router which is th bgp router towords the internet
==============BGP Router Gi0/1========================internet
i applied the policy on Gi0/1
but the bw is not guranteed , im using router 7604 and ios of
c7200p-advipservicesk9-mz.124-24.T4.bin
plz advice , i just only want to gurantee 20 Mega to this single ip , note that this single ip is a PAT ( port address translation) for many users .
Solved! Go to Solution.
ā11-21-2012 01:50 AM
Hi,
yes it looks like it is working.
Regards.
Alain
Don't forget to rate helpful posts.
ā11-20-2012 11:38 PM
Hi,
Why don't you apply it inbound on the ingress interface ?
Regards.
alain
Don't forget to rate helpful posts.
ā11-20-2012 11:44 PM
hi ,
u mean to apply
serivepolicy inbound zwifi ???
ā11-20-2012 11:59 PM
hi ,
i tried to apply it inbound at the ingree interface , here is the reuslt :
7200(config-if)#service-policy input zwifi
Weighted Fair Queueing feature not supported in input policy.
Weighted Fair Queueing feature not supported in input policy.
???
ā11-21-2012 12:05 AM
Hi,
yes sorry a CBWFQ policy can't be applied inbound. Why are you policing and doing CBWFQ at the same time ?
You want this IP to have 20 Megs when congestion or you want to limit this IP to 20 Megs max in any case ?
Regards.
Alain
Don't forget to rate helpful posts.
ā11-21-2012 12:35 AM
i want to gurantee 20 mega when congestion
ā11-21-2012 12:37 AM
may the command police cir no need to be written , actually
i dont know .
again , my goal is to gurantee 20 mega when congestion .
is my config above correct ?
ā11-21-2012 01:06 AM
Hi,
then only issue the bandwidth command and you'll have to apply outbound. But CBWFQ will occur after NAT process so you'll have to match on the natted IP which in this case will not match only for this host.
So i would mark the traffic from this user in a Qos group and then apply the CBWFQ matching this marking.
1Ā° marking
class-map USER
match access-group name zwifi
policy-map MARK_USER
class USER
set qos-group 1
2Ā° cbwfq
no policy-map zwifi
class-map QOS_GROUP
match qos-group 1
policy-map zwifi
class QOS_GROUP
bandwidth 20480
3Ā° apply these policies
int x/x( ingress)
service-policy input MARK_USER
int x/x(egress)
service-policy output zwifi
Regards.
Alain
Don't forget to rate helpful posts.
ā11-21-2012 01:27 AM
hi Alian ,
ive applied the config you wrote above .
now there is no congestion , i will test it will my bw get congestion and i will give u a reply here about the result .
another question ,
is there any verifying commands about commands above ??? i mean can i see from the router if a gurantee was occured or qos applied ??
regards
ā11-21-2012 01:30 AM
Hi,
show policy-map interface
Regards.
Alain
Don't forget to rate helpful posts.
ā11-21-2012 01:37 AM
hi , plz have a look here
is the config is giving correct result ???
7200Gateway#sh policy-map interface gigabitEthernet 0/3
GigabitEthernet0/3
Service-policy output: zwifi
Class-map: qosgroup (match-all)
238791 packets, 34158779 bytes
30 second offered rate 287000 bps, drop rate 0 bps
Match: qos-group 1
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 238791/34158779
bandwidth 20480 kbps
Class-map: class-default (match-any)
15861955 packets, 2589008949 bytes
30 second offered rate 26847000 bps, drop rate 0 bps
Match: any
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 15862121/2589038639
7200Gateway#sh policy-map interface gigabitEthernet 0/1
GigabitEthernet0/1
Service-policy input: markuser
Class-map: user (match-all)
369117 packets, 43904870 bytes
30 second offered rate 409000 bps, drop rate 0 bps
Match: access-group name zwifi
QoS Set
qos-group 1
Packets marked 369117
Class-map: class-default (match-any)
68909433 packets, 12116550081 bytes
30 second offered rate 122043000 bps, drop rate 0 bps
Match: any
ā11-21-2012 01:50 AM
Hi,
yes it looks like it is working.
Regards.
Alain
Don't forget to rate helpful posts.
ā11-21-2012 01:56 AM
hi Alian ,
i will give u a reply when congestion occur
regards
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