I’ve been using the linux command line for enabling or disabling an ethernet interface for so long now, I’m having trouble remembering the difference on Mac OS X. Linux is handled as follows:

sudo ifup eth0
sudo ifdown eth0

The Mac OS X equivalent of this is:

sudo ifconfig en0 up
sudo ifconfig en0 down