MikroTik LtAP mini LTE kit 4G 路由器
有没有人试过 新的 LTE 4G 路由器。。是Micro-USB 能供電?
2 SIM 卡,是不是一邊移動,一邊電信。能看到那邊VPN有問題,將Traffic換到沒有問題那邊?
主要是路上用。維持VOWi-Fi。。。 [b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=45099&ptid=7206]1#[/url] [i]yiucsw[/i] [/b]
它的Spec有写的。
[attach]4145[/attach] 看到淘寶有買:
RMB$580.00 沒有LTE; RMB$860.00 有LTE
只是不知道:Two SIM slots -> 雙卡雙待?
用Powerbank(5V)對 Micro-USB 供電? 没有中英文
[url]https://www.youtube.com/watch?v=J0WPCm6hNK4&ab_channel=PongpipatThunyawiraphap[/url] 是雙卡單待的 SIM.. up/down, 要用Command line 改。
用mini-USB 5V 尿袋能推動。(要大A數)。 我有相关的 切换脚本,欢迎找我哦 [i=s] 本帖最後由 yiucsw 於 2018-8-11 11:21 編輯 [/i]
[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=45240&ptid=7206]6#[/url] [i]jmj[/i] [/b]
我想是改Mode Button: SIM down, SIM up, Ether1 ( Toggle 到連到WAN.
那我不用到 Winbox 來改
LTAP SIM 中國移動 + SSTP 效果不錯,VPN沒有太大問題。只是啟動比較慢。不能支持中國電信。
要是有dual WLAN 便Perfect..
能將你的 Mode Button Script post 上來嗎。
VPN 是用SSTP + BCP , 你的是用什麼?
找到下邊的 Script.. 還沒有時間想如何改。
/system routerboard mode-button
set enabled=yes on-event=wlan_on_off
# script
/system script
add name=wlan_on_off owner=admin policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":local i\r\
\n:if ( [/int wir get 0 disabled ] = true ) do={\r\
\n :foreach i in= [ /int wir find ] do={ :int wir enable \$i };\r\
\n } else={\r\
\n :foreach i in= [ /int wir find ] do={ :int wir disable \$i };\r\
\n :int wir disable \$i;\r\
\n}\r\
\n" [quote]回復 jmj
我想是改Mode Button: SIM down, SIM up, Ether1 ( Toggle 到連到WAN.
那我不用到 Winbox 來 ...
[size=2][color=#999999]yiucsw 發表於 2018-8-11 11:19[/color] [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=45251&ptid=7206][img]http://www.telecom-cafe.com/forum/images/common/back.gif[/img][/url][/size][/quote]
您貼的code不是運作的script ,而是要貼入命令視窗,進行匯入用的. [i=s] 本帖最後由 yiucsw 於 2018-8-27 01:07 編輯 [/i]
在旅途中拿電腦開Winbox,來要改雙卡單待的 SIM比較難。所有改wiki mikrotik "dual sim Script". SIM up(hk) 是香港, SIM down(CN)是中國, 要是沒有連網, SIM UP and SIM down (互換)。
{
# Setup and read current values, switch between "up" SIM slot, and "down" if not connected.
:global simSlot [/system routerboard sim get sim-slot]
:global timeoutLTE 60
:global timeoutConnect 60
:log info message="Enter RoamingScript"
# Wait for LTE to initialize for maximum "timeoutLTE" seconds
:local i 0
:local isLTEinit false
:while ($i<$timeoutLTE) do={
:foreach n in=[/interface lte find] do={:set $isLTEinit true}
:if ($isLTEinit=true) do={
:set $i $timeoutLTE
}
:set $i ($i+1)
:delay 1s
}
# Check if LTE is initialized, or try power-reset the modem
:if ($isLTEinit=true) do={
# Wait for LTE interface to connect to mobile network for maximum "timeoutConnet" seconds
:local isConnected false
:set $i 0
:while ($i<$timeoutConnect) do={
:if ([/interface lte get [find name="lte-1"] running]=true) do={
:set $isConnected true
:set $i $timeoutConnect
}
:set $i ($i+1)
:delay 1s
}
# Check if LTE is connected
if ($isConnected=true) do={
:log info message="Connected, do nothing"
} else={
:log info message="LTE interface did not connect to network, switch Dual SIM"
:if ($simSlot="down") do={
# If "down" (home) slot, check roaming status
:log info message="SIM existed but not running, switching to SIM UP (HK) APN-HK"
/system routerboard sim set sim-slot=up
/interface lte set [find] apn-profiles="APN-HK"
} else={
# Else "up" (roaming) slot, check roaming status
:log info message="SIM existed but not running, switching to SIM DOWN (CN) APN-CMCC"
/system routerboard sim set sim-slot=down
/interface lte set [find] apn-profiles="APN-CMCC"
}
}
} else={
:log info message="LTE modem did not appear, trying power-reset"
/system routerboard usb power-reset duration=5s
}
} 原本setup 開機,BGP 連香港,WI-FI 直接翻牆。要connect不成功便沒有辦法連Wi-Fi (沒有remote DHCP).
終於是加一個Virtual Wifi interface 連到本地的Bridge,當有問題要能連到Mikrotik. LTAP 是常开Roaming, 過關要VOWIFI不是很方便,所有改了用mode-button, 按一下改那個SIM 連上網,WIFI網路不會斷太久。
開Mode-button:
/system routerboard mode-button set on-event=switchsim
/system routerboard mode-button set enabled=yes
system script switchsim
{
:local simSlot [/system routerboard sim get sim-slot]
:log info "Mode Button press, switch sim-slot current $simSlot"
:if ($simSlot="down") do={
/system routerboard sim set sim-slot=up
:log info "swtich sim position by mode to up"
} else {
/system routerboard sim set sim-slot=down
:log info "swtich sim position by mode to down"
}
頁:
[1]