返回列表 發帖

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
  1. #ether1-down-up

  2. /interface ethernet set ether1 disabled=yes
  3. :log warning "Interface 1 is down"

  4. delay "1h";

  5. /interface ethernet set ether1 disabled=no
  6. :log warning "Interface 1 is up"
複製代碼
2. Then create a schedule to run the above script daily
  1. /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

1. Disable the pppoe-out1
  1. /interface pppoe-client disable pppoe-out1
複製代碼
2. Enable the pppoe-out1
  1. /interface pppoe-client enable pppoe-out1
複製代碼

返回列表