mpd5 Adding IPv4 address to ng0 failed

Настройка сетевых служб, маршрутизации, фаерволлов. Проблемы с сетевым оборудованием.
Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Аватара пользователя
baton4eg
сержант
Сообщения: 274
Зарегистрирован: 2009-10-11 14:36:35
Контактная информация:

mpd5 Adding IPv4 address to ng0 failed

Непрочитанное сообщение baton4eg » 2010-04-29 18:08:29

Добрый вечер, внезапно упал mpd и не может с провайдером договорится
mpd 5.5
mpd.conf:

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

startup:
        # configure mpd users
        set user foo bar admin
        set user foo1 bar1
        # configure the console
        set console self 127.0.0.1 5005
        set console open
        # configure the web server
        set web self 0.0.0.0 5006
        set web open
#       set netflow peer 10.20.254.5 8818
#       set netflow peer timeouts 60 120
#
# Default configuration is "dialup"

default:
        load pppoe_client

pppoe_client:
#
# PPPoE client: only outgoing calls, auto reconnect,
# ipcp-negotiated address, one-sided authentication,
# default route points on ISP's end
#

        create bundle static B1
        set iface route default
#        set iface up-script "/usr/local/etc/mpd5/up.sh"
#        set iface enable netflow-in netflow-out
        set iface enable tcpmssfix
        set ipcp ranges 0.0.0.0/0 0.0.0.0/0
        
        create link static L1 pppoe
        set link action bundle B1
        set auth authname blabla
        set auth password blabla
        set link max-redial 0
        set link mtu 1492
        set link keep-alive 10 60
        set pppoe iface bge0
        set pppoe service ""
        open
Лог /var/log/mpd.log

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

