LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-21-2007, 08:58 PM   #1
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Rep: Reputation: 84
trying to change IP address


I wanted to put a specific IP address for certain reasons I won't get into.
I am running Kubuntu Feisty 7.04
I have the networking icon on the taskbar.
SO I clicked it, then click on Mnual configuration
the window comes up asking for my root pass
then I get a window where I see my NIC with an IP address next to it.
Click on it, click on cnfigure interface, manual config, put an IP

Well I tried it 3 times and it's not keeping the IP I type. It keeps the DHCP given IP.

Help!
 
Old 08-21-2007, 09:29 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You need to edit /etc/network/interfaces and change
Code:
iface eth0 inet dhcp
to
Code:
iface eth0 inet static
You also need to add details of the ip address, netmask and gateway, so you would end up with something like
Code:
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
 
Old 08-22-2007, 04:15 AM   #3
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Original Poster
Rep: Reputation: 84
Actually, now that I rebooted, the IP changed to what I want and looks like the interfaces files was updated.
Thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
won't change ip address xushi Solaris / OpenSolaris 4 05-14-2005 03:11 AM
Change IP address lvran Linux - Networking 2 10-16-2003 01:19 AM
How do you change the IP Address? Diablotrickster Slackware 4 08-28-2003 07:31 PM
Change IP address ust Linux - Networking 5 06-12-2003 12:18 PM
Change address juno Linux - General 2 10-25-2002 03:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration