Do you mean you want to assign your computer a static IP?
ifconfig ethx <ip> <subnet> <broadcast> is the way to go.

I'm assuming you have your router set correctly.