Monday, September 22, 2008

Script mikrotik untuk delete dan membuat statik mac address

:log warning "Paidjo mati!"
:do {
:foreach i in=[/ip arp find mac-address=FF:FF:FF:FF:FF:FF] \
do={
:log warning ("MAC paidjo di del!");
/ip arp remove $i;
}
/ip arp add address=192.168.15.10 mac-address=FF:FF:FF:FF:FF:FF interface=lan disabled=no comment="auto generated"
} while ([/tool netwatch get [/tool netwatch find comment="Paidjo"] status]="down")

No comments: