[SOLVED] Editing network settings in a fresh CentOS 6.2 install
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.
Editing network settings in a fresh CentOS 6.2 install
After installing CentOS 6.2 yesterday, I've been having trouble figuring out the network settings so that I can access the machine through putty or secure ssh. I edited the /etc/sysconfig/network-scripts/ifcfg-ethlo in vi to give the machine a static ip address (192.168.1.3) and entered the netmask as 255.255.255.0 and set the router's ip as NETWORK=192.168.1.1 (which I got from my router).
I have access to the internet (I'm using the machine to type this) but can't seem to get access through ssh using port 22. I try to open the session, and just get a blank screen. I'm aware that I have probably missed something simple, but the answers I'm getting from various wiki's aren't providing any help, as they assume a level of knowledge I lack. Anyone have any thoughts?
I would prefer to make any edits using the command line and vi, as I am doing this to learn. Thanks in advance.
chkconfig was installed and sshd is now enabled at startup (checked via reboot and then running service sshd status as root). Went back to my desktop machine and attempted to log in through putty and secure ssh to no avail. Both connections timed out. When I edited the network settings via /etc/sysconfig/network-scripts/ifcfg-ethlo I was expecting to see the file as ethO rather than ethlo. Is it possible that I need to create the ethO file, or could it be that I don't have the right shell set up for remote connections? not sure where to go from here.
I realized I had trashed the settings pretty badly, so I did a fresh install (the benefit of this being a learning machine is I don't have anything worth saving on it).
ran chkconfig sshd on
to get the current ip address. I can now get on with ssh. Now I just need to figure out where the file is where I set the static ip, because there is no /etc/sysconfig/network-scripts/ifcfg-eth0 file.
as for why I set up the file the way I did, I was guessing...badly.