Solved

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

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

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…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

739 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