Type sudo vi /Library/Preferences/SystemConfiguration/preferences.plist and enter your admin password to begin editing the network preferences plist.
You then need to add the two lines in BOLD to the plist file:
<key>IPv4</key> <dict> <key>Addresses</key> <array> <string>10.1.0.2</string> </array> <key>ConfigMethod</key> <string>Manual</string> <key>IgnoreLinkStatus</key> <true/> <key>Router</key> <string>10.1.0.1</string> <key>SubnetMasks</key> <array> <string>255.255.255.0</string> </array> </dict>
Save the file. Then typesudo scselect Automaticto activate the change.