How can I add MAC by using PHP API?

How can I add MAC by using PHP API? I am doing code as follows,

$API->write(‘/ip/address/add’,false);
$API->write(‘=address=xxx.xxx.xxx.xxx/32’,false);
$API->write(‘=interface=my_interface_1’);

But it’s not working…It’s showing UNKNOWN PARAMETER…plz help me.

what version of ROS?

/ip/address/add
=address=1.2.3.4/32
=interface=tv

works fine with v4.2 and v3.28

Thank you Chupaka, but my version is 3.25, so plz help by relevant code of v3.25.

Just upgrade to the latest code rev.

Sorry fewi. as a newbie on MikroTik I can’t understand the meaning of your reply
about my problem. Would you please make it clear to me? thanx in advance.

by the way, ‘/ip/address’ have nothing to do with MAC =)

p.s. I don’t have 3.25 to test. but I think, it should work also in 3.25 %)

Hello.
Then how can I add MAC address? would you please help me.

you mean, ARP entry, or what?..

yes Chupaka, u r right. I am successful to add MAC by using ARP. very very thnx to u. U show the right way.

you should upgrade to v3.30 or v4.2 to make this work