Welcome to Sysnet Board คู่มือ การใช้งานอุปกรณ์ Network. Please log in or sign up.
สมาชิกทั้งหมด
17,637
กระทู้ทั้งหมด
10,062
หัวข้อทั้งหมด
4,727

  • ddnsinterface ดูได้จากตรงไหนของ winbox ที่จะเอาไปใส่ใน script.........ขอบคุณคับ
    เริ่มโดย chenola
    Read 3,969 times
0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

ใช้  Bridge  หรือ ether1

# Set needed variables
:local ddnsuser "xxxxxxx"
:local ddnspass "xxxxxxx"
:local theinterface "Bridge หรือ ether1"
:local ddnshost "xxxxxxx.changeip.org"

ถ้าใช้ไฟล์ Restore ของทางร้านตั้งให้ไปตั้งแต่แรกคับ


แล้วถ้าเป็น แบบ  ip to mail ละคับ ผมต้องใช้ชื่อไหนครับ ผมเปลี่ยนหลายรอบม่ส่งซักทีเลยครับ จนหนทางละคับ
:global currentIP;

:local newIP [/ip address get [find interface="xxxxxx"] address];

:if ($newIP != $currentIP) do={
    :put "ip address $currentIP changed to $newIP";
    :set currentIP $newIP;
/tool e-mail send to= xxxxxxx@gmail.com subject="Long_WiFi xxxxxx$newIP" body=" xxxxxxx = $newIP"  tls=yes
}