LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 07-17-2009, 08:43 AM   #1
dpeterson3
Member
 
Registered: Jun 2008
Distribution: Debian
Posts: 157

Rep: Reputation: 16
Debian not saving ethernet configuration


I have my Debian box setup with a static ip of 192.168.2.80 so I can remote desktop to it. A few weeks ago, I switched the IP to 192.168.0.80 because I needed to use my normal router for something else. Now, every time I boot, I have to change my IP back to 192.168.2.80. I used the network admin to set the address to 192.168.0.80, and it seems to use that configuration from now on. If I try to use network admin to change the IP back, it doesn't work. How can I make my original configuration stick?
 
Old 07-17-2009, 09:06 AM   #2
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 5,995

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
The GUI tools for configuring networks generally aren't too good.

I found the easiest and most reliable way is to edit /etc/network/interfaces directly.
Eg:
Code:
iface eth0 inet static
broadcast 192.168.2.255
address   192.168.2.80
netmask   255.255.255.0
gateway   IP.OF.YOUR.ROUTER
Then
Code:
sudo /etc/init.d/networking     restart
More useful information is here:
http://www.yolinux.com/TUTORIALS/Lin...etworking.html
 
Old 07-17-2009, 09:28 AM   #3
dpeterson3
Member
 
Registered: Jun 2008
Distribution: Debian
Posts: 157

Original Poster
Rep: Reputation: 16
Thanks. Supprised I didn't think of that myself. Now that I think about it, that was the way I got it messed up in the first place.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving configuration Jon Briggs DamnSmallLinux 3 05-26-2007 01:54 AM
Saving Alsa Configuration Permaximus Slackware 2 11-17-2005 08:24 PM
Saving a Wlan0 configuration cryonic90 Linux - Wireless Networking 4 08-23-2005 09:50 AM
saving log files / spliting ethernet without a router w/ linux aarond Linux - Security 2 07-31-2004 02:34 PM
Debian Ethernet Card Configuration acidbreez Linux - General 1 08-10-2003 05:13 AM


All times are GMT -5. The time now is 05:13 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration