3g толи "модем" толи "сетевая карта"

Решение проблем связванных с работой железа. Проблемы программно-аппаратной совместимости.
Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Аватара пользователя
dekloper
ст. лейтенант
Сообщения: 1330
Зарегистрирован: 2008-02-24 15:43:19
Откуда: давно здесь сидим..
Контактная информация:

3g толи "модем" толи "сетевая карта"

Непрочитанное сообщение dekloper » 2012-05-03 16:27:14

собсно не пойму, что подсунуть ппп-демону..
ибо "последовательных" устройств типа cuaU0 и подобных не наблюдается..
зато 3ж (встроенная в нетбук "штука" от сонерика) определилась как сетевая карточка :)
даже мак видно)

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

Root mount waiting for: usbus4
ugen4.4: <HP lc2010 Mobile Broadband Module> at usbus4
Root mount waiting for: usbus4
cdce0: <HP lc2010 Mobile Broadband Module Network Adapter> on usbus4
ue0: <USB Ethernet> on cdce0
ue0: Ethernet address: 02:80:37:ec:02:00 
вопрос, как поднять фейс?
по дхцп ничо не прилетает, в set device хрен знает чо писать.. :oops:
Последний раз редактировалось f_andrey 2012-05-03 21:24:13, всего редактировалось 1 раз.
Причина: Автору, выбирайте пожалуйста раздел соответствуюший тематике вашего сообщения.
ТОВАгИЩИ! БгАТЬЯ И СЕСТгЫ! ДОЛОЙ гАВНОДУШИЕ!

Хостинговая компания 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/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/


Аватара пользователя
dekloper
ст. лейтенант
Сообщения: 1330
Зарегистрирован: 2008-02-24 15:43:19
Откуда: давно здесь сидим..
Контактная информация:

Re: 3g толи "модем" толи "сетевая карта"

Непрочитанное сообщение dekloper » 2012-05-09 23:07:38

по ссылкам, несколько не то, конечно
но, набрел там на проблему, один в один, как у меня http://forums.freebsd.org/showthread.ph ... post125508
собсно, последовательные девайсы появились путем подгрузки модуля umodem
далее, дело техники.. у чела там всё завелось..

вот у меня ппп-демон валится с такими ошибками
ppp.conf:

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

default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)
 enable dns
 set speed 115200
 set timeout 180 
beeline:
 set device /dev/ttyU0
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT+CGDCONT=1,\"IP\",\"internet.beeline.ru\" OK ATDT\\T TIMEOUT 60 CONNECT"
 set phone "*99#"
 set login
 set authname "beeline"
 set authkey "beeline"
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0
 add default HISADDR
в логах барада такова вида:

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

