Sysnet Board คู่มือ การใช้งานอุปกรณ์ Network

การ Config อุปกรณ์ เครือข่าย Network Device => อุปกรณ์ Mikrotik Router => หัวข้อที่ตั้งโดย: chenola เมื่อ วันที่ 21 มีนาคม 2013, 23:11:25

ชื่อ: ddnsinterface ดูได้จากตรงไหนของ winbox ที่จะเอาไปใส่ใน script.........ขอบคุณคับ
โดย: chenola เมื่อ วันที่ 21 มีนาคม 2013, 23:11:25
ผู้รู้ช่วยตอบที
ชื่อ: Re: ddnsinterface ดูได้จากตรงไหนของ winbox ที่จะเอาไปใส่ใน script.........ขอบคุณคับ
โดย: chenola เมื่อ วันที่ 21 มีนาคม 2013, 23:30:38
ใช้  Bridge  หรือ ether1

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

ถ้าใช้ไฟล์ Restore ของทางร้านตั้งให้ไปตั้งแต่แรกคับ
ชื่อ: Re: ddnsinterface ดูได้จากตรงไหนของ winbox ที่จะเอาไปใส่ใน script.........ขอบคุณคับ
โดย: yod เมื่อ วันที่ 22 มีนาคม 2013, 13:17:56


bridge1 ครับ
ชื่อ: Re: ddnsinterface ดูได้จากตรงไหนของ winbox ที่จะเอาไปใส่ใน script.........ขอบคุณคับ
โดย: chenola เมื่อ วันที่ 22 มีนาคม 2013, 14:53:12
แล้วถ้าเป็น แบบ  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= [email protected] subject="Long_WiFi xxxxxx$newIP" body=" xxxxxxx = $newIP"  tls=yes
}