LinuxQuestions.org
Visit Jeremy's Blog.
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 06-07-2012, 07:55 AM   #1
windbadboy
LQ Newbie
 
Registered: Jul 2009
Posts: 25

Rep: Reputation: 0
Question remote connection was lost when I was editting ifcfg-eth0


My OS is centos6.0 x64.
when I was editing /etc/sysconfig/network-script/ifcfg.cfg(still not save the file),my remote connection(SSH) was lost,I can't never log in the server,and can't ping the server.
what's wrong?

Last edited by windbadboy; 06-07-2012 at 08:22 AM.
 
Old 06-07-2012, 10:10 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
When you're making changes to your primary NIC it is always a good idea to login via a console session to avoid this scenario. While login via the NIC can actually survive something like "service network restart" if it runs quickly enough there is no guarantee it will or that you modified the NIC configuration properly enough to have it come up. At this point you need to access the console. If you don't have remote console access you'll have to either find someone to push buttons for you on site or go there yourself.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Lost connection, cannot activate eth0 ufmale Linux - Newbie 2 06-18-2010 02:30 AM
[SOLVED] Network eth0 activated upon boot in ifcfg-eth0; but no network connection after login TomRaaijmakers Linux - Networking 1 06-17-2010 09:29 AM
fedora/redhat: ifcfg-eth0 and ifcfg-eth1 Shaun2222 Linux - Networking 9 01-23-2008 04:25 PM
eth0 not coming up at bootup even when configured in ifcfg-eth0 djcham Linux - Networking 1 12-04-2006 09:09 PM
Linux lost ADSL connection thru eth0! adas Linux - Networking 7 10-29-2002 03:21 PM

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

All times are GMT -5. The time now is 12:02 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