The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



Индекс форумов
Составление сообщения

Исходное сообщение
"PPPoE:Проблема с несколькими подключениями (mpd)"
Отправлено Incogn1to, 16-Авг-07 22:24 
Провайдер изменил условия подключения и вместо Static теперь 4 подключения PPPoE (4 разных логина/пассворда). Т.к. локальная сеть питается инетом через меня, то надо держать все 4.
По одному поднимаю без проблем (уверен, что можно подключать несколько одновременно).
В процессе экспериментов поднять 2 соединения не получилось
#uname -a
FreeBSD cactus.sunglade 6.2-RELEASE FreeBSD 6.2-RELEASE #0: ...

#mpd4 -v
Version 4.2.2 (root@cactus.sunglade 14:34 14-Aug-2007)

-=mpd.conf=-
default:
    load zone1
    load zone2
zone1:
    new -i ng0 CTK1 zone1
    set auth authname xxxxx@city
    load PPPoE_standart
zone2:
    new -i ng1 CTK2 zone2
    set auth authname xxxxx@data
    load PPPoE_standart
PPPoE_standart:
#    set iface route default
    set iface disable on-demand
    set iface idle 0
    set ipcp yes vjcomp
    set ipcp ranges 0.0.0.0/0 0.0.0.0/0
    set bundle disable multilink
    set auth password <пароль>
    set link yes acfcomp protocomp
    set link disable pap chap
    set link accept chap
    set link keep-alive 10 60
    open
-=mpd.conf=-

-=mpd.links=-
zone1:
    set phys type pppoe
    set pppoe iface dc0
    set pppoe service "whatever"
    set pppoe disable incoming
    set pppoe enable originate
zone2:
    set phys type pppoe
    set pppoe iface dc0
    set pppoe service "whatever"
    set pppoe disable incoming
    set pppoe enable originate
-=mpd.links=-

После запуска создается ng0 и ng1
#ifconfig
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
        ether 00:11:95:cb:e5:b8
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        ether 00:02:44:bf:c2:2b
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1492
        inet 87.103.195.43 --> 87.103.192.1 netmask 0xffffffff
ng1: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1492
#
только у ng1 IP отсутствует.

судя по вебморде mpd - все хорошо (ng0 и ng1 неотличаются и во вкладках тоже)
Iface    IPCP  IPV6CP  CCP     ECP     Bund Link  LCP    User  Device  Peer  
ng0 Up  Opened Initial Initial Initial CTK1 zone1 Opened      pppoe UP 000000000000  => 000000000000 [Open][Close]
ng1 Up  Opened Initial Initial Initial CTK2 zone2 Opened      pppoe UP 000000000000  => 000000000000 [Open][Close]

