Подскажите пожалуйста у кого реализовано на примере пожалуйста.
Обновился на 009, перехожу на использование атрибутов mpd для шейпирования.
Завел юзера test2
В настройках тарифа даем 2 Мбит/с

Хотим сделать Турбокнопку 100Мбит/с на 24 часа:
Входящий канал:

Исходящий канал:

Турборежим:

Radius атрибуты:

В логах:
Код: Выделить всё
?Debug : Apr 02 20:53:04 2864e140 AuthServer: User <test2> connecting
?Debug : Apr 02 20:53:04 2864e140 AuthServer: Session for sessionid <test2> not found in <10.1.255.250> cache
?Debug : Apr 02 20:53:04 2864e140 RADIUS DBA: Info for login <test2> found. type <1>
?Debug : Apr 02 20:53:04 2864e140 AuthServer: Auth scheme: MS-CHAPv2
?Debug : Apr 02 20:53:04 2864e140 AuthServer: MS-CHAPv2: Authorized user <test2>
?Debug : Apr 02 20:53:04 2864e140 AuthServer: IP claimed: 0xac10092d (<172.16.9.45>)
?Debug : Apr 02 20:53:04 2864e140 AuthServer: Calling fill radius attributes for service. Attr storage size <2>
?Debug : Apr 02 20:53:04 2864e140 AuthServer: fill_radius_data Vendor:<12341> Attr:<7> String val:<in#1=all shape 2048000 pass> Size:<27> Result:<0>
?Debug : Apr 02 20:53:04 2864e140 AuthServer: fill_radius_data verify Size:<27>
?Debug : Apr 02 20:53:04 2864e140 AuthServer: fill_radius_data Vendor:<12341> Attr:<7> String val:<out#1=all shape 2048000 pass> Size:<28> Result:<0>
?Debug : Apr 02 20:53:04 2864e140 AuthServer: fill_radius_data verify Size:<27>
?Debug : Apr 02 20:53:04 2864e140 AuthServer: Calling fill radius attributes for slink. Attr storage size <0>
?Debug : Apr 02 20:53:04 2864e140 AuthServer: fill_radius_data Vendor:<12341> Attr:<7> String val:<out#1=all shape 100000000 pass> Size:<30> Result:<0>
?Debug : Apr 02 20:53:04 2864e140 AuthServer: fill_radius_data verify Size:<27>
?Debug : Apr 02 20:53:04 2864e140 AuthServer: fill_radius_data Vendor:<12341> Attr:<7> String val:<in#1=all shape 100000000 pass> Size:<29> Result:<0>
?Debug : Apr 02 20:53:04 2864e140 AuthServer: fill_radius_data verify Size:<27>
?Debug : Apr 02 20:53:04 2864e140 AuthServer: Calling fill radius attributes for NAS. Attr storage size <0>
Notice: Apr 02 20:53:04 2864e140 AuthServer: Login OK <test2> from NAS <10.1.255.250> CLID <> Calling-station <10.1.2.2>
?Debug : Apr 02 20:53:04 2864e140 AuthServer: Setting interim update interval from config
?Debug : Apr 02 20:53:04 2864e140 AuthServer: Auth reply: RPacket:
Код: Выделить всё
[] link L1-228
[L1-228] show auth
Configuration:
My authname :
Max-Logins : 0
Acct Update : 0
Limit In : 0
Limit Out : 0
Auth timeout : 40
ExtAuth script :
ExtAcct script :
Auth options
radius-auth enable
radius-acct enable
internal enable
ext-auth disable
ext-acct disable
system-auth disable
system-acct disable
pam-auth disable
pam-acct disable
acct-mandatory disable
Auth Data
Peer authname : test2
Interface name :
Interface descr.: ""
Interface group :
IP range : 172.16.9.45/32
IP pool :
DNS : 0.0.0.0 0.0.0.0
NBNS : 0.0.0.0 0.0.0.0
MTU : 0
Session-Timeout : 2592000
Idle-Timeout : 0
Acct-Update : 62
Routes :
IPFW rules :
IPFW pipes :
IPFW queues :
IPFW tables :
Traffic filters :
Traffic limits :
in#1 : 'all shape 2048000 pass'
out#1 : 'all shape 2048000 pass'
MS-Domain : (null)
MPPE Types : Not available
MPPE Policy : no encryption required
MPPE Keys : no
P.S. посоветовали перевести shape на rate-limit
с указанием burst по формуле:
normal burst = configured rate * 3 / 16
extended burst = 2 * normal burst
Но сначала хотелось бы добиться работы Турбокнопки.