I think my question might be an easy one but i struggle a little with setting up servers. I have a CentOS 6 setup. I have added Webmin and Virtualmin. I set this up with a static IP address and had virtual IPs setup. everything was working fine. Now i have changed ISP and have a static IP address. They asked me for the MAC address for the server and set it up. I changed the information in the server (ifcfg-eth0) to reflect what they gave me but i am unable to see the server (inside or outside using the IP address given). Also if i am accessing this locally there must be a better way to reach than by the static IP. Going out and coming back in doesnt make sense to me. Do i need to do port forwarding or something? Thanks. Further Update: the only thing in between the outside and the server is the cable modem/router for the ISP. Supposedly they set that up. It is not something i can do from my end.
ifcfg-eth0 updates the saved configuration ready for the next time the interface is brought up. You need to restart networking or reboot your server to apply it to the interface.
For CentOS 6 I believe the correct command to restart networking is
service network restart # Or /etc/init.d/network restart
So it was easier than i thought. I needed to change the NAT Mode in the modem to be bridged and then everything works fine now.