Command Line Only -- Changing Hostnames, DNS, Gateway and IP on RHEL 5.6
First, I do not have a GUI Interface and I cannot set a display back for an x-term (Not Allowed), leaving me and Mr. Putty. I need to change the Hostname, IP, and "check" the gateway, subnet mask, DNS, SNMP string, to see if they are correct. I only need the file names I need to modify for a rhel 5.6 server. I went to RedHat and it seems they are most than willing to assist if you have a subscription. I know "vi" and was a Unix Admin a few years back. (OK, it was more than a few and more like a lot of years. HPUX-9 was just out.) Now I find myself needing a list of files for RedHat and a couple of answers. I just need a list of the files like edit the /etc/host file.
I believe I have to take the NIC down?
I believe I am on eth0.
Do I need to modify the route or check it?
How about bouncing the server? (Yes - No - or change Runlevel) I do not have any console access, just ssh and root. If I only need to change the runlevel without console, can I run from a runlevel 3 to a runlever 1 and back with this string: init 1; sleep 15; init 3;sleep 5; echo `runlevel` Without a console, does that work? I know that is a lot of questions so, "Thanks in advance".