вот что в логах нагажено
Aug 16 15:10:14 cactus mpd: process 5697 started, version 4.2.2 (root@cactus.sunglade 14:34 14-Aug-2007)
Aug 16 15:10:14 cactus mpd: CONSOLE: listening on 0.0.0.0 5005
Aug 16 15:10:14 cactus mpd: web: listening on 0.0.0.0 5006
Aug 16 15:10:14 cactus mpd: [CTK1] using interface ng0
Aug 16 15:10:14 cactus mpd: [CTK2] using interface ng1
Aug 16 15:10:14 cactus mpd: [zone1] link: OPEN event
Aug 16 15:10:14 cactus mpd: [zone1] LCP: Open event
Aug 16 15:10:14 cactus mpd: [zone1] LCP: state change Initial --> Starting
Aug 16 15:10:14 cactus mpd: [zone1] LCP: LayerStart
Aug 16 15:10:14 cactus mpd: [zone2] link: OPEN event
Aug 16 15:10:14 cactus mpd: [zone2] LCP: Open event
Aug 16 15:10:14 cactus mpd: [zone2] LCP: state change Initial --> Starting
Aug 16 15:10:14 cactus mpd: [zone2] LCP: LayerStart
Aug 16 15:10:14 cactus mpd: [zone1] PPPoE: Connecting to 'whatever'
Aug 16 15:10:14 cactus mpd: [zone2] PPPoE: Connecting to 'whatever'
Aug 16 15:10:14 cactus mpd: PPPoE: rec'd ACNAME "BAR-BBAR1"
Aug 16 15:10:14 cactus mpd: [zone1] PPPoE: connection successful
Aug 16 15:10:14 cactus mpd: [zone1] link: UP event
Aug 16 15:10:14 cactus mpd: [zone1] link: origination is local
Aug 16 15:10:14 cactus mpd: [zone1] LCP: Up event
Aug 16 15:10:14 cactus mpd: [zone1] LCP: state change Starting --> Req-Sent
Aug 16 15:10:14 cactus mpd: [zone1] LCP: SendConfigReq #1
Aug 16 15:10:14 cactus mpd:  PROTOCOMP
Aug 16 15:10:14 cactus mpd:  MRU 1492
Aug 16 15:10:14 cactus mpd:  MAGICNUM a435e6c0
Aug 16 15:10:14 cactus mpd: [zone1] LCP: rec'd Configure Request #239 (Req-Sent)
Aug 16 15:10:14 cactus mpd:  MRU 1492
Aug 16 15:10:14 cactus mpd:  AUTHPROTO PAP
Aug 16 15:10:14 cactus mpd:  MAGICNUM 12338c84
Aug 16 15:10:14 cactus mpd: [zone1] LCP: SendConfigAck #239
Aug 16 15:10:14 cactus mpd:  MRU 1492
Aug 16 15:10:14 cactus mpd:  AUTHPROTO PAP
Aug 16 15:10:14 cactus mpd:  MAGICNUM 12338c84
Aug 16 15:10:14 cactus mpd: [zone1] LCP: state change Req-Sent --> Ack-Sent
Aug 16 15:10:14 cactus mpd: [zone1] LCP: rec'd Configure Ack #1 (Ack-Sent)
Aug 16 15:10:14 cactus mpd:  PROTOCOMP
Aug 16 15:10:14 cactus mpd:  MRU 1492
Aug 16 15:10:14 cactus mpd:  MAGICNUM a435e6c0
Aug 16 15:10:14 cactus mpd: [zone1] LCP: state change Ack-Sent --> Opened
Aug 16 15:10:14 cactus mpd: [zone1] LCP: auth: peer wants PAP, I want nothing
Aug 16 15:10:14 cactus mpd: [zone1] PAP: using authname "xxxxx@city"
Aug 16 15:10:14 cactus mpd: [zone1] PAP: sending REQUEST len:20
Aug 16 15:10:14 cactus mpd: [zone1] LCP: LayerUp
Aug 16 15:10:15 cactus mpd: [zone1] PAP: rec'd ACK #1
Aug 16 15:10:15 cactus mpd: [zone1] LCP: authorization successful
Aug 16 15:10:15 cactus mpd: [CTK1] Bundle up: 1 link, total bandwidth 64000 bps
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: Open event
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: state change Initial --> Starting
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: LayerStart
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: Up event
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: state change Starting --> Req-Sent
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: SendConfigReq #1
Aug 16 15:10:15 cactus mpd:  IPADDR 0.0.0.0
Aug 16 15:10:15 cactus mpd:  COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: rec'd Configure Reject #1 (Req-Sent)
Aug 16 15:10:15 cactus mpd:  COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: SendConfigReq #2
Aug 16 15:10:15 cactus mpd:  IPADDR 0.0.0.0
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: rec'd Configure Nak #2 (Req-Sent)
Aug 16 15:10:15 cactus mpd:  IPADDR 87.103.195.43
Aug 16 15:10:15 cactus mpd:    87.103.195.43 is OK
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: SendConfigReq #3
Aug 16 15:10:15 cactus mpd:  IPADDR 87.103.195.43
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: rec'd Configure Ack #3 (Req-Sent)
Aug 16 15:10:15 cactus mpd:  IPADDR 87.103.195.43
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: state change Req-Sent --> Ack-Rcvd
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: rec'd Configure Request #65 (Ack-Rcvd)
Aug 16 15:10:15 cactus mpd:  IPADDR 87.103.192.1
Aug 16 15:10:15 cactus mpd:    87.103.192.1 is OK
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: SendConfigAck #65
Aug 16 15:10:15 cactus mpd:  IPADDR 87.103.192.1
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: state change Ack-Rcvd --> Opened
Aug 16 15:10:15 cactus mpd: [CTK1] IPCP: LayerUp
Aug 16 15:10:15 cactus mpd:   87.103.195.43 -> 87.103.192.1
Aug 16 15:10:15 cactus mpd: [CTK1] IFACE: Up event
Aug 16 15:10:16 cactus mpd: PPPoE: rec'd ACNAME "BAR-BBAR1"
Aug 16 15:10:16 cactus mpd: [zone2] PPPoE: connection successful
Aug 16 15:10:16 cactus mpd: [zone2] link: UP event
Aug 16 15:10:16 cactus mpd: [zone2] link: origination is local
Aug 16 15:10:16 cactus mpd: [zone2] LCP: Up event
Aug 16 15:10:16 cactus mpd: [zone2] LCP: state change Starting --> Req-Sent
Aug 16 15:10:16 cactus mpd: [zone2] LCP: SendConfigReq #1
Aug 16 15:10:16 cactus mpd:  PROTOCOMP
Aug 16 15:10:16 cactus mpd:  MRU 1492
Aug 16 15:10:16 cactus mpd:  MAGICNUM 83662e8d
Aug 16 15:10:16 cactus mpd: [zone2] LCP: rec'd Configure Request #85 (Req-Sent)
Aug 16 15:10:16 cactus mpd:  MRU 1492
Aug 16 15:10:16 cactus mpd:  AUTHPROTO PAP
Aug 16 15:10:16 cactus mpd:  MAGICNUM 6088b0b3
Aug 16 15:10:16 cactus mpd: [zone2] LCP: SendConfigAck #85
Aug 16 15:10:16 cactus mpd:  MRU 1492
Aug 16 15:10:16 cactus mpd:  AUTHPROTO PAP
Aug 16 15:10:16 cactus mpd:  MAGICNUM 6088b0b3
Aug 16 15:10:16 cactus mpd: [zone2] LCP: state change Req-Sent --> Ack-Sent
Aug 16 15:10:16 cactus mpd: [zone2] LCP: rec'd Configure Ack #1 (Ack-Sent)
Aug 16 15:10:16 cactus mpd:  PROTOCOMP
Aug 16 15:10:16 cactus mpd:  MRU 1492
Aug 16 15:10:16 cactus mpd:  MAGICNUM 83662e8d
Aug 16 15:10:16 cactus mpd: [zone2] LCP: state change Ack-Sent --> Opened
Aug 16 15:10:16 cactus mpd: [zone2] LCP: auth: peer wants PAP, I want nothing
Aug 16 15:10:16 cactus mpd: [zone2] PAP: using authname "xxxxx@data"
Aug 16 15:10:16 cactus mpd: [zone2] PAP: sending REQUEST len:20
Aug 16 15:10:16 cactus mpd: [zone2] LCP: LayerUp
Aug 16 15:10:17 cactus mpd: [zone2] PAP: rec'd ACK #1
Aug 16 15:10:17 cactus mpd: [zone2] LCP: authorization successful
Aug 16 15:10:17 cactus mpd: [CTK2] Bundle up: 1 link, total bandwidth 64000 bps
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: Open event
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: state change Initial --> Starting
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: LayerStart
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: Up event
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: state change Starting --> Req-Sent
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: SendConfigReq #1
Aug 16 15:10:17 cactus mpd:  IPADDR 0.0.0.0
Aug 16 15:10:17 cactus mpd:  COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: rec'd Configure Reject #1 (Req-Sent)
Aug 16 15:10:17 cactus mpd:  COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: SendConfigReq #2
Aug 16 15:10:17 cactus mpd:  IPADDR 0.0.0.0
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: rec'd Configure Nak #2 (Req-Sent)
Aug 16 15:10:17 cactus mpd:  IPADDR 87.103.195.54
Aug 16 15:10:17 cactus mpd:    87.103.195.54 is OK
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: SendConfigReq #3
Aug 16 15:10:17 cactus mpd:  IPADDR 87.103.195.54
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: rec'd Configure Ack #3 (Req-Sent)
Aug 16 15:10:17 cactus mpd:  IPADDR 87.103.195.54
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: state change Req-Sent --> Ack-Rcvd
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: rec'd Configure Request #201 (Ack-Rcvd)
Aug 16 15:10:17 cactus mpd:  IPADDR 87.103.192.1
Aug 16 15:10:17 cactus mpd:    87.103.192.1 is OK
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: SendConfigAck #201
Aug 16 15:10:17 cactus mpd:  IPADDR 87.103.192.1
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: state change Ack-Rcvd --> Opened
Aug 16 15:10:17 cactus mpd: [CTK2] IPCP: LayerUp
Aug 16 15:10:17 cactus mpd:   87.103.195.54 -> 87.103.192.1
Aug 16 15:10:17 cactus mpd: [CTK2] IFACE: Adding IPv4 address to ng1 failed: File exists
Aug 16 15:10:17 cactus mpd: [CTK2] IFACE: Up event

Курить маны уже не помогает, а в инете ничего найти не удалось.
Пользователи уже мозк склевали - инет, оказывается, хороший наркотик ;)

 

Ваше сообщение
Имя*:
EMail:
Для отправки новых сообщений в текущей нити на email укажите знак ! перед адресом, например, !user@host.ru (!! - не показывать email).
Более тонкая настройка отправки ответов производится в профиле зарегистрированного участника форума.
Заголовок*:
Сообщение*:
 
При общении не допускается: неуважительное отношение к собеседнику, хамство, унизительное обращение, ненормативная лексика, переход на личности, агрессивное поведение, обесценивание собеседника, провоцирование флейма голословными и заведомо ложными заявлениями. Не отвечайте на сообщения, явно нарушающие правила - удаляются не только сами нарушения, но и все ответы на них. Лог модерирования.



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру