Dear all,
I'm new with RouterOS script and I have some problem need help. How can I get mac-address the first interface on my router.
Thanks for your support
:put [/interface ethernet get [/interface ethernet find default-name=ether1] mac-address ]
Very nice. Thanks for your supportCode: Select all:put [/interface ethernet get [/interface ethernet find default-name=ether1] mac-address ]
thx a lot broCode: Select all:put [/interface ethernet get [/interface ethernet find default-name=ether1] mac-address ]
:put [/interface ethernet get 0 mac-address ]
:put [/interface ethernet get <current interface name> mac-address ]
But it's also bullshit because numbers and ids shouldn't be used.works too , but much shorter to type.Code: Select all:put [/interface ethernet get 0 mac-address ]
:put [/interface ethernet get [find where default-name=ether1] mac-address]
:put [/interface ethernet get ether1 mac-address]
:put [/in et g [f default-name=ether1] ma]
:put [/int eth get [find default-name=ether1] mac]
:put [/int get ([find]->0) mac-address]