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) |
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.
|
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 |
If you read through the init.d script you will see that it basically grabs the info it needs from the interface files.
|
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. |