How to set a static IP in Ubuntu from the shell
Saturday, November 22nd, 2008One of the first things I do for my desktops is set them with a static IP. Below is how I go about it.
One of the first things I do for my desktops is set them with a static IP. Below is how I go about it.
Computers may be assigned a static IP address or assigned one dynamically (via DHCP). Here I will explain the steps needed to assign an IP address to your NIC.
Choose one of the following methods:
Command line :
/sbin/ifconfig eth0 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255
GUI tool : You can use the GUI tool /usr/bin/neat - Gnome GUI network administration tool. It handles all interfaces and configures for both static assignment as well as dynamic assignment using DHCP.
(more…)