May  9 21:46:41 kaktus ppp[2228]: Phase: Using interface: tun0
May  9 21:46:42 kaktus ppp[2228]: Phase: deflink: Created in closed state
May  9 21:46:42 kaktus ppp[2228]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE)
May  9 21:46:42 kaktus ppp[2228]: tun0: Command: default: enable dns
May  9 21:46:42 kaktus ppp[2228]: tun0: Command: default: set speed 115200
May  9 21:46:42 kaktus ppp[2228]: tun0: Command: default: set timeout 180
May  9 21:46:42 kaktus ppp[2228]: tun0: Command: beeline: set device /dev/cuaU0
May  9 21:46:42 kaktus ppp[2228]: tun0: Command: beeline: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 "" AT+CGDCONT=1,"IP","internet.beeline.ru" OK ATDT\T TIMEOUT 60 CONNECT
May  9 21:46:42 kaktus ppp[2228]: tun0: Command: beeline: set phone *99#
May  9 21:46:42 kaktus ppp[2228]: tun0: Command: beeline: set login
May  9 21:46:42 kaktus ppp[2228]: tun0: Command: beeline: set authname beeline
May  9 21:46:42 kaktus ppp[2228]: tun0: Command: beeline: set authkey ********
May  9 21:46:42 kaktus ppp[2228]: tun0: Command: beeline: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0
May  9 21:46:42 kaktus ppp[2228]: tun0: Command: beeline: add default HISADDR
May  9 21:46:42 kaktus ppp[2231]: tun0: Phase: PPP Started (ddial mode).
May  9 21:46:42 kaktus ppp[2231]: tun0: Phase: bundle: Establish
May  9 21:46:42 kaktus ppp[2231]: tun0: Phase: deflink: closed -> opening
May  9 21:46:42 kaktus ppp[2231]: tun0: Phase: deflink: Connected!
May  9 21:46:42 kaktus ppp[2231]: tun0: Phase: deflink: opening -> dial
May  9 21:46:42 kaktus ppp[2231]: tun0: Chat: Phone: *99***1#
May  9 21:46:42 kaktus ppp[2231]: tun0: Chat: Send: AT+CGDCONT=1,IP,internet.beeline.ru^M
May  9 21:46:42 kaktus ppp[2231]: tun0: Chat: Expect(5): OK
May  9 21:46:42 kaktus ppp[2231]: tun0: Chat: Received: AT+CGDCONT=1,IP,internet.beeline.ru^M^M
May  9 21:46:42 kaktus ppp[2231]: tun0: Chat: Received: ERROR^M
May  9 21:46:47 kaktus ppp[2231]: tun0: Chat: Expect timeout
May  9 21:46:47 kaktus ppp[2231]: tun0: Warning: Chat script failed
May  9 21:46:47 kaktus ppp[2231]: tun0: Phase: deflink: dial -> hangup
May  9 21:46:47 kaktus ppp[2231]: tun0: Phase: deflink: Disconnected!
May  9 21:46:47 kaktus ppp[2231]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
May  9 21:46:47 kaktus ppp[2231]: tun0: Phase: deflink: 0 packets in, 0 packets out
May  9 21:46:47 kaktus ppp[2231]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Wed May  9 21:46:42 2012
May  9 21:46:48 kaktus ppp[2231]: tun0: Phase: deflink: hangup -> opening
May  9 21:46:48 kaktus ppp[2231]: tun0: Phase: deflink: Enter pause (30) for redialing.
May  9 21:47:18 kaktus ppp[2231]: tun0: Chat: deflink: Redial timer expired.
May  9 21:47:18 kaktus ppp[2231]: tun0: Phase: deflink: Connected!
May  9 21:47:18 kaktus ppp[2231]: tun0: Phase: deflink: opening -> dial
May  9 21:47:18 kaktus ppp[2231]: tun0: Chat: Phone: *99***1#
May  9 21:47:18 kaktus ppp[2231]: tun0: Chat: Send: AT+CGDCONT=1,IP,internet.beeline.ru^M
May  9 21:47:18 kaktus ppp[2231]: tun0: Chat: Expect(5): OK
May  9 21:47:18 kaktus ppp[2231]: tun0: Chat: Received: AT+CGDCONT=1,IP,internet.beeline.ru^M^M
May  9 21:47:18 kaktus ppp[2231]: tun0: Chat: Received: ERROR^M
May  9 21:47:23 kaktus ppp[2231]: tun0: Chat: Expect timeout
May  9 21:47:23 kaktus ppp[2231]: tun0: Warning: Chat script failed
May  9 21:47:23 kaktus ppp[2231]: tun0: Phase: deflink: dial -> hangup
May  9 21:47:23 kaktus ppp[2231]: tun0: Phase: deflink: Disconnected!
May  9 21:47:23 kaktus ppp[2231]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
May  9 21:47:23 kaktus ppp[2231]: tun0: Phase: deflink: 0 packets in, 0 packets out
May  9 21:47:23 kaktus ppp[2231]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Wed May  9 21:47:18 2012
May  9 21:47:24 kaktus ppp[2231]: tun0: Phase: deflink: hangup -> opening
May  9 21:47:24 kaktus ppp[2231]: tun0: Phase: deflink: Enter pause (30) for redialing.
May  9 21:47:54 kaktus ppp[2231]: tun0: Chat: deflink: Redial timer expired.
May  9 21:47:54 kaktus ppp[2231]: tun0: Phase: deflink: Connected!
May  9 21:47:54 kaktus ppp[2231]: tun0: Phase: deflink: opening -> dial
May  9 21:47:54 kaktus ppp[2231]: tun0: Chat: Phone: *99#
May  9 21:47:54 kaktus ppp[2231]: tun0: Chat: Send: AT+CGDCONT=1,IP,internet.beeline.ru^M
May  9 21:47:54 kaktus ppp[2231]: tun0: Chat: Expect(5): OK
May  9 21:47:54 kaktus ppp[2231]: tun0: Chat: Received: AT+CGDCONT=1,IP,internet.beeline.ru^M^M
May  9 21:47:54 kaktus ppp[2231]: tun0: Chat: Received: ERROR^M
May  9 21:47:59 kaktus ppp[2231]: tun0: Chat: Expect timeout
May  9 21:47:59 kaktus ppp[2231]: tun0: Warning: Chat script failed
May  9 21:47:59 kaktus ppp[2231]: tun0: Phase: deflink: dial -> hangup
May  9 21:47:59 kaktus ppp[2231]: tun0: Phase: deflink: Disconnected!
May  9 21:47:59 kaktus ppp[2231]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
May  9 21:47:59 kaktus ppp[2231]: tun0: Phase: deflink: 0 packets in, 0 packets out
May  9 21:47:59 kaktus ppp[2231]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Wed May  9 21:47:54 2012
May  9 21:48:00 kaktus ppp[2231]: tun0: Phase: deflink: hangup -> opening
May  9 21:48:00 kaktus ppp[2231]: tun0: Phase: deflink: Enter pause (30) for redialing.
May  9 21:48:30 kaktus ppp[2231]: tun0: Chat: deflink: Redial timer expired.
May  9 21:48:30 kaktus ppp[2231]: tun0: Phase: deflink: Connected!
May  9 21:48:30 kaktus ppp[2231]: tun0: Phase: deflink: opening -> dial
May  9 21:48:30 kaktus ppp[2231]: tun0: Chat: Phone: *99#
May  9 21:48:30 kaktus ppp[2231]: tun0: Chat: Send: AT+CGDCONT=1,IP,internet.beeline.ru^M
May  9 21:48:30 kaktus ppp[2231]: tun0: Chat: Expect(5): OK
May  9 21:48:30 kaktus ppp[2231]: tun0: Chat: Received: AT+CGDCONT=1,IP,internet.beeline.ru^M^M
May  9 21:48:30 kaktus ppp[2231]: tun0: Chat: Received: ERROR^M
May  9 21:48:35 kaktus ppp[2231]: tun0: Chat: Expect timeout
May  9 21:48:35 kaktus ppp[2231]: tun0: Warning: Chat script failed
May  9 21:48:35 kaktus ppp[2231]: tun0: Phase: deflink: dial -> hangup
May  9 21:48:35 kaktus ppp[2231]: tun0: Phase: deflink: Disconnected!
May  9 21:48:35 kaktus ppp[2231]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
May  9 21:48:35 kaktus ppp[2231]: tun0: Phase: deflink: 0 packets in, 0 packets out
May  9 21:48:35 kaktus ppp[2231]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Wed May  9 21:48:30 2012
May  9 21:48:36 kaktus ppp[2231]: tun0: Phase: deflink: hangup -> opening
May  9 21:48:36 kaktus ppp[2231]: tun0: Phase: deflink: Enter pause (30) for redialing.
May  9 21:49:06 kaktus ppp[2231]: tun0: Chat: deflink: Redial timer expired.
May  9 21:49:06 kaktus ppp[2231]: tun0: Phase: deflink: Connected!
May  9 21:49:06 kaktus ppp[2231]: tun0: Phase: deflink: opening -> dial
May  9 21:49:06 kaktus ppp[2231]: tun0: Chat: Phone: *99#
May  9 21:49:06 kaktus ppp[2231]: tun0: Chat: Send: AT+CGDCONT=1,IP,internet.beeline.ru^M
May  9 21:49:06 kaktus ppp[2231]: tun0: Chat: Expect(5): OK
May  9 21:49:06 kaktus ppp[2231]: tun0: Chat: Received: AT+CGDCONT=1,IP,internet.beeline.ru^M^M
May  9 21:49:06 kaktus ppp[2231]: tun0: Chat: Received: ERROR^M
May  9 21:49:11 kaktus ppp[2231]: tun0: Chat: Expect timeout
May  9 21:49:11 kaktus ppp[2231]: tun0: Warning: Chat script failed
May  9 21:49:11 kaktus ppp[2231]: tun0: Phase: deflink: dial -> hangup
May  9 21:49:11 kaktus ppp[2231]: tun0: Phase: deflink: Disconnected!
May  9 21:49:11 kaktus ppp[2231]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
May  9 21:49:11 kaktus ppp[2231]: tun0: Phase: deflink: 0 packets in, 0 packets out
May  9 21:49:11 kaktus ppp[2231]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Wed May  9 21:49:06 2012
May  9 21:49:12 kaktus ppp[2231]: tun0: Phase: deflink: hangup -> opening
May  9 21:49:12 kaktus ppp[2231]: tun0: Phase: deflink: Enter pause (30) for redialing. 
если запускать с терминала, как там товарисч советует, то барада ещё более интересная:

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

May 10 01:38:05 kaktus ppp[2193]: Phase: Using interface: tun0
May 10 01:38:05 kaktus ppp[2193]: Phase: deflink: Created in closed state
May 10 01:38:06 kaktus ppp[2193]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE)
May 10 01:38:06 kaktus ppp[2193]: tun0: Command: default: enable dns
May 10 01:38:06 kaktus ppp[2193]: tun0: Command: default: set speed 115200
May 10 01:38:06 kaktus ppp[2193]: tun0: Command: default: set timeout 180
May 10 01:38:06 kaktus ppp[2193]: tun0: Phase: PPP Started (interactive mode).
May 10 01:38:35 kaktus ppp[2193]: tun0: Command: /dev/ttyv2: set device /dev/cuaU0
May 10 01:38:57 kaktus ppp[2193]: tun0: Command: /dev/ttyv2: set speed 38400
May 10 01:40:24 kaktus ppp[2193]: tun0: Command: /dev/ttyv2: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0
May 10 01:41:07 kaktus ppp[2193]: tun0: Command: /dev/ttyv2: add default HISADDR
May 10 01:41:21 kaktus ppp[2193]: tun0: Command: /dev/ttyv2: term
May 10 01:41:21 kaktus ppp[2193]: tun0: Phase: bundle: Establish
May 10 01:41:21 kaktus ppp[2193]: tun0: Phase: deflink: closed -> opening
May 10 01:41:21 kaktus ppp[2193]: tun0: Phase: deflink: Connected!
May 10 01:41:21 kaktus ppp[2193]: tun0: Phase: deflink: opening -> carrier
May 10 01:41:22 kaktus ppp[2193]: tun0: Phase: deflink: /dev/cuaU0 doesn't support CD
May 10 01:41:22 kaktus ppp[2193]: tun0: Phase: deflink: carrier -> ready
May 10 01:44:02 kaktus ppp[2193]: tun0: Phase: deflink: PPP packet detected, coming up
May 10 01:44:02 kaktus ppp[2193]: tun0: Phase: deflink: ready -> carrier
May 10 01:44:02 kaktus ppp[2193]: tun0: LCP: deflink: RecvConfigReq(1) state = Initial
May 10 01:44:02 kaktus ppp[2193]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP)
May 10 01:44:02 kaktus ppp[2193]: tun0: LCP:  ACFCOMP[2]
May 10 01:44:02 kaktus ppp[2193]: tun0: LCP:  PROTOCOMP[2]
May 10 01:44:02 kaktus ppp[2193]: tun0: LCP:  ACCMAP[6] 0x00000000
May 10 01:44:02 kaktus ppp[2193]: tun0: LCP:  MAGICNUM[6] 0x93434b6c
May 10 01:44:02 kaktus ppp[2193]: tun0: LCP: deflink: Oops, RCR in Initial.
May 10 01:44:02 kaktus ppp[2193]: tun0: Phase: deflink: carrier -> lcp
May 10 01:44:02 kaktus ppp[2193]: tun0: LCP: FSM: Using "deflink" as a transport
May 10 01:44:02 kaktus ppp[2193]: tun0: LCP: deflink: State change Initial --> Closed
May 10 01:44:02 kaktus ppp[2193]: tun0: LCP: deflink: State change Closed --> Stopped
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: LayerStart
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  ACFCOMP[2]
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  PROTOCOMP[2]
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  ACCMAP[6] 0x00000000
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  MRU[4] 1500
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  MAGICNUM[6] 0xd288a6c3
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: State change Stopped --> Req-Sent
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: RecvConfigReq(2) state = Req-Sent
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP)
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  ACFCOMP[2]
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  PROTOCOMP[2]
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  ACCMAP[6] 0x00000000
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  MAGICNUM[6] 0x93434b6c
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: SendConfigAck(2) state = Req-Sent
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP)
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  ACFCOMP[2]
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  PROTOCOMP[2]
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  ACCMAP[6] 0x00000000
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  MAGICNUM[6] 0x93434b6c
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: State change Req-Sent --> Ack-Sent
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: RecvConfigAck(1) state = Ack-Sent
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  ACFCOMP[2]
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  PROTOCOMP[2]
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  ACCMAP[6] 0x00000000
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  MRU[4] 1500
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  MAGICNUM[6] 0xd288a6c3
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: State change Ack-Sent --> Opened
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: LayerUp
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: SendIdent(0) state = Opened
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  MAGICNUM d288a6c3
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP:  TEXT user-ppp 3.4.2 (built COMPILATIONDATE)
May 10 01:44:03 kaktus ppp[2193]: tun0: Phase: bundle: Authenticate
May 10 01:44:03 kaktus ppp[2193]: tun0: Phase: deflink: his = PAP, mine = none
May 10 01:44:03 kaktus ppp[2193]: tun0: Phase: Pap Output:  ********
May 10 01:44:03 kaktus ppp[2193]: tun0: Warning: Sending empty PAP authname!
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: RecvCodeRej(1) state = Opened
May 10 01:44:03 kaktus ppp[2193]: tun0: Phase: Pap Input: SUCCESS (Congratulations!)
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP: Using trigger address 0.0.0.0
May 10 01:44:03 kaktus ppp[2193]: tun0: CCP: FSM: Using "deflink" as a transport
May 10 01:44:03 kaktus ppp[2193]: tun0: CCP: deflink: State change Initial --> Closed
May 10 01:44:03 kaktus ppp[2193]: tun0: CCP: deflink: LayerStart.
May 10 01:44:03 kaktus ppp[2193]: tun0: CCP: MPPE: Not usable without CHAP81
May 10 01:44:03 kaktus ppp[2193]: tun0: CCP: deflink: SendConfigReq(1) state = Closed
May 10 01:44:03 kaktus ppp[2193]: tun0: CCP:  DEFLATE[4] win 15
May 10 01:44:03 kaktus ppp[2193]: tun0: CCP:  PRED1[2] 
May 10 01:44:03 kaktus ppp[2193]: tun0: CCP: deflink: State change Closed --> Req-Sent
May 10 01:44:03 kaktus ppp[2193]: tun0: Phase: deflink: lcp -> open
May 10 01:44:03 kaktus ppp[2193]: tun0: Phase: bundle: Network
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP: FSM: Using "deflink" as a transport
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP: deflink: State change Initial --> Closed
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP: deflink: LayerStart.
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP: deflink: SendConfigReq(1) state = Closed
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP:  IPADDR[6] 0.0.0.0
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP:  COMPPROTO[6] 16 VJ slots with slot compression
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP:  PRIDNS[6] 255.255.255.255
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP:  SECDNS[6] 255.255.255.255
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP: deflink: State change Closed --> Req-Sent
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: RecvProtocolRej(1) state = Opened
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: -- Protocol 0x80fd (Compression Control Protocol) was rejected!
May 10 01:44:03 kaktus ppp[2193]: tun0: CCP: deflink: State change Req-Sent --> Stopped
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: RecvProtocolRej(2) state = Opened
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
May 10 01:44:03 kaktus ppp[2193]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: RecvProtocolRej(3) state = Opened
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
May 10 01:44:03 kaktus ppp[2193]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: RecvTerminateReq(1) state = Opened
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: LayerDown
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: SendTerminateAck(1) state = Opened
May 10 01:44:03 kaktus ppp[2193]: tun0: LCP: deflink: State change Opened --> Stopping
May 10 01:44:03 kaktus ppp[2193]: tun0: CCP: deflink: State change Stopped --> Closed
May 10 01:44:03 kaktus ppp[2193]: tun0: CCP: deflink: State change Closed --> Initial
May 10 01:44:03 kaktus ppp[2193]: tun0: Phase: deflink: open -> lcp
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP: deflink: State change Req-Sent --> Starting
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP: deflink: LayerFinish.
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP: Connect time: 0 secs: 0 octets in, 0 octets out
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP: 0 packets in, 0 packets out
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP:  total 0 bytes/sec, peak 0 bytes/sec on Thu May 10 01:44:03 2012
May 10 01:44:03 kaktus ppp[2193]: tun0: IPCP: deflink: State change Starting --> Initial
May 10 01:44:03 kaktus ppp[2193]: tun0: Phase: bundle: Terminate
May 10 01:44:06 kaktus ppp[2193]: tun0: LCP: deflink: LayerFinish
May 10 01:44:06 kaktus ppp[2193]: tun0: LCP: deflink: State change Stopping --> Stopped
May 10 01:44:06 kaktus ppp[2193]: tun0: LCP: deflink: State change Stopped --> Closed
May 10 01:44:06 kaktus ppp[2193]: tun0: LCP: deflink: State change Closed --> Initial
May 10 01:44:06 kaktus ppp[2193]: tun0: Phase: deflink: Disconnected!
May 10 01:44:07 kaktus ppp[2193]: tun0: Phase: deflink: Connect time: 166 secs: 354 octets in, 270 octets out
May 10 01:44:07 kaktus ppp[2193]: tun0: Phase: deflink: 11 packets in, 9 packets out
May 10 01:44:07 kaktus ppp[2193]: tun0: Phase:  total 3 bytes/sec, peak 124 bytes/sec on Thu May 10 01:44:04 2012
May 10 01:44:07 kaktus ppp[2193]: tun0: Phase: deflink: lcp -> closed
May 10 01:44:07 kaktus ppp[2193]: tun0: Phase: bundle: Dead 
Подскажите, плз, где криво в конфиге?
ТОВАгИЩИ! БгАТЬЯ И СЕСТгЫ! ДОЛОЙ гАВНОДУШИЕ!

