Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-25-2005, 10:28 AM   #1
LQ Newbie
Registered: Apr 2004
Location: Slovenia
Distribution: Debian sid, Ubuntu 4.10
Posts: 27

Rep: Reputation: 15
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 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.
Old 04-25-2005, 10:53 AM   #2
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32

that's in /etc/network/interfaces
Old 04-25-2005, 10:54 AM   #3
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Manually edit your /etc/network/interfaces then do /etc/init.d/networking restart.


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
How do I change the default gateway? tbruer1138 Linux - Networking 3 03-10-2005 08:21 PM
Remotely change gateway alantone Linux - Networking 5 01-20-2005 04:53 PM
Change defualt gateway permanently mrpc_cambodia Red Hat 0 07-13-2004 11:01 PM
Cannot change default gateway parr Linux - Networking 22 07-31-2003 06:13 PM
want to change default gateway juanb Linux - General 1 03-12-2003 10:28 AM

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration