I want to perform QoS on specific (or all the) L2TP sessions that establish on ASR1006 router (LNS).
What I have managed already is to set a police at a specific rate for a class that matches access-list 100 with the following code and it is working ok (tried one user and it limits bandwidth to 800 kbps):
class-map match-all class1
match access-group 100
!
policy-map child
class class1
police 800000 100000 100000 conform-action transmit exceed-action set-qos-transmit 1 violate-action drop
policy-map parent
class class-default
service-policy child
Now what I want is to set the police cir as a percentage because I want to apply the policy-map on various pppoe sessions with different speed. But when for example I change the police with "police cir percent 50 pir percent 60" I get the following error: police percent not supported - no bandwidth for percent calculation
One user in cisco community suggested the explicit defining with the use of a RADIUS attribute (Cisco-AVPair += "ip:interface-config=bandwidth qos-reference [value]) but I want the value to be discovered automatically every time a session establishes because I am speaking about many L2TP sessions with different connection rates.
Please your help.