Knowledgebase: Operation for VPS
5.2.2.3 How to change the main IP in your VPS
Posted by on 05 May 2016 04:06 PM

If you need to change the main IP for your VPS, please follow steps below:


  • CentOS

    Connect your VPS via ssh (Putty)


    Then paste the codes below:


    cd /etc/sysconfig/network-scripts/
    cp ifcfg-eth0 ifcfg-eth0:0
    nano ifcfg-eth0:0


    Then you will see as below



    Revise eth0 to eth0:0
    Revise IPADDRESS to the IP you want to change
    ctrl+x >  Y

    Please remember to reboot the VPS. 

 

  • Windows

    Changing the main IP may cause the system offline, so we recommend that connect VPS via VNC.


    Start > Control Panel > Network and Internet > View network status and tasks




    Change adapter settings (pic) 



    Right-click  “ Local Area Connection ” then click “ Properties  ”




    Choose  “ TCP/IPV4 ”  >  click “ Properties  ”  




    Fill in the IP you want to change, click “ Advanced ” 




     
    Click “ Add… ”  >  “ OK ”
     




    Please remember to reboot the VPS. 

 

------------------------------------- Thank you for your reading -------------------------------------

 

(0 vote(s))
Helpful
Not helpful