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
 2. Then create a schedule to run the above script daily複製代碼#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"
set start time: 03:00:00複製代碼/system script run ether1-down-up
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
 
 1. Disable the pppoe-out1
 2. Enable the pppoe-out1複製代碼 /interface pppoe-client disable pppoe-out1 
複製代碼 /interface pppoe-client enable pppoe-out1 
 |