OSX static address13.nov 2011
Ever wondered how to change the MAC address on
your Macintosh and set up a static IP address? Place these few lines
to AppleScript editor and change the addresses (mac/ip/mask/gateway). After
running this script you can check whether it is working by running
"ifconfig" from your console. The "en2" points to a USB to Ethernet
converter, in my case I am using Macbook Air with usb adapter. By running
the ifconfig command the system will show you a list of all network
adapters, so choose the right one and replace the "en2" with the
adapter you want to set for static address..

do shell script "ifconfig en2 ether 00:17:31:ac:33:13" with administrator privileges do shell script "ifconfig en2 147.175.183.86 netmask 255.255.255.0" with administrator privileges do shell script "route add default 147.175.183.1" with administrator privileges do shell script "ifconfig en2 down" with administrator privileges do shell script "ifconfig en2 up" with administrator privileges
