Type the following commands in a Terminal window:
This takes the interface down and is required before changing configurations.
ifconfig en0 alias 123.456.789.101 netmask 255.255.255.0
This adds additional IP address of 123.456.789.101 to this interface with netmask of 255.255.255.0
This brings the interface back up.
Test the new IP address by ping or telnet.
The ifconfig command may also be used to configure a port with a single IP address or change existing configurations. These steps are simpler to perform from Network Preferences (under the Apple menu).
More information about ifconfig is available by typing
man ifconfig at the command prompt.
Note: Type the desired IP address in the place of 123.456.789.101 above.