Аватара пользователя
Electronik
капитан
Сообщения: 1593
Зарегистрирован: 2008-11-15 17:32:56
Откуда: Минск
Контактная информация:

Re: 3g толи "модем" толи "сетевая карта"

Непрочитанное сообщение Electronik » 2012-05-10 1:36:17

он IP не получает от провайдерского DHCP.

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

May  9 21:47:54 kaktus ppp[2231]: tun0: Chat: Received: AT+CGDCONT=1,IP,internet.beeline.ru^M^M
May  9 21:47:54 kaktus ppp[2231]: tun0: Chat: Received: ERROR^M
May  9 21:47:59 kaktus ppp[2231]: tun0: Chat: Expect timeout
проверьте параметры инета.
в параметры подключения добавьте

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

accept PAP
 disable ipv6cp
 disable mppe
 disable pred1 deflate protocomp acfcomp shortseq vj
 deny pred1 deflate protocomp acfcomp shortseq vj
Предскажем будущее hw по логам и дампу, снимем сглаз и порчу с рута, поможем придумать пароль(С)
Блог

Аватара пользователя
dekloper
ст. лейтенант
Сообщения: 1330
Зарегистрирован: 2008-02-24 15:43:19
Откуда: давно здесь сидим..
Контактная информация:

Re: 3g толи "модем" толи "сетевая карта"

Непрочитанное сообщение dekloper » 2012-05-10 19:30:21

чота не сильно поменялся лог
по-пежнему, отправленная "туда" строка с APN не правильно возвращается назад
и чат отваливается :(
а имеет значение порядок следования команд в конфиге? мож чего местами попутал?

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

default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)
 enable dns
 set speed 115200
 set timeout 180
beeline:
 accept PAP
 disable ipv6cp
 disable mppe
 disable pred1 deflate protocomp acfcomp shortseq vj
 deny pred1 deflate protocomp acfcomp shortseq vj
 set device /dev/cuaU0
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT+CGDCONT=1,\"IP\",\"internet.beeline.ru\" OK ATDT\\T TIMEOUT 60 CONNECT"
 set phone "*99#"
 set login
 set authname "beeline"
 set authkey "beeline"
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0
 add default HISADDR 
ТОВАгИЩИ! БгАТЬЯ И СЕСТгЫ! ДОЛОЙ гАВНОДУШИЕ!

PYO
сержант
Сообщения: 185
Зарегистрирован: 2011-08-18 12:46:45

Re: 3g толи "модем" толи "сетевая карта"

Непрочитанное сообщение PYO » 2012-05-10 20:08:09

AT+CGDCONT=1,IP,internet.beeline.ru
Ясно же что модем эту строчку не переваривает. Уберите или поменяйте.

Аватара пользователя
Electronik
капитан
Сообщения: 1593
Зарегистрирован: 2008-11-15 17:32:56
Откуда: Минск
Контактная информация:

Re: 3g толи "модем" толи "сетевая карта"

Непрочитанное сообщение Electronik » 2012-05-10 23:01:15

вот есть статья про CDMA модем
http://www.lissyara.su/articles/freebsd ... _ccu-650u/
но должно работать и с 3g
Предскажем будущее hw по логам и дампу, снимем сглаз и порчу с рута, поможем придумать пароль(С)
Блог

Аватара пользователя
dekloper
ст. лейтенант
Сообщения: 1330
Зарегистрирован: 2008-02-24 15:43:19
Откуда: давно здесь сидим..
Контактная информация:

Re: 3g толи "модем" толи "сетевая карта"

Непрочитанное сообщение dekloper » 2012-05-14 22:36:14

PYO писал(а):
AT+CGDCONT=1,IP,internet.beeline.ru
Ясно же что модем эту строчку не переваривает. Уберите или поменяйте.
знать бы на чо менять..

вобчем позырил я, как оно в венде (хр-х64) дрыгается:
лог при нажимании кнопки "опросить модем":

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

ATQ0V1E0 - OK
AT+GMM - lc2010
AT+FCLASS=? - +FCLASS: (0)
AT#CLS=? - COMMAND NOT SUPPORTED
AT+GCI? - COMMAND NOT SUPPORTED
AT+GCI=? - COMMAND NOT SUPPORTED
ATI1 - R2A11
ATI2 - COMMAND NOT SUPPORTED
ATI3 - lc2010 Mobile Broadband Modem
ATI4 - COMMAND NOT SUPPORTED
ATI5 - Configuration Settings on Channel 4
       &C: 1
       &D: 2
       *EATTM: 0
       *EIAC: 1,1,"PS Account 1"
       *ELIN: 1
       *EPSB: 0,0
       *ERCI: 0,1,2
       +CBST: 0,0,1
       +CDIP: 0,0
       +CGACT: 1,0
       +CGATT: 1
       +CGCLASS: "A"
       +CGDCONT: 1,"IP","internet","0.0.0.0",0,0
       +CGEQMIN: 1,3,0,0,0,0,0,0,"0E0","0E0",2,0,0
       +CGEQREQ: 1,4,0,0,0,0,2,0,"1E4","1E5",0,0,0
       +CGEREP: 0,0
       +CGQMIN: 1,0,0,0,0,0
       +CGQREQ: 1,0,0,3,0,0
       +CGREG: 0,1
       +CHSN: 0,1,0,12
       +CHSR: 0
       +CMEE: 0
       +CMUX: 0,0,1,31,10,3,30,10,2
       +CR: 0
       +CRC: 0
       +CRLP: 61,61,59,6,0
       +CRLP: 120,120,59,6,2,3
       +CSCS: "IRA"
       +CV120: 1,1,1,0,0,0
       +CVHU: 0
       +DR: 0
       +DS: 3,0,1024,32
       +ICF: 3,3
       +IFC: 2,2
       +ILRR: 0
       E: 0
       M: 0
       Q: 0
       S0: 000
       S10: 002
       S2: 128
       S3: 013
       S4: 010
       S5: 008
       S6: 002
       S7: 050
       S8: 002
       V: 1
       X: 4
ATI6 - COMMAND NOT SUPPORTED
ATI7 -  Modem Configuration Profile
       Product Type       Terminal Adapter
       Interfaces         RS-232, USB
       Options            PPP, RLP, V42bis
но главное не в том, модемов в системе - как бы два (com3 и com4):
Изображение
не понятно, как взаимодействующие друг с другом..

