07-07-2009 12:19 AM - edited 03-04-2019 05:20 AM
Hi guys
iam trying to do traffic shaping on one of my cisco routers.I have 10 clients connecting to the router via adsl connections and the router is terminating pppoe sessions from clients, forwarding radius requests to the radius server.i have got a 2mbps uplink and would like to rate limit the clients according to the bandwidth they buy from my company.I tried the attached configurations but it doesnt look like traffic is being shaped, even when my uplink is throttled to the limit.if i type command: show policy-map int e0 , no shaping is happening
my clients get virtual access interfaces dynamically and some are hitting more than 1mbps.
Thanks in advance
07-07-2009 03:22 AM
Other than the bit strange usage of both a policer and shaper in class-default, your policy (itself), at a glance, looks okay. (NB: second glance, I wonder whether your ACLs are matching since NAT is involved.)
Could you post a show policy-map?
What do you mean by ". . . even when my uplink is throttled to the limit."?
Re: clients, how do you know ". . . some are hitting more than 1mbps."?
PS:
You're unable to support full duplex on the uplink?
07-07-2009 11:00 PM
What do you mean by ". . . even when my uplink is throttled to the limit."?
i mean my uplink is operating at 2mbps(thats my maximum bandwidth.
Re: clients, how do you know ". . . some are hitting more than 1mbps."?
if i do show interface vi2, it shows me the input and output rates for the client connected on the virtual interface
right now i removed nat.Here is my show policy-map
07-07-2009 11:10 PM
What do you mean by ". . . even when my uplink is throttled to the limit."?
i mean my uplink is operating at 2mbps(thats my maximum bandwidth.
Re: clients, how do you know ". . . some are hitting more than 1mbps."?
if i do show interface vi2, it shows me the input and output rates for the client connected on the virtual interface
right now i removed nat.Here is my show policy-map
07-08-2009 02:49 AM
Sorry wasn't precise, wanted posting of show policy interface, so we can see actual policy map stats.
re: maximum bandwidth, 2 Mbps means little since it's not the physical bandwidth of the interface -- which is why your shapers are important
re: removing NAT - if you need NAT, don't remove it
07-08-2009 05:58 PM
07-08-2009 07:42 PM
The policy is applied to int E0, outbound. The 1.6 Mbps you mention, is inbound, not outbound on interface E0. Outbound shows 566 Kbps, and no active shaping (although stats show there has been shaping). I.e., doesn't show the shaping being over speed for this interface snapshot.
07-08-2009 10:45 PM
How can i apply it on the inbound of Eth0.If i try inbound on e0, i get an error messege that CBWFQ can be enabled as an outut feature only.
If i apply it on output of f0, everything stops working.All policy maps wont be matched except the default.
07-09-2009 03:14 AM
You can apply CBWFQ as inbound, but you're limited to features used (e.g. no queuing [includes shaping]). (Also inbound policing usually can't provide quite the same results.)
You write your policy doesn't match, except default, when applied outbound, yet the information you've posted shows both an outbound policy configuration and it's working (i.e. matching other than default)? What interface do you need to shape, outbound, E0 for FE0? Or, is the issue when NAT is in operation?
If the latter, one alternative is to mark (IP Prec or DSCP) your packets on the ingress interface, then use those markings upon egress interface.
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