From the GUI, you can set it using the "Network" pane of the System Preferences.
From the command-line, you can control this with the "ifconfig" program. There is a ton of information on it if you perform a simple Google search for "Mac OS X ifconfig".