Just type the following commands in the terminal:

sudo ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up

sudo route add default gw 192.168.1.1 eth0

This should hook you up to the network.