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.
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.
Just a simple question for most of you, guys.
I have just finished setting up a new Redhat Linux machine to act as mail server with a temporary IP address and name (the symbolic name just before the dot domain) in order to let the original old server run freely while I was preparing the new machine.
Now that everything seems to work fine, I want to shutdown the old machine and let the new one take its place: name and IP.
Where are ALL the places where the name and IP number are stored and must be changed? Which daemons are to be restarted? Please notice that I cannot find anything like ifconfig or similar programs; I ned to do everything manually.
Important running programs are
sendmail
tcpd (xinetd)
openssl (I will have to redo the certificate changing the name, I believe)
pop2d
pop3d
imapd
httpd
sshd
etc etc
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Are you changing to root with ' su ' or ' su - '. If ' su ' then it will not find ifconfig because it is not in the path. When you just su it changes to root but still ueses the users enviroment variables. Using su - is root and root's enviroment variables and /sbin is in the path of root. /sbin is not part of a users path.
Now mostly you should only need to down the nic and I assume it is eth0. Do the following as root
/sbin/ifdown eth0
/sbin/ifconfig and set the IP it will be now.
make sure the old server is down before bringing up the new server if using the same IP as the old server.
/sbin/ifup eth0
Now not sure if sendmail, pop3d, imapd will need editing.
For httpd if apache should not, sshd will not need changed.
I doubt any really need restarted but to restart sshd it would use a command like this as root. ' /sbin/service sshd restart ' Similiar for the rest.
Thank you for the suggestions but I think I have finally found the reply to my answer and would like to check with you.
As I expected there are two important files to edit/change in RedHat:
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
After the editing, some proper restart or reboot is obviously due.
Changing them appears to make the changes permanent even for future reboots. I just wonder if there are other hidden places somewhere else used by secondary programs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.