LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2008, 07:54 AM   #1
pellicle
Member
 
Registered: Jul 2008
Location: Finland
Distribution: RHEL4
Posts: 139

Rep: Reputation: 15
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 ?
 
Old 10-29-2008, 11:29 AM   #2
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
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
 
Old 10-29-2008, 01:06 PM   #3
pellicle
Member
 
Registered: Jul 2008
Location: Finland
Distribution: RHEL4
Posts: 139

Original Poster
Rep: Reputation: 15
Hi

Quote:
Originally Posted by ChrisAbela View Post
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
 
Old 10-30-2008, 02:34 AM   #4
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
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
 
Old 10-31-2008, 01:52 AM   #5
pellicle
Member
 
Registered: Jul 2008
Location: Finland
Distribution: RHEL4
Posts: 139

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ChrisAbela View Post
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.
 
Old 10-31-2008, 09:27 AM   #6
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
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.

Last edited by estabroo; 10-31-2008 at 09:27 AM. Reason: ran out of r's
 
Old 11-03-2008, 08:48 AM   #7
pellicle
Member
 
Registered: Jul 2008
Location: Finland
Distribution: RHEL4
Posts: 139

Original Poster
Rep: Reputation: 15
Hi

Quote:
Originally Posted by estabroo View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network interfaces do not bring up on network restart rajat Linux - Networking 1 06-20-2007 04:44 AM
In FC6 network interface doesn't come up if 'service network restart' command is run rajat Linux - Networking 2 05-02-2007 11:53 PM
Setting up a network with a Suse box & a Windows box flatstan SUSE / openSUSE 21 03-15-2007 07:11 AM
How do I set the regulatory daemon to restart when I restart the network service? zahadumy Linux - Networking 0 11-05-2006 11:24 AM
Large file transfers kick me off my wireless network. unholy Linux - Wireless Networking 4 10-03-2005 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration