Hi!
I need a script for the followings:
I have ether1 (WAN - ISPline1)
I have ether3 (WANBCK - ISPLine2) (wireless connection to ISP) - DISABLED (same IP same everything)
I have ether2 local
IP address:
ether1 - 1.1.1.1/29
ether2 - 192.168.1.254/24
And when the gateway down I like to change the IP interface to ether3 so...
I create a netwatch to ping the gateway and if there is problem the netwatch down script
wanscript
/interface disable ether1
/interface enable ether3
/tool e-mail send to="xx@xy.com" subject="Problem with the Connection!"
/ip address set/get???..
After the script:
Interfaces
ether1 DISABLED
ether3 enabled
IP address:
ether3 - 1.1.1.1/29
ether2 - 192.168.1.254/24
Any suggestion?
Josh
In command line : If I like to remove the IP for ether 1 and readd the IP to ether3 I need to
/ip address print - to show what i want to remve, but how i do this in a script???? Thanks