Jump to content

3G connect scripts


Recommended Posts

I've been following the forums for a while now and have made little progress getting my Sierra 3G modem to connect. I took the latest advice and attached a powered hub to the device (all are on AC and not batteries) but I am still unable to get it to connect. Can someone point me in the right direction to decypher the connection string so I can try to get my 250U to connect?



Link to comment
Share on other sites

On the 3g page add the code below to it and try to connect.

*1199:0301*) echo "Sierra 250U detected. Attempting mode switch"
uci delete network.wan2
uci set network.wan2=interface
uci set network.wan2.ifname=ppp0
uci set network.wan2.proto=3g
uci set network.wan2.service=cdma
uci set network.wan2.device=/dev/ttyUSB0
uci set network.wan2.username=internet
uci set network.wan2.password=internet
uci set network.wan2.defaultroute=1
uci set network.wan2.ppp_redial=persist
uci set network.wan2.peerdns=0
uci set network.wan2.dns=
uci set network.wan2.keepalive=1
uci set network.wan2.pppd_options=debug
uci set network.wan2.pppd_options=noauth
uci commit network
usb_modeswitch -v 1199 -p 0301
sleep 10; rmmod usbserial
sleep 3; insmod usbserial vendor=0x1199 product=0x0301
sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop
logger "3G: firewall stopped"
iptables -t nat -A POSTROUTING -s -o 3g-wan2 -j MASQUERADE
iptables -A FORWARD -s -o 3g-wan2 -j ACCEPT
iptables -A FORWARD -d -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...