LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   should network restart kick me off (when ssh'e into) my box? (https://www.linuxquestions.org/questions/linux-newbie-8/should-network-restart-kick-me-off-when-ssh%27e-into-my-box-679752/)

pellicle 10-29-2008 07:54 AM

should network restart kick me off (when ssh'e into) my box?
 
Hi

I was doing some playing with my /etc/hosts file and understood that to 'effect' these changes I need to do something like :

/etc/rc.d/init.d/network restart

but since I'm not connected to the box directly (its away in another location) I would have thought that doing this should kick me off?

seems weird to see:

Code:

Shutting down interface ra0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Setting network parameters:                                [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface ra0:                                [  OK  ]

and still have my connection (using the wireless ra0) still working

why ?

ChrisAbela 10-29-2008 11:29 AM

You do not need to restart after modifying /etc/hosts. It is read when you call the computer you are pinging (or whatever your application is).

Chris

pellicle 10-29-2008 01:06 PM

Hi

Quote:

Originally Posted by ChrisAbela (Post 3325121)
You do not need to restart after modifying /etc/hosts. It is read when you call the computer you are pinging (or whatever your application is).

ok ... to confirm

if I'm on computer A and connecting to computer B using ssh and modifying computer B's /etc/hosts file I don't need to restart B's network?

kewl

thanks

ChrisAbela 10-30-2008 02:34 AM

Yes.

It is irrelvent how you log in, whether on the actual console, via a Serial Port, SSH or telnet, there is no difference in this respect.

Chris

pellicle 10-31-2008 01:52 AM

Quote:

Originally Posted by ChrisAbela (Post 3325858)
Yes.

It is irrelvent how you log in, whether on the actual console, via a Serial Port, SSH or telnet, there is no difference in this respect.

Chris

even if I'm logging in via the RA0 connection which we are resetting? It seems to me to be pulling the connection floor out from under my feet.

estabroo 10-31-2008 09:27 AM

You did pull it out from under yourself, however before your session could time out it came back, so the session remained "connected". Restarting the network doesn't kill apps that have sockets open.

pellicle 11-03-2008 08:48 AM

Hi

Quote:

Originally Posted by estabroo (Post 3327348)
You did pull it out from under yourself, however before your session could time out it came back, so the session remained "connected". Restarting the network doesn't kill apps that have sockets open.

That explains it, what a fantastic system.


All times are GMT -5. The time now is 02:34 AM.