Здравствуйте!Поставил сервер FreeBSD 6.3 на него MPD5 из package - получилось MPD version 5.0b1
на сервере стоит плата Cronyx TAU/PCI4e1 подключена к циске вышестоящей с потоком E1 G.703.
Работала связка прилично на Encapsulation HDLC (по netgraph) в течение длительного времени.
Решили перейти на Encapsulation PPP чтобы прокинуть два канала E1 в едином 4Мбитном.
Так как управлять из userland netgraph в режиме multilink PPP невозможно а C я не знаю
Поставил MPD5.
Вот конфиг:
#################################################################
#
# MPD configuration file
#
# This file defines the configuration for mpd: what the
# bundles are, what the links are in those bundles, how
# the interface should be configured, various PPP parameters,
# etc. It contains commands just as you would type them
# in at the console. Lines without padding are labels. Lines
# starting with a "#" are comments.
#
# $Id: mpd.conf.sample,v 1.41 2007/10/05 17:42:52 amotin Exp $
#
#################################################################
startup:
# configure the console
set console self 127.0.0.1 5005
set console user mpd dpm
set console open
# configure the web server
set web self X.X.X.1 5006
set web user mpd dpm
set web open
set netflow node netflow0
set netflow hook 2
default:
load sync
sync:
#
# Dedicated synchronous line using netgraph link.
#
create bundle static V
set iface route Y.Y.Y.105
# set ipcp disable
set ipcp ranges Y.Y.Y.106/30 Y.Y.Y.105/30
# set bundle enable round-robin
set iface enable netflow-in
set iface enable netflow-out
create link static L1 ng
set link action bundle V
set link max-redial 0
set link no chap pap
set ng node cp0:
set ng hook rawdata
# set link enable multilink
set link bandwidth 2000000
open
# create link static L2 ng
# set link action bundle V
# set link max-redial 0
# set link no chap pap
# set ng node cp1:
# set ng hook rawdata
# set link enable multilink
# set link bandwidth 2000000
# open
все поднялось - пошел трафик -никаких проблем не было. НО спустя часов 8 канал лег.
Я перезапустил MPD - канал поднялся - и опять начал работать
Вечером все повторилось опять часов через 6-8 но теперь я поставил лог
вот что в логе с момента падения:
Apr 16 22:19:26 gw1 mpd: [L1] LCP: rec'd Terminate Request #219 (Opened)
Apr 16 22:19:26 gw1 mpd: [L1] LCP: state change Opened --> Stopping
Apr 16 22:19:26 gw1 mpd: [L1] AUTH: Accounting data for user : 40641 seconds, 6516418206 octets in, 3260568836 octets out
Apr 16 22:19:26 gw1 mpd: [V] Bundle up: 0 links, total bandwidth 9600 bps
Apr 16 22:19:26 gw1 mpd: [V] IPCP: Close event
Apr 16 22:19:26 gw1 mpd: [V] IPCP: state change Opened --> Closing
Apr 16 22:19:26 gw1 mpd: [V] IPCP: SendTerminateReq #4
Apr 16 22:19:26 gw1 mpd: [V] error writing len 8 frame to bypass: Network is down
Apr 16 22:19:26 gw1 mpd: [V] IPCP: LayerDown
Apr 16 22:19:26 gw1 mpd: [V] IFACE: Down event
Apr 16 22:19:26 gw1 mpd: [V] IPCP: Down event
Apr 16 22:19:26 gw1 mpd: [V] IPCP: LayerFinish
Apr 16 22:19:26 gw1 mpd: [V] No NCPs left. Closing links...
Apr 16 22:19:26 gw1 mpd: [V] IPCP: state change Closing --> Initial
Apr 16 22:19:26 gw1 mpd: [L1] AUTH: Cleanup
Apr 16 22:19:26 gw1 mpd: [L1] LCP: SendTerminateAck #2
Apr 16 22:19:26 gw1 mpd: [L1] LCP: LayerDown
Apr 16 22:19:26 gw1 mpd: [L1] AUTH: Accounting-Thread started
Apr 16 22:19:26 gw1 mpd: [L1] AUTH: Accounting-Thread finished normally
Apr 16 22:19:28 gw1 mpd: [L1] LCP: state change Stopping --> Stopped
Apr 16 22:19:28 gw1 mpd: [L1] LCP: LayerFinish
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 1
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
Apr 16 22:19:28 gw1 mpd: [L1] LCP: state change Stopped --> Starting
Apr 16 22:19:28 gw1 mpd: [L1] LCP: LayerStart
Apr 16 22:19:28 gw1 mpd: [L1] link: UP event
Apr 16 22:19:28 gw1 mpd: [L1] link: origination is unknown
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Up event
Apr 16 22:19:28 gw1 mpd: [L1] LCP: state change Starting --> Req-Sent
Apr 16 22:19:28 gw1 mpd: [L1] LCP: SendConfigReq #3
Apr 16 22:19:28 gw1 mpd: ACFCOMP
Apr 16 22:19:28 gw1 mpd: PROTOCOMP
Apr 16 22:19:28 gw1 mpd: MRU 1500
Apr 16 22:19:28 gw1 mpd: MAGICNUM 4f4e6858
Apr 16 22:19:28 gw1 mpd: MP MRRU 1600
Apr 16 22:19:28 gw1 mpd: ENDPOINTDISC [802.1] 00 04 ac d6 23 da
Apr 16 22:19:28 gw1 mpd: [L1] NG: can't connect "[1d0beaf]:"->"left" and "cp0:"->"rawdata": File exists
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 2
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
Apr 16 22:19:28 gw1 mpd: [L1] LCP: state change Req-Sent --> Starting
Apr 16 22:19:28 gw1 mpd: [L1] NG: can't connect "[1d0beaf]:"->"left" and "cp0:"->"rawdata": File exists
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 3
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
Apr 16 22:19:28 gw1 mpd: [L1] NG: can't connect "[1d0beaf]:"->"left" and "cp0:"->"rawdata": File exists
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 4
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
Apr 16 22:19:28 gw1 mpd: [L1] NG: can't connect "[1d0beaf]:"->"left" and "cp0:"->"rawdata": File exists
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 5
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
Apr 16 22:19:28 gw1 mpd: [L1] NG: can't connect "[1d0beaf]:"->"left" and "cp0:"->"rawdata": File exists
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 6
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
Apr 16 22:19:28 gw1 mpd: [L1] NG: can't connect "[1d0beaf]:"->"left" and "cp0:"->"rawdata": File exists
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 7
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
Apr 16 22:19:28 gw1 mpd: [L1] NG: can't connect "[1d0beaf]:"->"left" and "cp0:"->"rawdata": File exists
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 8
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
Apr 16 22:19:28 gw1 mpd: [L1] NG: can't connect "[1d0beaf]:"->"left" and "cp0:"->"rawdata": File exists
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 9
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
Apr 16 22:19:28 gw1 mpd: [L1] NG: can't connect "[1d0beaf]:"->"left" and "cp0:"->"rawdata": File exists
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 10
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
Apr 16 22:19:28 gw1 mpd: [L1] NG: can't connect "[1d0beaf]:"->"left" and "cp0:"->"rawdata": File exists
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 11
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
Apr 16 22:19:28 gw1 mpd: [L1] NG: can't connect "[1d0beaf]:"->"left" and "cp0:"->"rawdata": File exists
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 12
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
Apr 16 22:19:28 gw1 mpd: [L1] NG: can't connect "[1d0beaf]:"->"left" and "cp0:"->"rawdata": File exists
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 13
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
Apr 16 22:19:28 gw1 mpd: [L1] NG: can't connect "[1d0beaf]:"->"left" and "cp0:"->"rawdata": File exists
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 14
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
Apr 16 22:19:28 gw1 mpd: [L1] NG: can't connect "[1d0beaf]:"->"left" and "cp0:"->"rawdata": File exists
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 15
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
Apr 16 22:19:28 gw1 mpd: [L1] NG: can't connect "[1d0beaf]:"->"left" and "cp0:"->"rawdata": File exists
Apr 16 22:19:28 gw1 mpd: [L1] link: DOWN event
Apr 16 22:19:28 gw1 mpd: [L1] link: reconnection attempt 16
Apr 16 22:19:28 gw1 mpd: [L1] LCP: Down event
и командой ./mpd5 restart не перезапускается - только когда даешь ./mpd5 stop, ./mpd5 start - он заново поднимается и фурычит гдето опять часов 6-8
Подскажите где рыть по MPD5 очень мало информации в сети...
Вообще буду очень признателен если ктото подскажет как мне написать на C код чтобы послать сообщения ноде netgraph для управления параметрами PPP-ноды... Не хочу использовать MPD -он там такое на делал что я думаю - он сам кривой.