Solved

How To Change IP from Dynamic to STATIC using GUI and Command Line on Ubuntu 10.04?

Posted on 2012-04-04
2
527 Views
Last Modified: 2012-04-05
How can I change to STATIC IP address using GUI and Command Line on Ubuntu 10.04 ?
0
Comment
Question by:mshamsan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
Ashok Dewan earned 300 total points
ID: 37809551
To change IP address via command line type the below :-

to set that ip   :- ifconfig eth0 192.168.1.5/24
to set the default gateway :  route add eth0 default gw 192.168.1.1
to set the DNS servers :-  echo nameserver "dns ip address" > /etc/resolve.conf

or to set via GUI the check the following link :-
http://www.youtube.com/watch?v=2_ifSRJhtQU
0
 
LVL 29

Assisted Solution

by:serialband
serialband earned 200 total points
ID: 37814262
Those instructions do set the address, but it won't survive a reboot.  You need to edit /etc/network/interfaces and change out the dhcp entry there.  Then restart networking.

sudo vi /etc/network/interfaces

# The primary network interface

auto eth0
 iface eth0 inet static
 address 192.168.1.100
 gateway 192.168.1.1
 netmask 255.255.255.0
 network 192.168.1.0
 broadcast 192.168.1.255

Open in new window


sudo /etc/init.d/networking restart
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question