Solved

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

Posted on 2012-04-04
2
542 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 30

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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:
Suggested Courses

622 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