Please find the sample from freeradius and how to assign bandwidth to the subscriber.
test@test.com Cleartext-Password := "XXXX"
ERX-Ingress-Policy-Name = "12M",
ERX-Egress-Policy-Name = "12M"
labroot@X# show dynamic-profiles TEST
interfaces {
pp0 {
unit "$junos-interface-unit" {
ppp-options {
chap;
pap;
}
pppoe-options {
underlying-interface "$junos-underlying-interface";
server;
}
keepalives interval 60;
family inet {
filter {
input "$junos-input-filter";
output "$junos-output-filter";
}
unnumbered-address "$junos-loopback-interface";
}
}
}
}
labroot@X# show firewall filter 12M
interface-specific;
term 1 {
then {
policer 12M;
service-accounting;
service-filter-hit;
accept;
}
}
[edit]
labroot@X# show firewall policer 12M
filter-specific;
logical-interface-policer;
if-exceeding {
bandwidth-limit 12m;
burst-size-limit 1m;
}
then discard;