Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Freddy Spierenburg <freddy@dusktilldawn.nl>
To: Ratin <mrahman@sypixx.com>
Cc: linux-mips@linux-mips.org
Subject: Re: changing IP address on mipsel-linux
Date: Wed, 3 May 2006 09:11:03 +0200	[thread overview]
Message-ID: <20060503071103.GC11097@dusktilldawn.nl> (raw)
In-Reply-To: <007e01c66e2e$8008f720$2300a8c0@ratin>

[-- Attachment #1: Type: text/plain, Size: 2395 bytes --]

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 #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2006-05-03  7:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-01 23:13 how do i get register state from process before interrupt? Jim
2006-05-02 19:38 ` Ralf Baechle
2006-05-02 21:22   ` changing IP address on mipsel-linux Ratin
2006-05-02 21:22     ` Ratin
2006-05-03  7:11     ` Freddy Spierenburg [this message]
2006-05-03 16:11       ` Ratin
2006-05-03 16:11         ` Ratin
2006-05-03 16:14         ` Geert Uytterhoeven
  -- strict thread matches above, loose matches on Subject: below --
2006-05-03 16:21 Don Hiatt
2006-05-03 16:54 ` Ratin
2006-05-03 16:54   ` Ratin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060503071103.GC11097@dusktilldawn.nl \
    --to=freddy@dusktilldawn.nl \
    --cc=linux-mips@linux-mips.org \
    --cc=mrahman@sypixx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox