рвется ppp через bluetooth

Обсуждения, связанные с сетями, сетевыми и веб-ориентированными сервисами, такими как Apache, BIND, Sendmail и т.д.

рвется ppp через bluetooth

Непрочитанное сообщение ыть » 07 янв 2011, 16:44

помогите с сабжем
на опеннете вот обрисовал
Помогите, плз, настроить диалап через телефон по синему зубу
оба девайса "спарились"

далее, стартуем rfcomm_pppd -a MPx220 -c -C dun -l tele2
и наблюдаем такую трагедию:

ппп-тунель рвется с такой ошибкой
Jan 6 23:31:42 kaktus kernel: tun0: link state changed to UP
Jan 6 23:31:46 kaktus ppp[4151]: tun0: Warning: Sending empty PAP authname!
Jan 6 23:31:47 kaktus ppp[4151]: tun0: Warning: iface add: ioctl(SIOCAIFADDR, 90.143.58.57 -> 90.143.58.57): File exists
Jan 6 23:31:47 kaktus kernel: ifa_add_loopback_route: insertion failed
Jan 6 23:31:47 kaktus ppp[4151]: tun0: Error: ipcp_InterfaceUp: unable to set ip address

лог "чата" такой
Jan 6 23:31:42 kaktus ppp[4151]: Phase: Using interface: tun0
Jan 6 23:31:42 kaktus ppp[4151]: Phase: deflink: Created in closed state
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE)
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Command: default: enable force-scripts
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Command: default: enable dns
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Command: tele2: set authname
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Command: tele2: set authkey
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Command: tele2: set phone *99#
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Command: tele2: set dial ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK AT+CGDCONT=1,\"IP\",\"internet.tele2.ru\" OK \dATDT\T TIMEOUT 40 CONNECT
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Command: tele2: disable acfcomp protocomp vjcomp deflate pred1 pap chap mppe
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Command: tele2: set mtu 576
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Command: tele2: set login
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Command: tele2: set timeout 100
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Command: tele2: enable dns
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Command: tele2: resolv rewrite
Jan 6 23:31:42 kaktus ppp[4151]: tun0: IPCP: Primary nameserver set to 212.247.152.26
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Command: tele2: set ifaddr 0 0 255.255.255.255
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Command: tele2: add default HISADDR
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Phase: PPP Started (direct mode).
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Phase: bundle: Establish
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Phase: deflink: closed -> opening
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Phase: deflink: Connected!
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Phase: deflink: opening -> dial
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Chat: Phone: *99#
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Chat: deflink: Dial attempt 1 of 1
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Chat: Send: AT^M
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Chat: Expect(5): OK
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Chat: Received: AT^M^M
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Chat: Received: OK^M
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Chat: Send: ATE1Q0^M
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Chat: Expect(5): OK
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Chat: Received: ATE1Q0^M^M
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Chat: Received: OK^M
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Chat: Send: AT+CGDCONT=1,"IP","internet.tele2.ru"^M
Jan 6 23:31:42 kaktus ppp[4151]: tun0: Chat: Expect(5): OK
Jan 6 23:31:43 kaktus ppp[4151]: tun0: Chat: Received: AT+CGDCONT=1,"IP","internet.tele2.ru"^M^M
Jan 6 23:31:43 kaktus ppp[4151]: tun0: Chat: Received: OK^M
Jan 6 23:31:43 kaktus ppp[4151]: tun0: Chat: Send: ATDT*99#^M
Jan 6 23:31:45 kaktus ppp[4151]: tun0: Chat: Expect(40): CONNECT
Jan 6 23:31:45 kaktus ppp[4151]: tun0: Chat: Received: ATDT*99#^M^M
Jan 6 23:31:45 kaktus ppp[4151]: tun0: Chat: Received: CONNECT^M
Jan 6 23:31:45 kaktus ppp[4151]: tun0: Phase: deflink: dial -> carrier
Jan 6 23:31:45 kaktus ppp[4151]: tun0: Phase: deflink: carrier -> login
Jan 6 23:31:45 kaktus ppp[4151]: tun0: Phase: deflink: login -> lcp
Jan 6 23:31:45 kaktus ppp[4151]: tun0: LCP: FSM: Using "deflink" as a transport
Jan 6 23:31:45 kaktus ppp[4151]: tun0: LCP: deflink: State change Initial --> Closed
Jan 6 23:31:45 kaktus ppp[4151]: tun0: LCP: deflink: State change Closed --> Stopped
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: LayerStart
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: ACCMAP[6] 0x00000000
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: MRU[4] 1500
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: MAGICNUM[6] 0x22c66da3
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: State change Stopped --> Req-Sent
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: RecvConfigReq(57) state = Req-Sent
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: AUTHPROTO[4] 0xc023 (PAP)
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: PROTOCOMP[2]
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: ACFCOMP[2]
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: SendConfigAck(57) state = Req-Sent
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: AUTHPROTO[4] 0xc023 (PAP)
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: PROTOCOMP[2]
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: ACFCOMP[2]
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: State change Req-Sent --> Ack-Sent
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: RecvConfigRej(1) state = Ack-Sent
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: SendIdent(0) state = Ack-Sent
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: MAGICNUM 22c66da3
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: TEXT user-ppp 3.4.2 (built COMPILATIONDATE)
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: MAGICNUM[6] 0x22c66da3
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: Magic 0x22c66da3 is REJected!
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: SendConfigReq(2) state = Ack-Sent
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: ACCMAP[6] 0x00000000
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: MRU[4] 1500
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: RecvCodeRej(58) state = Ack-Sent
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: RecvConfigAck(2) state = Ack-Sent
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: ACCMAP[6] 0x00000000
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: MRU[4] 1500
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: State change Ack-Sent --> Opened
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: LayerUp
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: SendIdent(1) state = Opened
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: MAGICNUM 00000000
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: TEXT user-ppp 3.4.2 (built COMPILATIONDATE)
Jan 6 23:31:46 kaktus ppp[4151]: tun0: Phase: bundle: Authenticate
Jan 6 23:31:46 kaktus ppp[4151]: tun0: Phase: deflink: his = PAP, mine = none
Jan 6 23:31:46 kaktus ppp[4151]: tun0: Phase: Pap Output: ********
Jan 6 23:31:46 kaktus ppp[4151]: tun0: Warning: Sending empty PAP authname!
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: RecvCodeRej(59) state = Opened
Jan 6 23:31:46 kaktus ppp[4151]: tun0: Phase: Pap Input: SUCCESS ()
Jan 6 23:31:46 kaktus ppp[4151]: tun0: CCP: FSM: Using "deflink" as a transport
Jan 6 23:31:46 kaktus ppp[4151]: tun0: CCP: deflink: State change Initial --> Closed
Jan 6 23:31:46 kaktus ppp[4151]: tun0: CCP: deflink: State change Closed --> Stopped
Jan 6 23:31:46 kaktus ppp[4151]: tun0: Phase: deflink: lcp -> open
Jan 6 23:31:46 kaktus ppp[4151]: tun0: Phase: bundle: Network
Jan 6 23:31:46 kaktus ppp[4151]: tun0: IPCP: FSM: Using "deflink" as a transport
Jan 6 23:31:46 kaktus ppp[4151]: tun0: IPCP: deflink: State change Initial --> Closed
Jan 6 23:31:46 kaktus ppp[4151]: tun0: IPCP: deflink: LayerStart.
Jan 6 23:31:46 kaktus ppp[4151]: tun0: IPCP: deflink: SendConfigReq(1) state = Closed
Jan 6 23:31:46 kaktus ppp[4151]: tun0: IPCP: IPADDR[6] 0.0.0.0
Jan 6 23:31:46 kaktus ppp[4151]: tun0: IPCP: PRIDNS[6] 212.247.152.26
Jan 6 23:31:46 kaktus ppp[4151]: tun0: IPCP: SECDNS[6] 255.255.255.255
Jan 6 23:31:46 kaktus ppp[4151]: tun0: IPCP: deflink: State change Closed --> Req-Sent
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: RecvProtocolRej(56) state = Opened
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Jan 6 23:31:46 kaktus ppp[4151]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: RecvProtocolRej(57) state = Opened
Jan 6 23:31:46 kaktus ppp[4151]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Jan 6 23:31:46 kaktus ppp[4151]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: deflink: RecvConfigReq(57) state = Req-Sent
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: IPADDR[6] 90.143.58.57
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: deflink: SendConfigAck(57) state = Req-Sent
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: IPADDR[6] 90.143.58.57
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: deflink: State change Req-Sent --> Ack-Sent
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: deflink: RecvConfigNak(1) state = Ack-Sent
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: IPADDR[6] 90.143.58.57
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: IPADDR[6] changing address: 0.0.0.0 --> 90.143.58.57
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: PRIDNS[6] 193.12.150.26
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: SECDNS[6] 212.247.152.26
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: Primary nameserver set to 193.12.150.26
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: Secondary nameserver set to 212.247.152.26
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: deflink: SendConfigReq(2) state = Ack-Sent
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: IPADDR[6] 90.143.58.57
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: PRIDNS[6] 193.12.150.26
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: SECDNS[6] 212.247.152.26
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: deflink: RecvConfigAck(2) state = Ack-Sent
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: IPADDR[6] 90.143.58.57
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: PRIDNS[6] 193.12.150.26
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: SECDNS[6] 212.247.152.26
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: deflink: State change Ack-Sent --> Opened
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: deflink: LayerUp.
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: myaddr 90.143.58.57 hisaddr = 90.143.58.57
Jan 6 23:31:47 kaktus ppp[4151]: tun0: Warning: iface add: ioctl(SIOCAIFADDR, 90.143.58.57 -> 90.143.58.57): File exists
Jan 6 23:31:47 kaktus ppp[4151]: tun0: Error: ipcp_InterfaceUp: unable to set ip address
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: deflink: LayerDown: 90.143.58.57
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: deflink: SendTerminateReq(3) state = Opened
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: deflink: State change Opened --> Closing
Jan 6 23:31:47 kaktus ppp[4151]: tun0: LCP: deflink: SendIdent(2) state = Opened
Jan 6 23:31:47 kaktus ppp[4151]: tun0: LCP: MAGICNUM 00000000
Jan 6 23:31:47 kaktus ppp[4151]: tun0: LCP: TEXT user-ppp 3.4.2 (built COMPILATIONDATE)
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: deflink: RecvTerminateAck(3) state = Closing
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: deflink: LayerFinish.
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: Connect time: 1 secs: 0 octets in, 0 octets out
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: 0 packets in, 0 packets out
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: total 0 bytes/sec, peak 0 bytes/sec on Thu Jan 6 23:31:46 2011
Jan 6 23:31:47 kaktus ppp[4151]: tun0: IPCP: deflink: State change Closing --> Closed
Jan 6 23:31:47 kaktus ppp[4151]: tun0: LCP: deflink: RecvCodeRej(60) state = Opened

