Network Configuration Shortcuts for the Mac

The following two calls from the command line may be used to configure your Mac to the Clearpath local network and back. This is simply a shortcut for opening the Systems Preferences GUI and manually editing the Newtwork Preferences dialog boxes.

To set your machine to the local network (in this case setting our own machine with the IP address 10.25.0.87):

    networksetup -setmanual Wi-Fi 10.25.0.87 255.255.0.0 10.25.0.74'

To re-set your settings to the more vanilla DHCP setting:

    networksetup -setdhcp Wi-Fi Empty

Use an Alias!

The remaining step of creating a handy alias of your liking to the above commands is up to you, e.g.,

    alias cpnetoff  'networksetup -setdhcp Wi-Fi Empty'

A Note for Users of OS X Pre-Lion

Note: If your mac is running an OS X version older than Lion, replace "Wi-Fi" in the commands above to "Airport".