Re: change IP addresses from xxx.xx.xx.xx to xxx.xx.xx.yz, the ssh session hang
- From: Chris Mattern <syscjm@xxxxxxxxxxxxxx>
- Date: Thu, 21 Feb 2008 23:15:26 -0000
On 2008-02-20, wong_powah@xxxxxxxx <wong_powah@xxxxxxxx> wrote:
I had connected to a server via ssh. After issuing some networking
commands to change the eth0 IP addresses from xxx.xx.xx.xx to
xxx.xx.xx.yz, the ssh session "hang". i.e. the screen just freezes and
I get no prompt.
Well, yeah. You have a connection to IP address xxx.xx.xx.xx. When
you change the IP address to xxx.xx.xx.yz, you don't have a connection
to the new IP address, you still have a connection to xxx.xx.xx.xx--
which isn't a connection that has anything on the other end any more.
Hence, the freeze.
I have to use the serial port to continue my configuration. i.e.
ifdown eth0
ifup eth0
Is there a way to do all this using ssh? I want to avoid using the
serial port if possible.
Assuming you can't get a new connection via ssh until you bounce the
eth0 connection, you could schedule the whole thing via crontab
or at and then reconnect once it finishes. You'd still want the
serial as backup in case you don't pull it off. The basic fact here
is that you're doing basic reconfiguration of your networking; while
it's happening, you can't expect to have have any network connectivity.
--
Christopher Mattern
NOTICE
Thank you for noticing this new notice
Your noticing it has been noted
And will be reported to the authorities
.
- Follow-Ups:
- References:
- Prev by Date: Re: strange packets from 192.168.1.126
- Next by Date: principal/username mapping for Kerberized ssh
- Previous by thread: change IP addresses from xxx.xx.xx.xx to xxx.xx.xx.yz, the ssh session hang
- Next by thread: Re: change IP addresses from xxx.xx.xx.xx to xxx.xx.xx.yz, the ssh session hang
- Index(es):
Relevant Pages
|
|