ибо, ппп-подключение (в венде) устанавливается только, если галку ставить на девайсе com3
Изображение

если выбирать com4, то ничо не работает..

далее..
смотрим чо происходит во фре (с загруженным модулем umodem):

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

ugen4.4: <HP lc2010 Mobile Broadband Module> at usbus4
umodem0: <HP lc2010 Mobile Broadband Module Data Modem> on usbus4
umodem0: data interface 2, has CM over data, has break
umodem1: <HP lc2010 Mobile Broadband Module Modem> on usbus4
umodem1: data interface 4, has CM over data, has break
cdce0: <HP lc2010 Mobile Broadband Module Network Adapter> on usbus4
ue0: <USB Ethernet> on cdce0
ue0: Ethernet address: 02:80:37:ec:02:00
umodem2: <SGPSPORT> on usbus4
umodem2: data interface 10, has CM over data, has break 
вот не пойму я.., тоже видим два модема, даже три..
дата-интерфейсы 2, 4, 10..
"кабельный модем" cdce0
юзб езернет ue0 по "кабелю" cdce0..

может, както через PPPoE городить надо..??

уж больно туманный ppp.log

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

May 14 23:45:04 kaktus ppp[2924]: tun0: Command: beeline: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 15 "" AT+CGDCONT=1,"IP","internet" OK ATDT\T TIMEOUT 60 CONNECT
May 14 23:45:04 kaktus ppp[2924]: tun0: Command: beeline: set phone *99#
May 14 23:45:04 kaktus ppp[2924]: tun0: Command: beeline: set login
May 14 23:45:04 kaktus ppp[2924]: tun0: Command: beeline: set authname beeline
May 14 23:45:04 kaktus ppp[2924]: tun0: Command: beeline: set authkey ********
May 14 23:45:04 kaktus ppp[2924]: tun0: Command: beeline: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
May 14 23:45:04 kaktus ppp[2924]: tun0: Command: beeline: add default HISADDR
May 14 23:45:04 kaktus ppp[2926]: tun0: Phase: PPP Started (ddial mode).
May 14 23:45:04 kaktus ppp[2926]: tun0: Phase: bundle: Establish
May 14 23:45:04 kaktus ppp[2926]: tun0: Phase: deflink: closed -> opening
May 14 23:45:04 kaktus ppp[2926]: tun0: Phase: deflink: Connected!
May 14 23:45:04 kaktus ppp[2926]: tun0: Phase: deflink: opening -> dial
May 14 23:45:04 kaktus ppp[2926]: tun0: Chat: Phone: *99#
May 14 23:45:04 kaktus ppp[2926]: tun0: Chat: Send: AT+CGDCONT=1,IP,internet^M
May 14 23:45:04 kaktus ppp[2926]: tun0: Chat: Expect(15): OK
May 14 23:45:05 kaktus ppp[2926]: tun0: Chat: Received: AT+CGDCONT=1,IP,internet^M^M
May 14 23:45:05 kaktus ppp[2926]: tun0: Chat: Received: ERROR^M
May 14 23:45:19 kaktus ppp[2926]: tun0: Chat: Expect timeout
May 14 23:45:19 kaktus ppp[2926]: tun0: Warning: Chat script failed
May 14 23:45:19 kaktus ppp[2926]: tun0: Phase: deflink: dial -> hangup
May 14 23:45:19 kaktus ppp[2926]: tun0: Phase: deflink: Disconnected!

видно же, что роут прописался, ат-команда ушла, и.. чат отвалился.. почему?

без ат-комманды, вобще циклит до бесконечности

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

