I have centOs 4 server and my server has two IP addresses. How can I change the main ip address? for example: my server has (192.168.0.1) and (192.168.0.2) IP addresses and (192.168.0.1) is main IP address. How can I set (192.168.0.2) as main IP address?
Edit /etc/sysconfig/network-scripts/ifcfg-eth0. (eth0 being your primary network interface). Then restart your network service (service network restart).