https://www.youtube.com/watch?v=zQpUKmOXY1E
arabic video
https://www.youtube.com/watch?v=QtsAeKia1Kc&t
Code:Select all
pppoe remote ip pool 192.168.202.2-192.168.202.254 pppoe local ip pool 192.168.203.2-192.168.203.254 ------------------------------------------ :global tiftokmac; :global tiftokf 1; :foreach i in=[/ ppp active find] do={ :set tiftokmac [ /ppp active get $i caller-id]; :foreach ii in=[/ ip hotspot ip-binding find where mac-address=$tiftokmac ] do={ :global tiftokf 0; } if ($tiftokf=1) do={ /ip hotspot ip-binding add mac-address=$tiftokmac ; } :global tiftokf 1; }