USB Yota LTE + udev

Подключаю модем, а он постоянно перезагружается. Если застопить udev, то всё в порядке. Прописываю руками сетевые настройкии всё работает.

Oct 26 12:30:51 mak-laptop kernel: usb 2-1.1: new high-speed USB device number 3 using ehci_hcd
Oct 26 12:30:51 mak-laptop kernel: usb 2-1.1: New USB device found, idVendor=1076, idProduct=8001
Oct 26 12:30:51 mak-laptop kernel: usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 26 12:30:51 mak-laptop kernel: usb 2-1.1: Product: Modem Yota
Oct 26 12:30:51 mak-laptop kernel: usb 2-1.1: Manufacturer: GCT SEMICONDUCTOR Inc
Oct 26 12:30:51 mak-laptop kernel: scsi6 : usb-storage 2-1.1:1.0
Oct 26 12:30:52 mak-laptop kernel: scsi 6:0:0:0: CD-ROM GDM Mass PQ: 0 ANSI: 0 CCS
Oct 26 12:30:52 mak-laptop kernel: sr0: scsi3-mmc drive: 0x/0x caddy
Oct 26 12:30:52 mak-laptop kernel: cdrom: Uniform CD-ROM driver Revision: 3.20
Oct 26 12:30:52 mak-laptop kernel: sr 6:0:0:0: Attached scsi CD-ROM sr0
Oct 26 12:30:53 mak-laptop kernel: usb 2-1.1: USB disconnect, device number 3
Oct 26 12:30:54 mak-laptop kernel: usb 2-1.1: new high-speed USB device number 4 using ehci_hcd
Oct 26 12:30:54 mak-laptop kernel: usb 2-1.1: New USB device found, idVendor=1076, idProduct=8002
Oct 26 12:30:54 mak-laptop kernel: usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 26 12:30:54 mak-laptop kernel: usb 2-1.1: Product: Modem Yota
Oct 26 12:30:54 mak-laptop kernel: usb 2-1.1: Manufacturer: GCT SEMICONDUCTOR Inc
Oct 26 12:30:54 mak-laptop kernel: rndis_host 2-1.1:1.0: dev can't take 1558 byte packets (max 1458), adjusting MTU to 1400
Oct 26 12:30:54 mak-laptop kernel: rndis_host 2-1.1:1.0: eth1: register 'rndis_host' at usb-0000:00:1d.0-1.1, RNDIS device, 00:09:3b:f0:1a:40
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: failed to allocate link cache: (-10) Operation not supported
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): carrier is OFF
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): new Ethernet device (driver: 'rndis_host' ifindex: 4)
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): exported as /org/freedesktop/NetworkManager/Devices/2
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): now managed
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): bringing up device.
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): carrier now ON (device state 20)
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): preparing device.
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): deactivating device (reason 'managed') [2]
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: Auto-activating connection 'DHCP'.
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: Activation (eth1) starting connection 'DHCP'
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: Activation (eth1) Stage 1 of 5 (Device Prepare) scheduled...
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: Activation (eth1) Stage 1 of 5 (Device Prepare) started...
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: Activation (eth1) Stage 2 of 5 (Device Configure) scheduled...
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: Activation (eth1) Stage 1 of 5 (Device Prepare) complete.
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: Activation (eth1) Stage 2 of 5 (Device Configure) starting...
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): device state change: prepare -> config (reason 'none') [40 50 0]
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: Activation (eth1) Stage 2 of 5 (Device Configure) successful.
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: Activation (eth1) Stage 3 of 5 (IP Configure Start) scheduled.
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: Activation (eth1) Stage 2 of 5 (Device Configure) complete.
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: Activation (eth1) Stage 3 of 5 (IP Configure Start) started...
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): device state change: config -> ip-config (reason 'none') [50 70 0]
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: Activation (eth1) Beginning DHCPv4 transaction (timeout in 45 seconds)
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: dhcpcd started with pid 3325
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: Activation (eth1) Stage 3 of 5 (IP Configure Start) complete.
Oct 26 12:30:55 mak-laptop dhcpcd[3325]: version 5.2.12 starting
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): DHCPv4 state changed nbi -> preinit
Oct 26 12:30:55 mak-laptop dhcpcd[3325]: eth1: rebinding lease of 10.0.0.10
Oct 26 12:30:55 mak-laptop kernel: usb 2-1.1: USB disconnect, device number 4
Oct 26 12:30:55 mak-laptop kernel: rndis_host 2-1.1:1.0: eth1: unregister 'rndis_host' usb-0000:00:1d.0-1.1, RNDIS device
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): carrier now OFF (device state 70, deferring action for 4 seconds)
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): now unmanaged
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): device state change: ip-config -> unmanaged (reason 'removed') [70 10 36]
Oct 26 12:30:55 mak-laptop NetworkManager[1909]: (eth1): deactivating device (reason 'removed') [36]
Oct 26 12:30:55 mak-laptop dhcpcd[3325]: received SIGTERM, stopping
Oct 26 12:30:55 mak-laptop dhcpcd[3325]: eth1: removing interface
Oct 26 12:30:56 mak-laptop NetworkManager[1909]: (eth1): canceled DHCP transaction, DHCP client pid 3325
Oct 26 12:30:56 mak-laptop NetworkManager[1909]: (4) failed to find interface name for index
Oct 26 12:30:56 mak-laptop NetworkManager[1909]: nm_system_iface_flush_routes: assertion `iface != NULL' failed
Oct 26 12:30:56 mak-laptop NetworkManager[1909]: (4) failed to find interface name for index
Oct 26 12:30:56 mak-laptop NetworkManager[1909]: Policy set 'DHCP' (eth0) as default for IPv4 routing and DNS.
Oct 26 12:30:56 mak-laptop NetworkManager[1909]: Policy set 'DHCP' (eth0) as default for IPv4 routing and DNS.
Oct 26 12:30:56 mak-laptop NetworkManager[1909]: (eth1): cleaning up...
Oct 26 12:30:56 mak-laptop NetworkManager[1909]: (4) failed to find interface name for index
Oct 26 12:30:56 mak-laptop NetworkManager[1909]: (nm-system.c:685):nm_system_iface_get_flags: runtime check failed: (iface != NULL)
Oct 26 12:30:56 mak-laptop NetworkManager[1909]: [1351240256.52824] [nm-system.c:687] nm_system_iface_get_flags(): (unknown): failed to get interface link object
Oct 26 12:30:56 mak-laptop NetworkManager[1909]: (pid 3325) unhandled DHCP event for interface eth1
Oct 26 12:30:58 mak-laptop kernel: usb 2-1.1: new high-speed USB device number 5 using ehci_hcd
Oct 26 12:30:58 mak-laptop kernel: usb 2-1.1: New USB device found, idVendor=1076, idProduct=8001
Oct 26 12:30:58 mak-laptop kernel: usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 26 12:30:58 mak-laptop kernel: usb 2-1.1: Product: Modem Yota
Oct 26 12:30:58 mak-laptop kernel: usb 2-1.1: Manufacturer: GCT SEMICONDUCTOR Inc
Oct 26 12:30:58 mak-laptop kernel: scsi7 : usb-storage 2-1.1:1.0
Oct 26 12:30:59 mak-laptop kernel: scsi 7:0:0:0: CD-ROM GDM Mass PQ: 0 ANSI: 0 CCS
Oct 26 12:30:59 mak-laptop kernel: sr0: scsi3-mmc drive: 0x/0x caddy
Oct 26 12:30:59 mak-laptop kernel: sr 7:0:0:0: Attached scsi CD-ROM sr0
Oct 26 12:31:00 mak-laptop kernel: usb 2-1.1: USB disconnect, device number 5
Oct 26 12:31:01 mak-laptop kernel: usb 2-1.1: new high-speed USB device number 6 using ehci_hcd
Oct 26 12:31:01 mak-laptop kernel: usb 2-1.1: New USB device found, idVendor=1076, idProduct=8002
Oct 26 12:31:01 mak-laptop kernel: usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 26 12:31:01 mak-laptop kernel: usb 2-1.1: Product: Modem Yota
Oct 26 12:31:01 mak-laptop kernel: usb 2-1.1: Manufacturer: GCT SEMICONDUCTOR Inc
Oct 26 12:31:01 mak-laptop kernel: rndis_host 2-1.1:1.0: dev can't take 1558 byte packets (max 1458), adjusting MTU to 1400
Oct 26 12:31:01 mak-laptop kernel: rndis_host 2-1.1:1.0: eth1: register 'rndis_host' at usb-0000:00:1d.0-1.1, RNDIS device, 00:09:3b:f0:1a:40

И так до бесконечности. Проблема одинаковая с ядрами 3.2.1, 3.3.8, 3.4.9. udev ессно пересобирал, версии 171-r*.

Не пойму куда копать. Сначала думал, что ядро скидывает USB в поверсейв, но в итоге зависит от udev.

Посмотрите в lsusb

Посмотрите в lsusb идентификаторы вашего модема и поищите их в содержимом файлов в /etc/udev/rules.d/

grep <> -R /etc/udev/rules.d/*

Удалите / измените правило.

Странно, первым делом удалил

Странно, первым делом удалил от туда всё, а после рестарта udev он всё равно добавляет.

 # lsusb | grep GCT
Bus 002 Device 089: ID 1076:8002 GCT Semiconductor, Inc.

 # grep 1076 -RA1 /etc/udev/rules.d/*
/etc/udev/rules.d/70-persistent-net.rules:# USB device 0x1076:0x8002 (usb)
/etc/udev/rules.d/70-persistent-net.rules-#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:09:3b:f0:1a:40", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
--
/etc/udev/rules.d/70-persistent-net.rules:# USB device 0x1076:0x8002 (usb)
/etc/udev/rules.d/70-persistent-net.rules-SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:09:3b:f0:1a:40", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

Удалил правила, теперь не

Удалил правила, теперь не пересоздаются. Но проблема осталась та же. :(

.

Мой модем (такой же) после перезагрузки не подтверждает лизинг адреса dhcp. При этом начинает "тупить" вплоть до перезагрузки (модема еессно).

Вылечил костылем: в /etc/conf.d/net

preup() {

if [ ${IFACE} == eth1 ]
then
    if [ -e /var/lib/dhcpcd/dhcpcd-eth1.lease ] 
    then 
        rm /var/lib/dhcpcd/dhcpcd-eth1.lease
    fi
fi

}

использую не NetworkManager, а непосредственно openrc

Попробуйте dhclient, dhcpcd

Попробуйте dhclient, dhcpcd выдавал reject и получал ip типа 192.*.*.*. C dhclient проблем не обнаружил на данный момент.

Настройки просмотра комментариев

Выберите нужный метод показа комментариев и нажмите "Сохранить установки".