# Change Name Interface or Ether To Default Auto - Mikrotik Script RouterOS

    I made this simple script to make it easier for us to return the interface name (ether) to the factory default name without having to reset the proxy. There are times when we forget the order on the Mikrotik port even though we have given the ether name, for example with the name "LAN" but whether "LAN" is plugged into what port. so the meaning is clear :)

    #####################################
    # Script by Agus Ramadhani
    # fb.com/buananet.pangkalanbun
    # http://www.o-om.com
    # SCRIPT name interface to default
    ######################################
    :foreach i in=[/interface ethernet find ] do={
    :local y [/interface ethernet get $i name] ;
    :local x [/interface ethernet get $i default-name];
    :log warning "Change interface Name $y => $x"
    /interface set $y name=$x;
    }
    Credit: www.o-om.com