標題: Method to change public IP of HKT / PCCW users [打印本頁] 作者: 角色 時間: 2022-5-2 10:48 標題: Method to change public IP of HKT / PCCW users
本帖最後由 角色 於 2022-5-4 22:18 編輯
It is best to change the public IP of your modem daily due to easy access via vpn.
1. The first thing you need to do is by creating a script
#ether1-down-up
/interface ethernet set ether1 disabled=yes
:log warning "Interface 1 is down"
delay "1h";
/interface ethernet set ether1 disabled=no
:log warning "Interface 1 is up"
複製代碼
2. Then create a schedule to run the above script daily
/system script run ether1-down-up
複製代碼
set start time: 03:00:00
interval: 1d 00:00:00
Please note the wan interface "ether1" should match with your settings as someone may change the ether1 to other name "Wan". You have to change the name "ether1" in the script by "Wan" accordingly.
In case of pppoe dialling method is used to access the Internet, the following two commands to disable and enable the pppoe function