[SOLVED] Please help Network Connection Problem Centos
Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Please help. I think I messed it up. At this time I want to recover some network files such as /etc/sysconfig/network, /etc/sysconfig/network-scripts/, ifcfg-eth1, to default condition not modified I don't know why when Linux server is idle for a while, it loses connection. No Internet and I am not even able to ping from another computer in the same network. I tried to put static IP address and did this command cd /etc/sysconfig/network-scripts/ and vi ifcfg-eth1 and put static IP address. Anthe I did this command vi /etc/sysconfig/network and appended GATEWAY=192.168.0.1. An I did this command ifconfig eth1 192.168.0.189 netmask 255.255.255.0 broadcast 192.168.o.255. After all these commands now I have no connection at all. I tried to check back again to see what I did, I vi /etc/sysconfig/network and system prompted me to the message below;
Found a swap file by the name "/etc/sysconfig/.network.swp"
owned by: root dated: Tue Dec 28 00:46:25 2010
file name: /etc/sysconfig/network
user name: root host name: localhost.localdomain
process ID: 15153 (still running)
While opening file "/etc/sysconfig/network"
dated: Tue Dec 28 00:36:41 2010
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /etc/sysconfig/network"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/etc/sysconfig/.network.swp"
to avoid this message.
"/etc/sysconfig/network" 4L, 66C
Press ENTER or type command to continue
Last edited by rewards; 12-30-2010 at 10:38 PM.
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Seems your vi session was canceled for any reason. Vi swp-files are created during edit session, in case the session is killed this swp-files are not removed.
This also indicates why your changes are not saved to this files.
[Solved] Hello and thank you all. Does anyone know why Linux loses it connection when it has been idle for a while? I have not found a solution to my problem yet bu where do you make the thread and mark it solved?