Apr 29 19:01:11 router mpd: PPPoE: rec'd ACNAME "NAS1"
Apr 29 19:01:11 router mpd: [L1] PPPoE: connection successful
Apr 29 19:01:11 router mpd: [L1] Link: UP event
Apr 29 19:01:11 router mpd: [L1] LCP: Up event
Apr 29 19:01:11 router mpd: [L1] LCP: state change Starting --> Req-Sent
Apr 29 19:01:11 router mpd: [L1] LCP: SendConfigReq #1
Apr 29 19:01:11 router mpd: [L1]   PROTOCOMP
Apr 29 19:01:11 router mpd: [L1]   MRU 1492
Apr 29 19:01:11 router mpd: [L1]   MAGICNUM fc8a0dde
Apr 29 19:01:11 router mpd: [L1] LCP: rec'd Configure Request #1 (Req-Sent)
Apr 29 19:01:11 router mpd: [L1]   MRU 1492
Apr 29 19:01:11 router mpd: [L1]   AUTHPROTO CHAP MD5
Apr 29 19:01:11 router mpd: [L1]   MAGICNUM 8a2b7a88
Apr 29 19:01:11 router mpd: [L1] LCP: SendConfigAck #1
Apr 29 19:01:11 router mpd: [L1]   MRU 1492
Apr 29 19:01:11 router mpd: [L1]   AUTHPROTO CHAP MD5
Apr 29 19:01:11 router mpd: [L1]   MAGICNUM 8a2b7a88
Apr 29 19:01:11 router mpd: [L1] LCP: state change Req-Sent --> Ack-Sent
Apr 29 19:01:11 router mpd: [L1] LCP: rec'd Configure Ack #1 (Ack-Sent)
Apr 29 19:01:11 router mpd: [L1]   PROTOCOMP
Apr 29 19:01:11 router mpd: [L1]   MRU 1492
Apr 29 19:01:11 router mpd: [L1]   MAGICNUM fc8a0dde
Apr 29 19:01:11 router mpd: [L1] LCP: state change Ack-Sent --> Opened
Apr 29 19:01:11 router mpd: [L1] LCP: auth: peer wants CHAP, I want nothing
Apr 29 19:01:11 router mpd: [L1] LCP: LayerUp
Apr 29 19:01:11 router mpd: [L1] CHAP: rec'd CHALLENGE #1 len: 35
Apr 29 19:01:11 router mpd: [L1]   Name: "sv-yar-bras-r1"
Apr 29 19:01:11 router mpd: [L1] CHAP: Using authname "blabla"
Apr 29 19:01:11 router mpd: [L1] CHAP: sending RESPONSE #1 len: 31
Apr 29 19:01:11 router mpd: [L1] CHAP: rec'd SUCCESS #1 len: 4
Apr 29 19:01:11 router mpd: [L1] LCP: authorization successful
Apr 29 19:01:11 router mpd: [L1] Link: Matched action 'bundle "B1" ""'
Apr 29 19:01:11 router mpd: [L1] Link: Join bundle "B1"
Apr 29 19:01:11 router mpd: [B1] Bundle: Status update: up 1 link, total bandwidth 64000 bps
Apr 29 19:01:11 router mpd: [B1] IPCP: Open event
Apr 29 19:01:11 router mpd: [B1] IPCP: state change Initial --> Starting
Apr 29 19:01:11 router mpd: [B1] IPCP: LayerStart
Apr 29 19:01:11 router mpd: [B1] IPCP: Up event
Apr 29 19:01:11 router mpd: [B1] IPCP: state change Starting --> Req-Sent
Apr 29 19:01:11 router mpd: [B1] IPCP: SendConfigReq #1
Apr 29 19:01:11 router mpd: [B1]   IPADDR 0.0.0.0
Apr 29 19:01:11 router mpd: [B1]   COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Apr 29 19:01:11 router mpd: [B1] IPCP: rec'd Configure Reject #1 (Req-Sent)
Apr 29 19:01:11 router mpd: [B1]   COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Apr 29 19:01:11 router mpd: [B1] IPCP: SendConfigReq #2
Apr 29 19:01:11 router mpd: [B1]   IPADDR 0.0.0.0
Apr 29 19:01:11 router mpd: [B1] IPCP: rec'd Configure Nak #2 (Req-Sent)
Apr 29 19:01:11 router mpd: [B1]   IPADDR 188.168.48.53
Apr 29 19:01:11 router mpd: [B1]     188.168.48.53 is OK
Apr 29 19:01:11 router mpd: [B1] IPCP: SendConfigReq #3
Apr 29 19:01:11 router mpd: [B1]   IPADDR 188.168.48.53
Apr 29 19:01:11 router mpd: [B1] IPCP: rec'd Configure Ack #3 (Req-Sent)
Apr 29 19:01:11 router mpd: [B1]   IPADDR 188.168.48.53
Apr 29 19:01:11 router mpd: [B1] IPCP: state change Req-Sent --> Ack-Rcvd
Apr 29 19:01:13 router mpd: [B1] IPCP: state change Ack-Rcvd --> Req-Sent
Apr 29 19:01:13 router mpd: [B1] IPCP: SendConfigReq #4
Apr 29 19:01:13 router mpd: [B1]   IPADDR 188.168.48.53
Apr 29 19:01:13 router mpd: [B1] IPCP: rec'd Configure Ack #4 (Req-Sent)
Apr 29 19:01:13 router mpd: [B1]   IPADDR 188.168.48.53
Apr 29 19:01:13 router mpd: [B1] IPCP: state change Req-Sent --> Ack-Rcvd
Apr 29 19:01:14 router mpd: [B1] IPCP: rec'd Configure Request #2 (Ack-Rcvd)
Apr 29 19:01:14 router mpd: [B1]   IPADDR 0.0.0.0
Apr 29 19:01:14 router mpd: [B1]     no IP address available for peer!
Apr 29 19:01:14 router mpd: [B1]     NAKing with 0.0.0.0
Apr 29 19:01:14 router mpd: [B1] IPCP: SendConfigNak #2
Apr 29 19:01:14 router mpd: [B1]   IPADDR 0.0.0.0
Apr 29 19:01:14 router mpd: [B1] IPCP: rec'd Configure Request #3 (Ack-Rcvd)
Apr 29 19:01:14 router mpd: [B1] IPCP: SendConfigAck #3
Apr 29 19:01:14 router mpd: [B1] IPCP: state change Ack-Rcvd --> Opened
Apr 29 19:01:14 router mpd: [B1] IPCP: LayerUp
Apr 29 19:01:14 router mpd: [B1]   188.168.48.53 -> 0.0.0.0
Apr 29 19:01:14 router mpd: [B1] IFACE: Adding IPv4 address to ng0 failed: Destination address required
Apr 29 19:01:14 router mpd: [B1] IFACE: IfaceChangeAddr() error, closing IPCP
Apr 29 19:01:14 router mpd: [B1] IPCP: parameter negotiation failed
Apr 29 19:01:14 router mpd: [B1] IPCP: state change Opened --> Stopping
Apr 29 19:01:14 router mpd: [B1] IPCP: SendTerminateReq #5
Apr 29 19:01:14 router mpd: [B1] IPCP: LayerDown
Apr 29 19:01:14 router mpd: [B1] IFACE: Removing IPv4 address from ng0 failed: Can't assign requested address
Apr 29 19:01:14 router mpd: [B1] IPCP: rec'd Terminate Ack #5 (Stopping)
Apr 29 19:01:14 router mpd: [B1] IPCP: state change Stopping --> Stopped
Apr 29 19:01:14 router mpd: [B1] IPCP: LayerFinish
Apr 29 19:01:14 router mpd: [B1] Bundle: No NCPs left. Closing links...
Apr 29 19:01:14 router mpd: [B1] Bundle: closing link "L1"...
Apr 29 19:01:14 router mpd: [L1] Link: CLOSE event
Apr 29 19:01:14 router mpd: [L1] LCP: Close event
Apr 29 19:01:14 router mpd: [L1] LCP: state change Opened --> Closing
Apr 29 19:01:14 router mpd: [L1] Link: Leave bundle "B1"
Apr 29 19:01:14 router mpd: [B1] Bundle: Status update: up 0 links, total bandwidth 9600 bps
Apr 29 19:01:14 router mpd: [B1] IPCP: Close event
Apr 29 19:01:14 router mpd: [B1] IPCP: state change Stopped --> Closed
Apr 29 19:01:14 router mpd: [B1] IPCP: Down event
Apr 29 19:01:14 router mpd: [B1] IPCP: state change Closed --> Initial
Apr 29 19:01:14 router mpd: [L1] LCP: SendTerminateReq #2
Apr 29 19:01:14 router mpd: [L1] LCP: LayerDown
Apr 29 19:01:14 router mpd: [L1] LCP: rec'd Terminate Ack #2 (Closing)
Apr 29 19:01:14 router mpd: [L1] LCP: state change Closing --> Closed
Apr 29 19:01:14 router mpd: [L1] LCP: LayerFinish
Apr 29 19:01:14 router mpd: [L1] Link: DOWN event
Apr 29 19:01:14 router mpd: [L1] LCP: Down event
Apr 29 19:01:14 router mpd: [L1] LCP: state change Closed --> Initial
ifconfig ng0

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

