Configuring a static IP address:

  • ifconfig eth0 192.168.1.130 netmask 255.255.255.0 up
  • route add default gw 192.168.1.1

Configuring a dynamic IP address

  • ifconfig eth0 0.0.0.0 0.0.0.0
  • dhclient