[API] How to change IP adrress
Posted: Fri Feb 20, 2015 6:45 pm
Hello
I'm trying to change IP address of one interface on the router using API.
What I have as a coomand is:
and API response is
so it lloks like everything is OK.... But it is not. IP is not changed.
Mikrotik 6.18
Anybody can help ?
EDIT
If I use .id as selector for interface
I have !trap response.
It's very confusing, as =.id= works perfectly with SSID changing for example, but here it is not.
I'm trying to change IP address of one interface on the router using API.
What I have as a coomand is:
Code: Select all
/ip/address/set
=interface=hotspot_bridge
=address=2.2.2.2
=netmask=255.255.0.0
Code: Select all
!done
Mikrotik 6.18
Anybody can help ?
EDIT
If I use .id as selector for interface
Code: Select all
/ip/address/set
=.id=hotspot_bridge
=address=2.2.2.2
=netmask=255.255.0.0
It's very confusing, as =.id= works perfectly with SSID changing for example, but here it is not.