返回列表 發帖

OTG Micro-B plug and Standard A receptacle for USB modem

本帖最後由 角色 於 2013-1-5 14:56 編輯

如果你的USB Modem能在MikroTik的OS认可,那么你可以通过OTG Micro-B plug to Standard-A receptacle,再加上适当配置,那么你的USB 3G在routerboadrd就可以上网。



然后插上我的modem在RB2011UAS-2HnD-IN,只能做到
  1. [admin@MikroTik] /system resource usb> print
  2. # DEVICE VENDOR                   NAME                  SPEED
  3. 0 1:1                             RB400 EHCI            480 Mbps
  4. 1 1:6    HUAWEI Technology        HUAWEI Mobile         480 Mbps
複製代碼
不能再下一步:
  1. [admin@MikroTik] /system resource usb> /port print
  2. Flags: I - inactive
  3. #   NAME                        CHANNELS USED-BY                     BAUD-RATE
  4. 0   serial0                            1 Serial Console              auto
複製代碼
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

When the same data card was moved to another 3G modem which is specifically used for China Union network, I was not able to access the broadband internet.

TOP

The major issue using data plan to make phone calls is the delay! However it will be much cheaper then ordinary mobile operators.

TOP

Yes, I am using its data plan to make calls.
RB750G, RB2011UAS-2HnD
IP01, A580IP, AT-610

TOP

The plan is very good and not expansive. How comes the mobile phone charge is so high?With the low price data plan, you could make and receive voip calls via the data plan, right?

TOP

I have been using mobile phone+surf(speed<1Mb/s) plan(~HK$70) per month for more than one year now.

There was a free data plan(1G/month), which I missed the promotion.
RB750G, RB2011UAS-2HnD
IP01, A580IP, AT-610

TOP

Thanks you for your advice.

By the way, what the lowest and best offer of the data plan in your area?

TOP

You might need watchdog for your 3G connection too:
http://forum.mikrotik.com/viewtopic.php?f=9&t=69807

I set the 3G modem as failover internet connection and use dial-on-demand but in your case you might need the watchdog.
RB750G, RB2011UAS-2HnD
IP01, A580IP, AT-610

TOP

Thanks!

Now I am able to access the Internet via my Huawei E1550 3G modem which was a gift when I renewed the PCCW broadband contract.

TOP

Maybe you forget the NAT rule:
  1. /ip firewall nat
  2. add chain=srcnat action=masquerade out-interface=ppp-out1
複製代碼
If it doesn't work after adding the nat rule. Check add-default-route option
  1. /interface ppp-client print
複製代碼
set add-default-route=yes if not.
RB750G, RB2011UAS-2HnD
IP01, A580IP, AT-610

TOP

For completeness, I included all the rules in my RB for your interest as follows:
  1. [admin@MikroTik] > /ip firewall nat
  2. [admin@MikroTik] /ip firewall nat> add chain=srcnat action=masquerade to-address                                                                             es=0.0.0.0 out-interface=ppp-out1
  3. [admin@MikroTik] /ip firewall nat> print
  4. Flags: X - disabled, I - invalid, D - dynamic
  5. 0   ;;; default configuration
  6.      chain=srcnat action=masquerade out-interface=sfp1-gateway

  7. 1   ;;; default configuration
  8.      chain=srcnat action=masquerade to-addresses=0.0.0.0
  9.      out-interface=ether1-gateway

  10. 2   chain=dstnat action=dst-nat to-addresses=192.168.88.100 to-ports=5060
  11.      protocol=udp dst-port=5060

  12. 3   chain=dstnat action=dst-nat to-addresses=192.168.88.100
  13.      to-ports=10000-20000 protocol=udp dst-port=10000-20000

  14. 4   chain=dstnat action=dst-nat to-addresses=192.168.88.100 to-ports=8088
  15.      protocol=tcp dst-port=8088

  16. 5   chain=srcnat action=masquerade to-addresses=0.0.0.0 out-interface=ppp-out1
  17. [admin@MikroTik] /ip firewall nat> move 5 2
  18. [admin@MikroTik] /ip firewall nat> print
  19. Flags: X - disabled, I - invalid, D - dynamic
  20. 0   ;;; default configuration
  21.      chain=srcnat action=masquerade out-interface=sfp1-gateway

  22. 1   ;;; default configuration
  23.      chain=srcnat action=masquerade to-addresses=0.0.0.0
  24.      out-interface=ether1-gateway

  25. 2   chain=srcnat action=masquerade to-addresses=0.0.0.0 out-interface=ppp-out1

  26. 3   chain=dstnat action=dst-nat to-addresses=192.168.88.100 to-ports=5060
  27.      protocol=udp dst-port=5060

  28. 4   chain=dstnat action=dst-nat to-addresses=192.168.88.100
  29.      to-ports=10000-20000 protocol=udp dst-port=10000-20000

  30. 5   chain=dstnat action=dst-nat to-addresses=192.168.88.100 to-ports=8088
  31.      protocol=tcp dst-port=8088
  32. [admin@MikroTik] /ip firewall nat>
複製代碼

TOP

Now I am able to use the 3G modem to connect internet and write this message. The most important issue to add a router from the 3G modem to the current network by
  1. /ip firewall nat> add chain=srcnat action=masquerade to-address                                                                             es=0.0.0.0 out-interface=ppp-out1
複製代碼
After adding, I moved the above rules to a suitable line.

TOP

现在modem可以用console连上internet,但是在其他etherX不能上网。

TOP

本帖最後由 角色 於 2013-10-25 22:24 編輯

My E1550 modem is also able to give the same results as Qnewbie did

/system resource usb print
  1. [admin@MikroTik] > /system resource usb print
  2. # DEVICE VENDOR                   NAME                  SPEED
  3. 0 1:1                             RB400 EHCI            480 Mbps
  4. 1 1:3    HUAWEI Technology        HUAWEI Mobile         480 Mbps
  5. [admin@MikroTik] >
複製代碼
/port print
  1. [admin@MikroTik] > /port print
  2. Flags: I - inactive
  3. #   NAME                        CHANNELS USED-BY                     BAUD-RATE
  4. 0   serial0                            1 Serial Console              auto
  5. 1   usb2                               2 PPP <ppp-out1>              9600
  6. [admin@MikroTik] >
複製代碼

TOP

Were you able to connect the Internet via the modem?

TOP

返回列表