FreeBSD 9.3-RELEASE + mpd

Вопросы и пожелания
Ответить
gekz
Сообщения: 169
Зарегистрирован: Пн май 17, 2010 7:30 am

FreeBSD 9.3-RELEASE + mpd

Сообщение gekz »

root@server:/ # /usr/abills/libexec/linkupdown up ng0 test 10.11.11.11 debug
test - Not exist or speed not defined

можете подсказать причину ошибки?
на 8.0 всё работает)
хочу просто разобраться.

Код: Выделить всё

root@server:/ # ipfw list
09970 skipto 10130 ip from table(14) to table(3) in recv ng*
09975 skipto 10135 ip from table(3) to table(15) out xmit ng*
09980 skipto 10120 ip from table(12) to table(2) in recv ng*
09985 skipto 10125 ip from table(2) to table(13) out xmit ng*
10000 netgraph tablearg ip from table(10) to any in recv ng*
10010 netgraph tablearg ip from any to table(11) out xmit ng*
10020 allow ip from table(9) to any in recv ng*
10025 allow ip from any to table(9) out xmit ng*
10120 netgraph tablearg ip from table(12) to any in recv ng*
10125 netgraph tablearg ip from any to table(13) out xmit ng*
10130 netgraph tablearg ip from table(14) to any in recv ng*
10135 netgraph tablearg ip from any to table(15) out xmit ng*
10220 allow ip from table(9) to table(2) in recv ng*
10225 allow ip from table(2) to table(9) out xmit ng*
10230 allow ip from table(9) to table(3) in recv ng*
10235 allow ip from table(3) to table(9) out xmit ng*

Код: Выделить всё

root@server:/ # ngctl list
There are 9 total nodes:
  Name: re0             Type: ether           ID: 00000001   Num hooks: 0
  Name: re1             Type: ether           ID: 00000002   Num hooks: 1
  Name: mpd707-lso      Type: socket          ID: 00000005   Num hooks: 0
  Name: mpd707-cso      Type: socket          ID: 00000006   Num hooks: 0
  Name: mpd707-eso      Type: socket          ID: 00000007   Num hooks: 0
  Name: <unnamed>       Type: socket          ID: 00000008   Num hooks: 1
  Name: <unnamed>       Type: pppoe           ID: 00000009   Num hooks: 2
  Name: ipfw            Type: ipfw            ID: 0000000a   Num hooks: 0
  Name: ngctl1188       Type: socket          ID: 0000000d   Num hooks: 0

~AsmodeuS~
Site Admin
Сообщения: 5746
Зарегистрирован: Пт янв 28, 2005 3:11 pm
Контактная информация:

Re: FreeBSD 9.3-RELEASE + mpd

Сообщение ~AsmodeuS~ »

скорость абоненту не присвоена

gekz
Сообщения: 169
Зарегистрирован: Пн май 17, 2010 7:30 am

Re: FreeBSD 9.3-RELEASE + mpd

Сообщение gekz »

точно
уже 3 дня ломаю голову, оказалось всё просто :)
а про интервалы то я и забыл :roll:

Код: Выделить всё

root@server:/ # /usr/abills/libexec/linkupdown up ng0 test 10.11.11.11 debug
Expresion:================================

END: =====================================
/sbin/ipfw -q table 10 delete 10.11.11.11
/sbin/ipfw -q table 11 delete 10.11.11.11
/sbin/ipfw -q table 10 add 10.11.11.11/32 1
/sbin/ipfw -q table 11 add 10.11.11.11/32 10001
/usr/sbin/ngctl -f- <<-EOF
mkpeer ipfw: car 1 upper
name ipfw:1 class0_test
connect class0_test: ipfw: lower 10001
msg class0_test: setconf { upstream={ cbs=211200 ebs=422400 cir=1126400 greenAction=1 yellowAction=1 redAction=2 mode=2 }  downstream={ cbs=211200 ebs=422400 cir=1126400 greenAction=1 yellowAction=1 redAction=2 mode=2 } }

Ответить