LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   debian ip and gateway settings change (https://www.linuxquestions.org/questions/linux-networking-3/debian-ip-and-gateway-settings-change-316966/)

Alien#007 04-25-2005 10:28 AM

debian ip and gateway settings change
 
Recently i changed my router's ip and i changed my workstation's ip. I did
ifconfig eth0 down
ifconfig eth0 new_ip netmask 255.255.255.0 up
route del default gw old_gw_ip
route add default gw new_gw_ip

But after restart computer sets back old settings. How to i change computer network settings permantly. I'm using debian sid.

fr_laz 04-25-2005 10:53 AM

Hi,

that's in /etc/network/interfaces

TigerOC 04-25-2005 10:54 AM

Manually edit your /etc/network/interfaces then do /etc/init.d/networking restart.


All times are GMT -5. The time now is 02:37 AM.