Such modem has two IP address (unchangeable): 192.168.8.100 - as interface address and 192.168.8.1 - for WEB based configuration.
It works correctly with OpenWRT based router (just plug&play). Below output of ifconfig from router (Part about this interface):
- Code: Select all
eth1 Link encap:Ethernet HWaddr 0C:5B:8F:27:9A:64
inet addr:192.168.8.100 Bcast:192.168.8.255 Mask:255.255.255.0
inet6 addr: fe80::e5b:8fff:fe27:9a64/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1751 errors:0 dropped:0 overruns:0 frame:0
TX packets:294 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:728346 (711.2 KiB) TX bytes:23442 (22.8 KiB)
OpenWRT use usb_modeswitch and hotplug instead udev rules.
When modem is connected to M7, the output from ifcofig is as follows:
- Code: Select all
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::dacb:8aff:fe9a:3cc6 prefixlen 64 scopeid 0x20<link>
ether d8:cb:8a:9a:3c:c6 txqueuelen 1000 (Ethernet)
RX packets 11206 bytes 6301403 (6.0 MiB)
RX errors 0 dropped 465 overruns 0 frame 0
TX packets 10664 bytes 1537343 (1.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xfb200000-fb220000
enp0s20u3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::e5b:8fff:fe27:9a64 prefixlen 64 scopeid 0x20<link>
ether 0c:5b:8f:27:9a:64 txqueuelen 1000 (Ethernet)
RX packets 46 bytes 19367 (18.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 21 bytes 4175 (4.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 236 bytes 13464 (13.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 236 bytes 13464 (13.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp0s20u6u2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether e4:be:ed:67:ea:78 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
So modem is present as an interface, but no IP address assigned.
And output from dmesg after plug-in modem to USB port:
- Code: Select all
[ 832.114621] usb 2-3: new high-speed USB device number 11 using xhci_hcd
[ 832.241351] usb 2-3: New USB device found, idVendor=12d1, idProduct=1f01, bcdDevice= 1.02
[ 832.241355] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 832.241357] usb 2-3: Product: HUAWEI_MOBILE
[ 832.241359] usb 2-3: Manufacturer: HUAWEI_MOBILE
[ 832.241360] usb 2-3: SerialNumber: 0123456789ABCDEF
[ 832.242744] usb-storage 2-3:1.0: USB Mass Storage device detected
[ 832.242876] scsi host6: usb-storage 2-3:1.0
[ 832.804015] usb 2-3: USB disconnect, device number 11
[ 833.247678] usb 2-3: new high-speed USB device number 12 using xhci_hcd
[ 833.374260] usb 2-3: New USB device found, idVendor=12d1, idProduct=14dc, bcdDevice= 1.02
[ 833.374264] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 833.374266] usb 2-3: Product: HUAWEI_MOBILE
[ 833.374267] usb 2-3: Manufacturer: HUAWEI_MOBILE
[ 833.379351] cdc_ether 2-3:1.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-3, CDC Ethernet Device, 0c:5b:8f:27:9a:64
[ 833.379634] usb-storage 2-3:1.2: USB Mass Storage device detected
[ 833.379745] scsi host6: usb-storage 2-3:1.2
[ 833.396256] cdc_ether 2-3:1.0 enp0s20u3: renamed from eth0
[ 834.400346] scsi 6:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
[ 834.400706] sd 6:0:0:0: Power-on or device reset occurred
[ 834.401434] sd 6:0:0:0: [sdc] 15126528 512-byte logical blocks: (7.74 GB/7.21 GiB)
[ 834.401594] sd 6:0:0:0: [sdc] Write Protect is off
[ 834.401595] sd 6:0:0:0: [sdc] Mode Sense: 0f 00 00 00
[ 834.401745] sd 6:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 834.404548] sdc: sdc1
[ 834.405435] sd 6:0:0:0: [sdc] Attached SCSI removable disk
[ 855.692777] net-fw DROP IN=eno1 OUT= MAC=d8:cb:8a:9a:3c:c6:54:a0:50:cc:bf:02:08:00 SRC=34.215.61.249 DST=192.168.0.2 LEN=40 TOS=0x00 PREC=0x00 TTL=37 ID=0 DF PROTO=TCP SPT=443 DPT=55288 WINDOW=0 RES=0x00 RST URGP=0
What to do to make the modem working?