LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   keeping ip changes after booting? (https://www.linuxquestions.org/questions/linux-newbie-8/keeping-ip-changes-after-booting-179442/)

ridertech 05-08-2004 07:04 PM

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)

Draygo 05-08-2004 07:25 PM

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.

ridertech 05-08-2004 07:43 PM

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

Draygo 05-09-2004 01:01 AM

If you read through the init.d script you will see that it basically grabs the info it needs from the interface files.

ridertech 05-10-2004 03:38 AM

I'm confused... what "interface files"? I'd rather change the settings there.


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