[HowTo] Assign Static IP Address In Ubuntu Linux
Via Terminal
Open network configuration file
OR
Find and remove dhcp entry:
Append new network settings:
Code
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254
Save and close the file. Restart the network:
Via GUI
To get started, go to System –> Preferences –> Network Connections.
Then select Auth eth0 and click Edit.
Next, select ‘IPv4 Settings’ tab, and choose ‘Manual’ for Method. Click ‘Add’ to add your IP address information. Also enter your DNS servers addresses in the field shown. When finish click Apply to save.