Board logo

標題: OTG Micro-B plug and Standard A receptacle for USB modem [打印本頁]

作者: 角色    時間: 2013-1-5 14:15     標題: 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就可以上网。

[attach]2106[/attach]

然后插上我的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
複製代碼

作者: 角色    時間: 2013-1-5 15:01

Huawei E1550 modem on MikroTik RouterBoard

http://voffka.livejournal.com/1749171.html
作者: Qnewbie    時間: 2013-10-21 18:20

回復 2# 角色


    Suck at the port. Mikrotik cannot recognize the huawei modem.

The given link is broken

Do C-hing remember how to solve the problem?
作者: 角色    時間: 2013-10-21 19:33

I know whether the problem came from the Modem that I used or I did not know how to make it work.
作者: Qnewbie    時間: 2013-10-21 23:15

Seeking help from Mikrotik support as the modem is on the hardware compatible list.
作者: Qnewbie    時間: 2013-10-22 05:27

Finally got it work:
1. Power-off mikrotik's router.
2. Plug in USB modem.
3. Power on.

Bingo!
  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                             9600   
複製代碼

作者: 角色    時間: 2013-10-22 07:09

回復 6# Qnewbie

Did you insert any SiM card into the USB modem? What kind of modem that you used?
作者: Qnewbie    時間: 2013-10-22 19:39

Yes, SIM card is inserted.

Huawei E173.
作者: 角色    時間: 2013-10-22 20:27

Were you able to connect the Internet via the modem?
作者: 角色    時間: 2013-10-25 21:51

本帖最後由 角色 於 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] >
複製代碼

作者: 角色    時間: 2013-10-25 23:27

现在modem可以用console连上internet,但是在其他etherX不能上网。
作者: 角色    時間: 2013-10-26 17:01

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.
作者: 角色    時間: 2013-10-26 17:06

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>
複製代碼

作者: Qnewbie    時間: 2013-10-26 17:25

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.
作者: 角色    時間: 2013-10-26 17:28

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.
作者: Qnewbie    時間: 2013-10-26 19:09

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.
作者: 角色    時間: 2013-10-26 19:17

Thanks you for your advice.

By the way, what the lowest and best offer of the data plan in your area?
作者: Qnewbie    時間: 2013-10-26 20:28

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.
作者: 角色    時間: 2013-10-26 20:59

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?
作者: Qnewbie    時間: 2013-10-26 21:24

Yes, I am using its data plan to make calls.
作者: 角色    時間: 2013-10-26 21:30

The major issue using data plan to make phone calls is the delay! However it will be much cheaper then ordinary mobile operators.
作者: 角色    時間: 2013-10-26 21:46

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.




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2