返回列表 發帖

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
複製代碼
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

Huawei E1550 modem on MikroTik RouterBoard

http://voffka.livejournal.com/1749171.html

TOP

回復 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?
RB750G, RB2011UAS-2HnD
IP01, A580IP, AT-610

TOP

I know whether the problem came from the Modem that I used or I did not know how to make it work.

TOP

Seeking help from Mikrotik support as the modem is on the hardware compatible list.
RB750G, RB2011UAS-2HnD
IP01, A580IP, AT-610

TOP

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   
複製代碼
RB750G, RB2011UAS-2HnD
IP01, A580IP, AT-610

TOP

回復 6# Qnewbie

Did you insert any SiM card into the USB modem? What kind of modem that you used?

TOP

Yes, SIM card is inserted.

Huawei E173.
RB750G, RB2011UAS-2HnD
IP01, A580IP, AT-610

TOP

Were you able to connect the Internet via the modem?

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

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

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

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

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

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

返回列表