I want a script to toggle my WAN Mac address in-order to obtain a new IP address so I try to create a script but it not working at all
please help identify what I'm doing it wrong. thank for all your kindness
below is my script.
:mac [/interface ethernet get [find where name="ether1"] mac-address]
:put $mac
:if ( $mac = 2C:C4:1B:A5:1F:E0 ) do={
/interface ethernet set [find where name="ether1"] mac-address=2C:C4:1B:A5:1F:E7
:log info "Change Mac Address to to Release IP Address"
} else={
/interface ethernet set [find where name="ether1"] mac-address=2C:C4:1B:A5:1F:E0
:log info "Change Mac Address Back to Original"
}