IPはデフォルトでDHCPサーバーからの自動取得で設定されている。
変更する場合は/etc/network/interfacesを書き換える。

#  The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.x.x
netmask 255.255.255.0
gateway 192.168.x.x

というように記述してネットワークをリスタート

sudo /etc/init.d/networking restart