Jump to content
Калькуляторы

Juniper dynamic-profiles Juniper dynamic-profiles and user defined variables and pppoe

Может это боян, но все же ....

 

В логе при конекте абонента:

pppoed: Mis-configuration, user defined variables not allowed in client profile: PPPOE-TEST

 

Хочется получать от радиуса на имя фильтра на input и output а конкретно значения шейперов, как можно обойти это ? Может только юзая встроенные переменые джуноса ?

 

Model: mx5-t

Версия прошивки: Junos: 13.3R1.8

 

Вот такой конфиг динамического профайла:

 

show dynamic-profiles PPPOE-TEST

variables {

BW;

BURST;

input-filter equals "$BW";

output-filter equals "$BW";

POLICER equals "$BW";

}

interfaces {

pp0 {

unit "$junos-interface-unit" {

ppp-options {

chap;

}

pppoe-options {

underlying-interface "$junos-underlying-interface";

server;

}

keepalives interval 30;

family inet {

filter {

input "$input-filter" precedence 100;

output "$output-filter" precedence 100;

}

unnumbered-address lo0.0;

}

}

}

}

firewall {

family inet {

filter "$input-filter" {

interface-specific;

term 10 {

from {

service-filter-hit;

}

then accept;

}

term 20 {

then {

policer "$POLICER";

service-accounting;

service-filter-hit;

}

}

}

filter "$output-filter" {

interface-specific;

term 10 {

from {

service-filter-hit;

}

then accept;

}

term 20 {

then {

policer "$POLICER";

service-accounting;

service-filter-hit;

}

}

}

}

policer "$POLICER" {

logical-interface-policer;

if-exceeding {

bandwidth-limit "$BW";

burst-size-limit "$BURST";

}

then discard;

}

}

Edited by Star1609

Share this post


Link to post
Share on other sites

Я не понял, вы хотите динамически полисеры в системе заводить?

 

Да именнно так ! Динамически создавать полисеры для PPPOE

Edited by Star1609

Share this post


Link to post
Share on other sites

Да именнно так !

 

Я не могу однозначно сказать что так нельзя. Но механизмов для этого мы в свое время не нашли. Да и в брошюрке Day One: Dynamic Subscriber Management, в качестве примера, есть только статика и второй путь через CoS где можно только $junos-cos-shaping-rate использовать. Попробуйте в эту сторону посмотреть, там только иерархия сложнее становится. Поэтому статикой было проще и лучше.

Edited by DVM-Avgoor

Share this post


Link to post
Share on other sites

На форуме уже был похожий конфиг тут http://forum.nag.ru/forum/index.php?showtopic=79020&st=40&p=909822&hl=dynamic-profiles&fromsearch=1entry909822 то там непонятно каким образом svc-global-pppoe накатывается или он как отдельный профайл используется , на железке 11.4 прошшивка что тоже интересный момент

Share this post


Link to post
Share on other sites

Полисить можно через фильтр. Фильтр можно динамически подсовывать.

Мы как раз говорили о том чтобы динамически фильтр и полисер создавать при поднятии интерфейса, а подсовывать не хочется

Edited by Star1609

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.