A novice here looking for help with the Huawei E8278 4G dongle. I have this working on Raspbian and OpenWRT via USB_modeswitch with zero interaction, as expected. Superb. The interface appears as wwan0, I can use screen on /dev/ttyusb0 to issue AT commands.
However, as this seems to be a HiLink device(?), it has its onboard DHCP server providing the connection on a 192.168.1.x subnet. This plays havoc with uPnP etc if the modem is set as the WAN on a router, with a 2nd subnet on the internal side (192.168.3.x in my case).
So, I was wondering if it is possible to 'switch' this modem to use a differing mode (ppp?) to bypass the onboard DHCP and hopefully avoid double NAT issues etc whilst keeping the 4G connection speeds?
Below are dmesg & lsusb outputs from before and after a 'normal' switch with nothing modified:
BEFORE
Code: Select all
[ 5.967523] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[ 6.194895] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=14fe
[ 6.203445] usb 1-1.2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 6.212330] usb 1-1.2: Product: HUAWEI Mobile
[ 6.218270] usb 1-1.2: Manufacturer: HUAWEI Technology
[ 6.347154] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 6.355397] scsi0 : usb-storage 1-1.2:1.0
[ 6.361765] usb-storage 1-1.2:1.1: USB Mass Storage device detected
[ 6.369876] scsi1 : usb-storage 1-1.2:1.1
[ 6.991295] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 7.388988] scsi 0:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 7.400842] scsi 1:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
[ 7.476869] sd 1:0:0:0: [sda] Attached SCSI removable disk
[ 9.666025] NET: Registered protocol family 10
[ 9.731660] nf_conntrack version 0.5.0 (7042 buckets, 28168 max)
[ 9.744107] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 9.781995] hidraw: raw HID events driver (C) Jiri Kosina
[ 9.828440] usbcore: registered new interface driver cdc_ether
[ 9.837810] usbcore: registered new interface driver cdc_ncm
[ 9.848023] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 9.904024] usbcore: registered new interface driver usbhid
[ 9.911084] usbhid: USB HID core driver
[ 9.937517] usbcore: registered new interface driver usbserial
[ 9.944863] usbcore: registered new interface driver usbserial_generic
[ 9.952844] usbserial: USB Serial support registered for generic
[ 9.978338] xt_time: kernel timezone is -0000
[ 9.991617] PPP generic driver version 2.4.2
[ 9.999148] NET: Registered protocol family 24
[ 10.010859] usbcore: registered new interface driver option
[ 10.017935] usbserial: USB Serial support registered for GSM modem (1-port)
[ 13.491772] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 13.500993] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 15.063437] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 15.073957] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
Code: Select all
Bus 001 Device 004: ID 12d1:14fe Huawei Technologies Co., Ltd.
Code: Select all
[ 3.197671] usb 1-1.3.2: new high-speed USB device number 5 using dwc_otg
[ 3.299819] usb 1-1.3.2: New USB device found, idVendor=12d1, idProduct=1506
[ 3.308320] usb 1-1.3.2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 3.318538] usb 1-1.3.2: Product: HUAWEI Mobile
[ 3.324494] usb 1-1.3.2: Manufacturer: HUAWEI Technology
[ 3.334483] usb-storage 1-1.3.2:1.2: USB Mass Storage device detected
[ 3.343053] scsi0 : usb-storage 1-1.3.2:1.2
[ 3.349580] usb-storage 1-1.3.2:1.3: USB Mass Storage device detected
[ 3.358106] scsi1 : usb-storage 1-1.3.2:1.3
[ 4.348892] scsi 0:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 4.362298] scsi 1:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
[ 4.377905] sd 1:0:0:0: [sda] Attached SCSI removable disk
[ 7.465159] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 10.032942] NET: Registered protocol family 10
[ 10.100273] nf_conntrack version 0.5.0 (7042 buckets, 28168 max)
[ 10.117682] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 10.156177] hidraw: raw HID events driver (C) Jiri Kosina
[ 10.205209] usbcore: registered new interface driver cdc_ether
[ 10.221820] usb 1-1.3.2: MAC-Address: 0c:5b:8f:27:9a:64
[ 10.229584] cdc_ncm 1-1.3.2:1.1 wwan0: register 'cdc_ncm' at usb-bcm2708_usb-1.3.2, Mobile Broadband Network Device, 0c:5b:8f:27:9a:64
[ 10.244592] usbcore: registered new interface driver cdc_ncm
[ 10.260953] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 10.303045] usbcore: registered new interface driver usbhid
[ 10.310074] usbhid: USB HID core driver
[ 10.318392] usbcore: registered new interface driver usbserial
[ 10.325702] usbcore: registered new interface driver usbserial_generic
[ 10.333636] usbserial: USB Serial support registered for generic
[ 10.393826] xt_time: kernel timezone is -0000
[ 10.406511] PPP generic driver version 2.4.2
[ 10.427729] NET: Registered protocol family 24
[ 10.448429] usbcore: registered new interface driver option
[ 10.455556] usbserial: USB Serial support registered for GSM modem (1-port)
[ 10.464568] option 1-1.3.2:1.0: GSM modem (1-port) converter detected
[ 10.473749] usb 1-1.3.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 14.111248] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 14.120638] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 14.161110] IPv6: ADDRCONF(NETDEV_UP): wwan0: link is not ready
[ 14.168818] cdc_ncm: wwan0: 50 mbit/s downlink 150 mbit/s uplink
[ 14.176540] cdc_ncm: wwan0: network connection: connected
[ 14.183681] IPv6: ADDRCONF(NETDEV_CHANGE): wwan0: link becomes ready
[ 15.516167] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 15.527221] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xDDE1
Code: Select all
Bus 001 Device 005: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
**Side note, "[ 14.168818] cdc_ncm: wwan0: 50 mbit/s downlink 150 mbit/s uplink" seems to indicate the speeds the wrong way round... The spec indicates 150 down and 50 up. Is this a bug?
I ran AT^SETPORT=? over screen /dev/ttyUSB0 and got:
Code: Select all
^SETPORT:2: 3G PCUI
^SETPORT:3: 3G DIAG
^SETPORT:5: 3G GPS
^SETPORT:A: BLUE TOOTH
^SETPORT:16: NCM
^SETPORT:A1: CDROM
^SETPORT:A2: SD
^SETPORT:12: 4G PCUI
^SETPORT:13: 4G DIAG
^SETPORT:14: 4G GPS
^SYSINFO:2,3,0,5,1,0,4
ATI
Manufacturer: huawei
Model: E8278
Revision: 21.261.67.00.105
IMEI: <-xxxxxxxx->
+GCAP: +CGSM,+DS,+ES
Given the above information, is it possible to bypass the HiLink part and run it as, say, ppp to avoid double NAT?
Many thanks,
Tristan