What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

configuring subnet device as WAN

cafebueno

New Around Here
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:

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?
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top