Can somebody help me with script (MAC generator)?

Changing MAC address presented to Network - #3 by pavelgl ?
LAN IP can be changed in the same manner.