May 14 23:40:40 kaktus ppp[2839]: tun0: Command: beeline: set device /dev/cuaU0
May 14 23:40:40 kaktus ppp[2839]: tun0: Command: beeline: set phone *99#
May 14 23:40:40 kaktus ppp[2839]: tun0: Command: beeline: set login
May 14 23:40:40 kaktus ppp[2839]: tun0: Command: beeline: set authname beeline
May 14 23:40:40 kaktus ppp[2839]: tun0: Command: beeline: set authkey ********
May 14 23:40:40 kaktus ppp[2839]: tun0: Command: beeline: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
May 14 23:40:40 kaktus ppp[2839]: tun0: Command: beeline: add default HISADDR
May 14 23:40:40 kaktus ppp[2841]: tun0: Phase: PPP Started (ddial mode).
May 14 23:40:40 kaktus ppp[2841]: tun0: Phase: bundle: Establish
May 14 23:40:40 kaktus ppp[2841]: tun0: Phase: deflink: closed -> opening
May 14 23:40:40 kaktus ppp[2841]: tun0: Phase: deflink: Connected!
May 14 23:40:40 kaktus ppp[2841]: tun0: Phase: deflink: opening -> dial
May 14 23:40:40 kaktus ppp[2841]: tun0: Phase: deflink: dial -> carrier
May 14 23:40:41 kaktus ppp[2841]: tun0: Phase: deflink: /dev/cuaU0 doesn't support CD
May 14 23:40:41 kaktus ppp[2841]: tun0: Phase: deflink: carrier -> login
May 14 23:40:41 kaktus ppp[2841]: tun0: Phase: deflink: login -> lcp
May 14 23:40:41 kaktus ppp[2841]: tun0: LCP: FSM: Using "deflink" as a transport
May 14 23:40:41 kaktus ppp[2841]: tun0: LCP: deflink: State change Initial --> Closed
May 14 23:40:41 kaktus ppp[2841]: tun0: LCP: deflink: State change Closed --> Stopped
May 14 23:40:42 kaktus ppp[2841]: tun0: LCP: deflink: LayerStart
May 14 23:40:42 kaktus ppp[2841]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped
May 14 23:40:42 kaktus ppp[2841]: tun0: LCP:  ACCMAP[6] 0x00000000
May 14 23:40:42 kaktus ppp[2841]: tun0: LCP:  MRU[4] 1500
May 14 23:40:42 kaktus ppp[2841]: tun0: LCP:  MAGICNUM[6] 0x7f0979bb
May 14 23:40:42 kaktus ppp[2841]: tun0: LCP: deflink: State change Stopped --> Req-Sent
May 14 23:40:45 kaktus ppp[2841]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent
May 14 23:40:45 kaktus ppp[2841]: tun0: LCP:  ACCMAP[6] 0x00000000
May 14 23:40:45 kaktus ppp[2841]: tun0: LCP:  MRU[4] 1500
May 14 23:40:45 kaktus ppp[2841]: tun0: LCP:  MAGICNUM[6] 0x7f0979bb
May 14 23:40:48 kaktus ppp[2841]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent
May 14 23:40:48 kaktus ppp[2841]: tun0: LCP:  ACCMAP[6] 0x00000000
May 14 23:40:48 kaktus ppp[2841]: tun0: LCP:  MRU[4] 1500
May 14 23:40:48 kaktus ppp[2841]: tun0: LCP:  MAGICNUM[6] 0x7f0979bb
May 14 23:40:51 kaktus ppp[2841]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent
May 14 23:40:51 kaktus ppp[2841]: tun0: LCP:  ACCMAP[6] 0x00000000
May 14 23:40:51 kaktus ppp[2841]: tun0: LCP:  MRU[4] 1500
May 14 23:40:51 kaktus ppp[2841]: tun0: LCP:  MAGICNUM[6] 0x7f0979bb
May 14 23:40:54 kaktus ppp[2841]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent
May 14 23:40:54 kaktus ppp[2841]: tun0: LCP:  ACCMAP[6] 0x00000000
May 14 23:40:54 kaktus ppp[2841]: tun0: LCP:  MRU[4] 1500
May 14 23:40:54 kaktus ppp[2841]: tun0: LCP:  MAGICNUM[6] 0x7f0979bb
May 14 23:40:57 kaktus ppp[2841]: tun0: LCP: deflink: LayerFinish
May 14 23:40:57 kaktus ppp[2841]: tun0: LCP: deflink: State change Req-Sent --> Stopped
да, и, после подгрузки модуля, в /dev добавляются такие штуки:

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

cuaU0
cuaU0.init
cuaU0.lock
cuaU1
cuaU1.init
cuaU1.lock
cuaU2
cuaU2.init
cuaU2.lock 
ttyU0
ttyU0.init
ttyU0.lock
ttyU1
ttyU1.init
ttyU1.lock
ttyU2
ttyU2.init
ttyU2.lock 
метод "тыка" (путем добавления их опцией set device в ppp.conf) тоже не сработал :st: :st:
чо делать, нинаю :bn:
ТОВАгИЩИ! БгАТЬЯ И СЕСТгЫ! ДОЛОЙ гАВНОДУШИЕ!

PYO
сержант
Сообщения: 185
Зарегистрирован: 2011-08-18 12:46:45

Re: 3g толи "модем" толи "сетевая карта"

Непрочитанное сообщение PYO » 2012-05-15 9:34:16

Надо бы лог из винды при подключении вывестиб а не при опросе. Там будут все команды инициализации.
Про AT+CGDCONT ничего не скажу. В моём модеме такая команда не поддерживается.
Вот тут посмотрите:
https://www.anywi.com/3g/wiki/PPPFor3GModems
Некоторые команды расписаны.

Аватара пользователя
dekloper
ст. лейтенант
Сообщения: 1330
Зарегистрирован: 2008-02-24 15:43:19
Откуда: давно здесь сидим..
Контактная информация:

Re: 3g толи "модем" толи "сетевая карта"

Непрочитанное сообщение dekloper » 2012-05-15 14:18:36

ура, всё взлетело! пацыба!
толковый грамотный конфиг!
рад как дитя) :Yahoo!:
ТОВАгИЩИ! БгАТЬЯ И СЕСТгЫ! ДОЛОЙ гАВНОДУШИЕ!