I am trying to change IP address of a SuSE 10 machine that is running Tomcat. I need to create a shell script to do this so could not use YaST.

As some sites suggested on my Google search, I edited the files in /etc/sysconfig/network/ifcfg-eth-* to change the IP address. After that, I restarted the network service by calling /etc/init.d/network restart.

The network card restarting just fine. I, then, restarted tomcat web service. However, when I browsed the new IP address using browser, I got an "Request denied" message.

Can anyone please tell me how I could do this?

Thanks

link|improve this question
feedback

migrated from stackoverflow.com Mar 15 '11 at 23:13

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 0 down vote accepted

Did you change the IP in /etc/hosts? I think tomcat is trying to bind on the old address if you didn't changed /etc/hosts.

link|improve this answer
That is it. The /etc/hosts contains an entry that point to the old IP address. Change that to the new address and restart tomcat. It works. Thank you very much. – Long Ngo Mar 16 '11 at 15:30
feedback

This is what I always use amd no problems so far http://howtohacklife101.blogspot.com/2012/01/how-to-change-your-ip-address.html

link|improve this answer
Your link which is specifically about windows doesn't address the problem. We also don't like 'answers' with bare links er prefer answers to have content not pointers to content. – Iain Feb 1 at 7:29
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.