Tell me how to get local-address from pppoe client connection ?
Code: Select all
:put [/interface pppoe-client get [find name=wan-pppoe] local-address]
:put [/interface pppoe-client get [find name=wan-pppoe] local-address]
{
/tool fetch url="http://myip.dnsomatic.com/" mode=http dst-path=mypublicip.txt
local ip [file get mypublicip.txt contents ]
put $ip
:log info ($ip)
}
Ignoring the missing "where" in script, Winbox get the data from different sources and put it together in same window.Hello
pppoe.jpg
Tell me how to get local-address from pppoe client connection ?is not work: input does not match any value of value-nameCode: Select all:put [/interface pppoe-client get [find name=wan-pppoe] local-address]
:put [/ip address get [find where interface=wan-pppoe] value-name=address]
:put [/ip address get [find where interface=wan-pppoe] value-name=network]
:global PPPoE02 [/interface/pppoe-client/monitor VDSL-A1-02 as-value once ]
:global PPPoE02 ($PPPoE02 -> "local-address")