ng0: flags=8890<POINTOPOINT,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1500
Смущает 188.168.48.53 -> 0.0.0.0
Звонил провайдеру, говорит перезапустите подключение, рестартю mpd, а толку нету =(
у меня этот провайдер в setfib1

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

# many routing
setfib1_enable="YES"
setfib1_defaultroute="217.150.42.97"
"Все говорят, что у меня /dev/hands криво и я всё делаю через /dev/ass. А у меня этих файлов вообще нет!" (c)
"Я ем руками, она вилкой и ножом, я бью вилкой и ножом, она руками" (с)

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2460 рублей (8 CPU, 8Gb RAM, 2x500Gb HDD, RAID 3ware 9750):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Al
ст. прапорщик
Сообщения: 501
Зарегистрирован: 2007-10-18 13:42:48
Откуда: Тверь
Контактная информация:

Re: mpd5 Adding IPv4 address to ng0 failed

Непрочитанное сообщение Al » 2010-04-30 7:26:57

Все правильно. Косяк тут.

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

Apr 29 19:01:14 router mpd: [B1]   188.168.48.53 -> 0.0.0.0
Apr 29 19:01:14 router mpd: [B1] IFACE: Adding IPv4 address to ng0 failed: Destination address required
Конфиги не трогали и перестало работать?

Аватара пользователя
baton4eg
сержант
Сообщения: 274
Зарегистрирован: 2009-10-11 14:36:35
Контактная информация:

(Решено) Re: mpd5 Adding IPv4 address to ng0 failed

Непрочитанное сообщение baton4eg » 2010-04-30 9:56:18

конфиги не трогал, провайдеру ещё раз позвонил, выяснилось что у них проблема, а не у меня. В первом звонке мне сказали что у меня, я что только не делал, рассылку всю пролистал, даунгрейд до 5.4 сделал. В результате сегодня всё заработало, х3 что там провайдер у себя подправил.
Тему можно закрывать
"Все говорят, что у меня /dev/hands криво и я всё делаю через /dev/ass. А у меня этих файлов вообще нет!" (c)
"Я ем руками, она вилкой и ножом, я бью вилкой и ножом, она руками" (с)