LinuxQuestions.org
Help answer threads with 0 replies.
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 05-08-2004, 08:04 PM   #1
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Rep: Reputation: 15
keeping ip changes after booting?


I orginally setup Debian using my isp-provided static ip address. Since then, I've added a router and used the process below to change my ip settings. The problem is when I reboot... all the settings revert back to those provided during installation.

ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up
route add default gw 192.168.1.1
vi /etc/resolv.conf (nameserver x.x.x.x)
 
Old 05-08-2004, 08:25 PM   #2
Draygo
Member
 
Registered: May 2004
Location: Frisco, TX
Distribution: Debian Unstable
Posts: 73

Rep: Reputation: 15
under debain you should look under /etc/network/ or /etc/networks/ i cant remember off the top of my head. But in there you will find the config file for your network interface. Edit the file to your liking and stop and restart networking should be ok.
 
Old 05-08-2004, 08:43 PM   #3
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Original Poster
Rep: Reputation: 15
That should work...

But how does the system remember my installed settings if there is no reference to them in networking.

cat /etc/init.d/networking | grep 888.888
 
Old 05-09-2004, 02:01 AM   #4
Draygo
Member
 
Registered: May 2004
Location: Frisco, TX
Distribution: Debian Unstable
Posts: 73

Rep: Reputation: 15
If you read through the init.d script you will see that it basically grabs the info it needs from the interface files.
 
Old 05-10-2004, 04:38 AM   #5
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Original Poster
Rep: Reputation: 15
I'm confused... what "interface files"? I'd rather change the settings there.
 
  


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
keeping ubuntu from going up to X eantoranz Ubuntu 11 06-22-2005 04:43 PM
Keeping my bookmarks hlinux Fedora 3 01-30-2005 12:30 PM
Keeping yourself secure Ephracis Linux - Security 1 12-02-2004 04:56 PM
Keeping an eye? againstms Linux - Software 1 11-22-2004 05:40 AM
keeping tabs Obie Linux - Security 7 08-13-2004 04:11 AM


All times are GMT -5. The time now is 03:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration