LINUX.ORG.RU
ФорумAdmin

настройка ZTE MF192+

 , ,


0

3

Hi ALL! Есть недокомп на атоме, внутри линукс, сбоку торчит сабж. Причём я его даже вроде как настроил, но интернета нет. Подробности:

# lsb_release -a
No LSB modules are available.
Distributor ID:	elementary
Description:	elementary OS 0.4 Loki
Release:	0.4
Codename:	loki
# lsusb
Bus 001 Device 010: ID 19d2:1217 ZTE WCDMA Technologies MSM MF652
##На модеме написано MF192, мамой клянусь!
$ ifconfig -a
enp0s29f7u8i8 Link encap:Ethernet  HWaddr 00:bb:55:77:00:ee  
          inet addr:10.198.216.159  Bcast:10.198.216.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:52 (52.0 B)  TX bytes:5875 (5.8 KB)
$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.198.216.158  0.0.0.0         UG    700    0        0 enp0s29f7u8i8
10.198.216.0    *               255.255.255.0   U     700    0        0 enp0s29f7u8i8
$ ping 10.198.216.158
PING 10.198.216.158 (10.198.216.158) 56(84) bytes of data.
From 10.198.216.159 icmp_seq=1 Destination Host Unreachable
From 10.198.216.159 icmp_seq=2 Destination Host Unreachable
From 10.198.216.159 icmp_seq=3 Destination Host Unreachable
^C
--- 10.198.216.158 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4012ms
pipe 3

ну и соответственно всё остальное тоже не попингуемо.

Да, в винде на том же компе работает.

а пробовал уже добавлять?
/etc/usb_modeswitch.d/19d2:1216
Код:

######################################################## 
# ZTE MF192+ 

DefaultVendor= 0x19d2 
DefaultProduct=0x1216 

TargetVendor= 0x19d2 
TargetProduct= 0x1217 

MessageContent="555342430800498200000000000010FF000000000000000000000000000000" 

CheckSuccess=20

xmikex ★★★★ ()
Ответ на: комментарий от xmikex

Надпись на устройстве - без плюса. В консоли AT-виден с плюсом.

dark-pc ()
Ответ на: комментарий от xmikex

Устройство настроено через мастер в NM. Настройки те же что и в винде. В pantheon нет kppp. Куда я могу выходить, если гейт не пингуется? NM пишет-соединение установлено и используется. wvdial-не видел в системе, пойду гляну..

dark-pc ()
Ответ на: комментарий от kraftello
[  253.912041] usb 1-8: new high-speed USB device number 6 using ehci-pci
[  254.045566] usb 1-8: New USB device found, idVendor=19d2, idProduct=1217
[  254.045579] usb 1-8: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[  254.045587] usb 1-8: Product: MF192+
[  254.045595] usb 1-8: Manufacturer: ZTE
[  254.045603] usb 1-8: SerialNumber: 9FBC5E9CEB4B507800E5C5416ADE2775DCCE6E57
[  254.046863] cdc_acm 1-8:1.0: ttyACM0: USB ACM device
[  254.055006] cdc_ether 1-8:1.8 usb0: register 'cdc_ether' at usb-0000:00:1d.7-8, CDC Ethernet Device, 00:bb:55:77:00:ee
[  254.360801] cdc_ether 1-8:1.8 enp0s29f7u8i8: renamed from usb0
[  254.470956] IPv6: ADDRCONF(NETDEV_UP): enp0s29f7u8i8: link is not ready
[  254.473327] cdc_ether 1-8:1.8 enp0s29f7u8i8: kevent 12 may have been dropped
[  271.391422] perf interrupt took too long (5001 > 5000), lowering kernel.perf_event_max_sample_rate to 25000
dark-pc ()
Ответ на: комментарий от dark-pc

ну если он как cdc ethernet определяется, то dhcpcd с ним не работает? попробуй сделать

rmmod cdc_ether
modprobe cdc_ether
мне с андроид tehering помогало.

xmikex ★★★★ ()
Последнее исправление: xmikex (всего исправлений: 1)
Ответ на: комментарий от xmikex

передёрнул модуль, эффекта нет.

Зато принёс кусок сислога

Nov 27 01:58:24 compaq-100eu NetworkManager[710]: <info>  [1480201104.5328] device (ttyACM0): state change: disconnected -> prepare (reason 'none') [30 40 0]
Nov 27 01:58:24 compaq-100eu NetworkManager[710]: <info>  [1480201104.5399] manager: NetworkManager state is now CONNECTING
Nov 27 01:58:24 compaq-100eu NetworkManager[710]: <info>  [1480201104.5457] device (ttyACM0): state change: prepare -> need-auth (reason 'none') [40 60 0]
Nov 27 01:58:24 compaq-100eu NetworkManager[710]: <info>  [1480201104.9481] device (ttyACM0): state change: need-auth -> prepare (reason 'none') [60 40 0]
Nov 27 01:58:24 compaq-100eu ModemManager[713]: <info>  Simple connect started...
Nov 27 01:58:24 compaq-100eu ModemManager[713]: <info>  Simple connect state (4/8): Wait to get fully enabled
Nov 27 01:58:24 compaq-100eu ModemManager[713]: <info>  Simple connect state (5/8): Register
Nov 27 01:58:24 compaq-100eu ModemManager[713]: <info>  Simple connect state (6/8): Bearer
Nov 27 01:58:24 compaq-100eu ModemManager[713]: <info>  Simple connect state (7/8): Connect
Nov 27 01:58:24 compaq-100eu ModemManager[713]: <info>  Modem /org/freedesktop/ModemManager1/Modem/1: state changed (registered -> connecting)
Nov 27 01:58:25 compaq-100eu ModemManager[713]: Invalid mobile equipment error code: 767
Nov 27 01:58:34 compaq-100eu ModemManager[713]: <info>  Modem /org/freedesktop/ModemManager1/Modem/1: state changed (connecting -> connected)
Nov 27 01:58:34 compaq-100eu ModemManager[713]: <info>  Simple connect state (8/8): All done
Nov 27 01:58:34 compaq-100eu kernel: [  543.493887] cdc_ether 1-8:1.8 enp0s29f7u8i8: kevent 12 may have been dropped
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.5639] device (ttyACM0): state change: prepare -> config (reason 'none') [40 50 0]
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.5659] device (ttyACM0): state change: config -> ip-config (reason 'none') [50 70 0]
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.5667] (ttyACM0): IPv6 configuration disabled
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.5698] (ttyACM0): IPv4 static configuration:
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.5752]   address 10.203.254.85/24
Nov 27 01:58:34 compaq-100eu avahi-daemon[738]: Joining mDNS multicast group on interface enp0s29f7u8i8.IPv4 with address 10.203.254.85.
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.5754]   gateway 10.203.254.84
Nov 27 01:58:34 compaq-100eu avahi-daemon[738]: New relevant interface enp0s29f7u8i8.IPv4 for mDNS.
Nov 27 01:58:34 compaq-100eu whoopsie[715]: [01:58:34] Cannot reach: https://daisy.ubuntu.com
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.5755]   DNS 10.10.30.202
Nov 27 01:58:34 compaq-100eu avahi-daemon[738]: Registering new address record for 10.203.254.85 on enp0s29f7u8i8.IPv4.
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.5755]   DNS 10.10.30.206
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.5913] device (ttyACM0): state change: ip-config -> ip-check (reason 'none') [70 80 0]
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.6619] device (ttyACM0): state change: ip-check -> secondaries (reason 'none') [80 90 0]
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.6770] device (ttyACM0): state change: secondaries -> activated (reason 'none') [90 100 0]
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.6805] manager: NetworkManager state is now CONNECTED_LOCAL
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.7592] manager: NetworkManager state is now CONNECTED_GLOBAL
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.7664] policy: set 'Beeline Mobile phone 1' (enp0s29f7u8i8) as default for IPv4 routing and DNS
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.7711] dns-mgr: Writing DNS information to /sbin/resolvconf
Nov 27 01:58:34 compaq-100eu dnsmasq[1411]: setting upstream servers from DBus
Nov 27 01:58:34 compaq-100eu dnsmasq[1411]: using nameserver 10.10.30.202#53
Nov 27 01:58:34 compaq-100eu dnsmasq[1411]: using nameserver 10.10.30.206#53
Nov 27 01:58:34 compaq-100eu NetworkManager[710]: <info>  [1480201114.8445] device (ttyACM0): Activation: successful, device activated.
Nov 27 01:58:34 compaq-100eu dbus[681]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Nov 27 01:58:34 compaq-100eu systemd[1]: Starting Network Manager Script Dispatcher Service...
Nov 27 01:58:34 compaq-100eu whoopsie[715]: [01:58:34] The default IPv4 route is: /org/freedesktop/NetworkManager/ActiveConnection/6
Nov 27 01:58:34 compaq-100eu dbus[681]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Nov 27 01:58:34 compaq-100eu nm-dispatcher: req:1 'up' [enp0s29f7u8i8]: new request (2 scripts)
Nov 27 01:58:34 compaq-100eu nm-dispatcher: req:1 'up' [enp0s29f7u8i8]: start running ordered scripts...
Nov 27 01:58:34 compaq-100eu systemd[1]: Started Network Manager Script Dispatcher Service.
Nov 27 01:58:35 compaq-100eu whoopsie[715]: [01:58:35] Network connection may be a paid data plan: /org/freedesktop/NetworkManager/Devices/7

dark-pc ()
Ответ на: комментарий от xmikex

симка телефонная, AP internet.beeline.ru, на этом же компе под виндами работает без указания AP, здесь пробовал и так и сяк, щас AP не прописана.

dark-pc ()
Ответ на: комментарий от arson

да, всё по dhcp

iptables пуст:

# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination   

dark-pc ()

А ifconfig -a полный? я конешн не трезв, но впечатление что модем в компе сеть не дает, а ифконфиг отзывается сетевуха встроеная.

chenger ★★ ()

Интернет появился после запуска dhclient руками. А как бы это автоматизировать, ну чтобы оно само?

dark-pc ()
Ответ на: комментарий от chenger
$ ifconfig -a
enp0s29f7u4i8 Link encap:Ethernet  HWaddr 02:4b:50:78:00:e5  
          inet addr:100.96.181.50  Bcast:100.96.181.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:1851 (1.8 KB)

ens33     Link encap:Ethernet  HWaddr 1c:c1:de:60:99:c0  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Локальная петля (Loopback)  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:360 errors:0 dropped:0 overruns:0 frame:0
          TX packets:360 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:26676 (26.6 KB)  TX bytes:26676 (26.6 KB)

wls32     Link encap:Ethernet  HWaddr 70:f1:a1:e6:f5:62  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
dark-pc ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.