CLI input on enter key is presented with numbers:

Looking for clarification on this cli entry

Current Config
admin@switch-A] /ip address > export
/ip address
add address=10.0.0.1/24 network 10.0.0.0

CHANGE
admin@switch-A] /ip address
admin@switch-A] /ip address > set address=10.0.0.1/24 interface=bridge1
numbers:

What is this looking for?

Thank you
Frank

If you do “print”, it will print numeric IDs for entries in the current CLI section. It wants you to provide an ID for which record to configure the “address” and “interface” parameters on.

What you are looking for is:

set [find interface=bridge1] address=10.0.0.1/24

You need to tell ROS which item to change, and what on that particular item to change.

The other option is not using find, but providing that numeric ID yourself, such as:

set 0 address=10.0.0.1/24

The 0 here is from the output of “print”, “#” column.

Maybe an intro to the above - set is used to change properties of an already existing configuration object, and if multiple objects of the same type may exist, you have to specify which ones the set should modify (even if actually only one object of that type exists).

To create a new object, you have to use add.

Thank you!

admin@switch-A] /ip address > export
/ip address
add address=10.0.0.1/24 network 10.0.0.0
The interface is not present.
This mean a error. Probably you have delete a bridge or other removable interface, orphaning the IP from one interface.
And probably is why you want set the interface to the orphan IP.

When you try to set the interface, you do not specify to what IP you want change the interface,
but you specify the IP like is a parameter to change
admin@switch-A] /ip address > set address=10.0.0.1/24 interface=bridge1
numbers:
The system ask you the number, because you are not provide on what record you want address and interface,
on the Item list, from MikroTik, first element start from 0, the second is 1 and so on.
In this case with only one record, the 0 is the only possible value.

This do not work on same cases with deleted interface from address
set [find interface=bridge1] address=10.0.0.1/24because the IP is not assigned to any interface, and bridge1 are not present on any record

This is useless on same cases with deleted interface from address
set 0 address=10.0.0.1/24because we want set the missing interface, not the address

One of way to do it, on same cases with deleted interface from address,
or after a

print

you do a

set 0 interface=bridge1

or the correct way

set [find where address="10.0.0.1/24"] interface=bridge1

the “find” replace the search on print of the right id
warning: if you do not place the quotes " " the search not work.