Getting PPPoE IP Address

A fast scriptlet I made for a companion today to allow them to recover an IP addess from a particular PPPoE program. Handy for changing DynDNS items among other elements.
1:local wanip [/ip address get [/ip address find where interface=pppoe-wan] address];
2:set wanip [:pick $wanip 0 ([:len $wanip]-3) ];
3#whatever you want to do with said IP goes here
4:put $wanip;
Obviously update pppoe-wan with your interface name
Title : Getting PPPoE IP Address
Description : A fast scriptlet I made for a companion today to allow them to recover an IP addess from a particular PPPoE program. Handy for changing DynD...

0 Response to "Getting PPPoE IP Address"

Posting Komentar