Solved

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

Posted on 2012-04-04
2
514 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
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 28

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access_log 17 100
linux pull logs and export FTP 4 59
AWS vpc peering connection 1 43
Video Streaming 6 56
In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

910 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now