LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-18-2010, 11:30 AM   #1
3gtech
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Rep: Reputation: 0
changed ip cannot reconfigure


I recently attempted to change my ip with terminal using "ifconfig etho <input address>" but failed to annotate the previous address. I restarted the network after appending the network document at "/etc/network/interfaces" and restarted the network "/etc/init.d/network restart". Checking through I found the the IP address was what I changed it too yet the problem was attempting to revert it back.

Going through a cycle of editing the network document and restart the network has ended in failure and I am curious if there is a way to reset the configuration for eth0 without reinstallation.

sincerely:A Newbie
 
Old 06-18-2010, 11:37 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

It sounds like you want to configure a "static IP".

It's easy - but the specifics will vary with your particular distro and version, and with whether you prefer a command line or GUI.

Here is a good link:
http://www.cyberciti.biz/tips/howto-...iguration.html

'Hope that helps .. PSM
 
Old 06-18-2010, 11:40 AM   #3
Hewson
Member
 
Registered: Feb 2007
Location: /home
Distribution: Kubuntu and CentOS
Posts: 214

Rep: Reputation: 32
I'm assuming you're using Ubuntu or a similar distribution.

There is no way to "reset the configuration", but the a better question is what is it you're trying to do?

Do you need DHCP?
Example of a simple interfaces file with dhcp config for eth0:
Code:
# always need the loopback address configured
auto lo
iface lo inet loopback

# dhcp for eth0
auto eth0
iface eth0 inet dhcp
Do you need a different static address?
Example of a simple interfaces file with static address config for eth0:
Code:
# loopback
auto lo
iface lo inet loopback

# eth0 static config
iface eth0 inet static
address 10.51.100.1
netmask 255.255.0.0
gateway 10.51.0.1

(lines beginging with a '#' are comments)
 
0 members found this post helpful.
Old 06-18-2010, 12:23 PM   #4
3gtech
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Original Poster
Rep: Reputation: 0
dhcp

I think I will try to go back to DHCP until I can figure out the settings but I am having issues get my dhcp settings back.
 
Old 06-18-2010, 01:10 PM   #5
3gtech
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I found that I can find my IP address because all the terminals in the house are linked off the same modem but am having issues with the location of the network address,gateway address, and netmask.

Could I get some insight as to where these address may be in linux
 
Old 06-21-2010, 10:04 AM   #6
3gtech
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Fixed the problem when I attempted to change the IP to static I disabled DHCP on auto eth0 I created a new connection and named it Ethernet and it was automatically configured. In the future I will try to configure an IP manually in virtualbox before attempting a change to a system. Thank you all for your help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
reconfigure rpm DBabo Linux - Software 23 12-18-2007 09:22 PM
Installed Ubuntu but it changed my boot loader. I want this changed... mdorries Linux - Distributions 8 05-31-2007 08:13 PM
How to Reconfigure CPAN amer_58 Linux - Newbie 1 04-19-2005 05:47 AM
how to reconfigure the apache? papitu76 Linux - Software 4 01-07-2005 02:33 AM
How to Reconfigure Partitions??? olegarr Linux - Hardware 2 07-02-2004 12:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:34 AM.

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