public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Changing static IP remotely...
@ 2013-02-28  4:48 Jarry
  2013-02-28  6:07 ` Amankwah
  2013-02-28 12:38 ` Michael Mol
  0 siblings, 2 replies; 7+ messages in thread
From: Jarry @ 2013-02-28  4:48 UTC (permalink / raw
  To: gentoo-user

Hi Gentoo users,

what is the proper way of changing static IP-address remotely
without the need to restart the whole system (or locking
me out)?

I have one interface with static IP, so first I'm going to edit
/etc/conf.d/net. Then I will set up command for later execution:

# echo '#!/bin/bash' > /root/eth-restart
# echo '/etc/init.d/net.eth0 restart' >> /root/eth-restart
# chmod 0700 /root/eth-restart
# at -f /root/eth-restart now + 5 min

Then I terminate my ssh-session hoping 5 minutes later
I can connect using new IP. Is this correct and all that
is necessary?

Jarry
-- 
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-02-28 22:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-28  4:48 [gentoo-user] Changing static IP remotely Jarry
2013-02-28  6:07 ` Amankwah
2013-02-28 12:38 ` Michael Mol
2013-02-28 15:37   ` Mike Gilbert
2013-02-28 22:43     ` Florian Philipp
2013-02-28 22:46       ` Michael Mol
2013-02-28 20:16   ` Kevin Chadwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox