11111111111111111111111111111111111111111
22222222222222222222222222222222222222222
ربط-العميل-بماك-ادرس-عند-تسجيله-لاول-مره
/ip ho us pro set [find] on-login="/ip hotspot active\r\
\n:foreach i in=[find] do={\r\
\n:global mac [get \$i mac-address]\r\
\n:global add [get \$i address]\r\
\n:global us [get \$i user]\r\
\n:global inter [/ip ho get 0 interface]\r\
\n/ip hotspot user\r\
\n:foreach nm in=[find name=\$us] do={\r\
\n:global mac2 [get \$nm mac-address]\r\
\n:if ([find mac-address] =\"\") do={ set \$nm mac-address=\"\$mac\" addre\
ss=\"\$add\"\r\
\n/ip dhcp-server lease add mac-address=\"\$mac\" address=\"\$add\"\r\
\n/ip arp add address=\$add mac-address=\$mac interface=\$inter\r\
\n}}}"
0 تعليقات