[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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Sorry, didn't read that quite right ... ethlo is the loop-backinterface, it has no
physical media attached, so it's not surprising the box is unreachable.
What type of network card does it have? lspci | grep -i net
OK, the wireless is not in use, I'm wired into the router. wasn't sure which modules you were looking for, so here's all of them. Thanks for your patience.
Just noticed that it still lists IP address as 192.168.1.2, despite my change. I tried using the .2 address to log in and got nowhere. I'll try rebooting.
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
ran ifconfig
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.