enable and disable ip address

Hello,


I need a simple script to enable and disable IP address on interfaces, I want to use it on VRRP actions when it become to Master or Backup.It would be great if any one have and tell it to me.

Regards
Farid

Use method described here:
http://forum.mikrotik.com/t/disable-and-enable-routes-using-netwatch/19324/1

but instead of comment you can search by interface name.

Hello,

Many thanks it is working fine , just one problem is remain! on VRRP menus in Scripts tab , in the ON MASTER field I should write : /ip address disable [/ip address find comment=“test”]
then when route rbecome master IP address become Enable!!! I mean it is oposite that it should be!


Farid