Friday, February 29, 2008

Micro-Recipe: Setting up a static IP on your Ubuntu Linux

Assuming your static IP is 192.168.0.100, your machine's name is computer, and you're on the mydomain.com domain.

  • nano /etc/network/interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.100
gateway 192.168.0.1
netmask 255.255.255.0
  • nano /etc/hostname
computer
  • nano /etc/resolv.conf
mydomain.com

0 comments: