linux-mips
[Top] [All Lists]

Re: changing IP address on mipsel-linux

To: Ratin <mrahman@sypixx.com>
Subject: Re: changing IP address on mipsel-linux
From: Freddy Spierenburg <freddy@dusktilldawn.nl>
Date: Wed, 3 May 2006 09:11:03 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <007e01c66e2e$8008f720$2300a8c0@ratin>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <4456960D.70403@telus.net> <20060502193838.GA3474@linux-mips.org> <007e01c66e2e$8008f720$2300a8c0@ratin>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.11+cvs20060403
Hi Ratin,

On Tue, May 02, 2006 at 02:22:21PM -0700, Ratin wrote:
> I am not sure if this is the right mailing list (new here) but
> how would you change the IP address parmanently on a box having
> IDT C32H434 CPU ?
Changing the ip address permanently does not depend on the cpu
used, but more on the GNU/Linux distribution used.

> There seems to be no /etc/init.d/network on this box. I could
> do it with ifconfig but I need to make parmanent change as well
> as effective right away.
You should first tell me which GNU/Linux distribution you use and
then I can give you a clue on where to change it permanently. Say
for instance Debian uses /etc/network/interfaces . S.u.S.E has a
thing called YaST if I remember correctly and Red Hat and the
likes use a directory called /etc/sysconfig/network-scripts/

But you tell me there does exist no /etc/init.d/network. So maybe
you are running BusyBox or something and then you are completely
on your own how to do things. Althought conforming to well known
practice will not hurt you. :-)

The best thing to do is check out /etc/inittab and learn how it
works ($ man inittab). Then you will be able to find out how your
GNU/Linux system boots and after some thorough searching you will
find where the ip address is set.
Then there is also the possibility that the ip address is set
using the command to boot the kernel. Well, then you know where
to permanently change it :-)

As you can see, lot's of possibilities. Good luck!

> The other question is when I change the IP address on the fly
> with ifconfig, is there a way to make the inet listener apps
> (that are running in the background) to autometically listen on
> the new IP address?
This depends completely on the application used. If the
application listens on a specific ip address, then you should
probably restart the application to make it listen to the new ip
address. But than you would in between the restart also have to
configure the application to listen on the new ip address. If you
have the application listen to INADDR_ANY (0.0.0.0) then you
don't have to do anything.

Again, good luck!

-- 
$ cat ~/.signature
Freddy Spierenburg <freddy@dusktilldawn.nl>  http://freddy.snarl.nl/
GnuPG: 0x7941D1E1=C948 5851 26D2 FA5C 39F1  E588 6F17 FD5D 7941 D1E1
$ # Please read http://www.ietf.org/rfc/rfc2015.txt before complain!

Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>