zamshed
November 22, 2009, 6:15am
1
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.
Chupaka
November 23, 2009, 12:12am
2
what version of ROS?
/ip/address/add
=address=1.2.3.4/32
=interface=tv
works fine with v4.2 and v3.28
zamshed
November 23, 2009, 2:32am
3
Thank you Chupaka, but my version is 3.25, so plz help by relevant code of v3.25.
fewi
November 23, 2009, 3:30am
4
Just upgrade to the latest code rev.
zamshed
November 23, 2009, 6:54am
5
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.
Chupaka
November 23, 2009, 9:00am
6
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 %)
zamshed
November 23, 2009, 9:39am
7
Hello.
Then how can I add MAC address? would you please help me.
Chupaka
November 23, 2009, 10:08am
8
you mean, ARP entry, or what?..
zamshed
November 23, 2009, 10:20am
9
yes Chupaka, u r right. I am successful to add MAC by using ARP. very very thnx to u. U show the right way.
normis
November 23, 2009, 1:19pm
10
you should upgrade to v3.30 or v4.2 to make this work