вот конфиг ppp.conf
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)
enable force-scripts
enable dns
####
tele2:
set authname
set authkey
set phone "*99#"
set dial "ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK AT+CGDCONT=1,\\\"IP\\\",\\\"internet.tele2.ru\\\" OK \\dATDT\\T TIMEOUT 40 CONNECT"
disable acfcomp protocomp vjcomp deflate pred1 pap chap mppe
set mtu 576
set login
set timeout 100
enable dns
resolv rewrite
set ifaddr 0 0 255.255.255.255
add default HISADDR

Что делать??

Пробывал подымать ком-порт телефона на компе по блютузу, дабы потом в ппп.конф заюзать его командой set device /dev/ttyp1 - не подымается.. :(

rfcomm_sppd -a MPx220 -t /dev/ttyp1
rfcomm_sppd: Could not obtain RFCOMM channel: Attribute not found

Как быть??

p.s.
Система FreeBSD 9.0-CURRENT #0: Sun Jan 3 00:49:56 UTC 2010
root@kaktus.my.domain:/usr/obj/usr/src/sys/GENERIC i386

Последний раз редактировалось Raven2000 07 янв 2011, 21:51, всего редактировалось 1 раз.
Причина: Добавил сабж ибо как было не хорошо.
ыть
 

Re: рвется ppp через bluetooth

Непрочитанное сообщение Raven2000 » 07 янв 2011, 21:50

1. Отключили на нем запрос PIN и выставили определенный режим к примеру 1x only?
2. Через сколько времени рвется соединение оно в инет вообще выходит?
Если хочешь разобраться... Так иди и разбирайся!
[ igNix.ru | Технология жизни - технологии будущего ] [ Forum.igNix.ru ]
Аватара пользователя
Raven2000
-=_UNIX_=-
-=_UNIX_=-
 
Сообщения: 680
Зарегистрирован: 14 сен 2010, 13:08
Откуда: Там, где нас нет.
Благодарил (а): 1 раз.
Поблагодарили: 37 раз.

Re: рвется ppp через bluetooth

Непрочитанное сообщение Raven2000 » 07 янв 2011, 22:06

Глянь так же тут:
_http://www.ylsoftware.com/news/597
_http://linuxforum.ru/viewtopic.php?id=7116
_http://smolensk.me/page/pppoe_freebsd
Если хочешь разобраться... Так иди и разбирайся!
[ igNix.ru | Технология жизни - технологии будущего ] [ Forum.igNix.ru ]
Аватара пользователя
Raven2000
-=_UNIX_=-
-=_UNIX_=-
 
Сообщения: 680
Зарегистрирован: 14 сен 2010, 13:08
Откуда: Там, где нас нет.
Благодарил (а): 1 раз.
Поблагодарили: 37 раз.


Вернуться в Сети, сетевые и веб сервисы

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 2

cron