Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

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

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

2 Answers 2

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.

share|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

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

share|improve this answer
1  
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 '12 at 7:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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