I need to create a script as below:
I have three IP addresses on an interface, I need a script that checks the enabled IP then enable the second and disable the first.
Lastly the if the IP enabled is the third, the script enables the first IP then disables the last.