I've got a Vodafone R216h hotspot. I have not been able to find information about using usb_modeswitch to switch it to a USB modem device. All the examples I've found switch it to a USB ethernet adapter:
(I tried sending it the long message that some other Huawei devices seem to accept, to no avail. e.g. "-M "555342430....").
So, I've gotten as far as it showing up as network interface eth3:
I can also run udhcpc to have the interface get a DHCP address from the hotspot:
What I have not figured out is how to have the router use eth3 as its WAN interface, so that it can do these steps on its own as it does on the "normal" WAN interface?
Code:
usb_modeswitch --default-vendor=12d1 --default-product=1f09 --target-product=1c50 -W -J
(I tried sending it the long message that some other Huawei devices seem to accept, to no avail. e.g. "-M "555342430....").
So, I've gotten as far as it showing up as network interface eth3:
Code:
sb 1-1: new high speed USB device using ehci_hcd and address 11
cdc_ether 1-1:1.0: eth3: register 'cdc_ether' at usb-0000:00:0b.1-1, CDC Ethernet Device, <mac_address>
I can also run udhcpc to have the interface get a DHCP address from the hotspot:
Code:
/sbin/udhcpc -i eth3 -p /var/run/udhcpc3.pid -s /tmp/udhcpc3
udhcpc (v1.20.2) started
Sending discover...
Sending select for 192.168.0.100...
Lease of 192.168.0.100 obtained, lease time 86400
What I have not figured out is how to have the router use eth3 as its WAN interface, so that it can do these steps on its own as it does on the "normal" WAN interface?