Forum Discussion

Ibrahim_Hegazy_'s avatar
Ibrahim_Hegazy_
Icon for Nimbostratus rankNimbostratus
Aug 29, 2018

Migrating old VIP to new sunbet

Hello Dears , i have setup of many VIPs which is running good and no issues , we plan for migrating all servers to new Subnet ( meaning the current setup is 192.168.11.0/24 and new one will be 192.168.12.0/24 , how to migrate all VIP without issues to this new vlan, servers are different services like exchange 2016 and many sharepoints ,

 

3 Replies

  • If the last octet is going to stay the same and you are going to edit ALL virtual servers you can use the method.

    tmsh edit ltm virtual all
    (this will open a vi editor)

    use the search an replace function to replace. It will replace "192.168.11." with "192.168.11."

    :%s/192\.168\.11\./192\.168\.12\./g

    esc

    :wq

    Naturally you should test this, preferably in a dev environment first. Changing IP addresses on virtual servers will terminate existing connections so preferable to do this outside of business hours and on a standby device first.

  • Hi Ibrahim,

    The best way to do that and in order to avoid all perturbation, I advise you to create the same vips with the new IP (In the new VLAN). It will allow you to have both vs in the same time.

    • VIP APP1: 192.168.11.100/24
    • VIP APP2: 192.168.11.101/24
    • VIP APP3: 192.168.11.102/24
    • VIP APP4: 192.168.11.103/24

    create the new vip and don't remove older (you can call the new vip as you want, just modify the name in order to not have any error because of name duplicate...):

    • VIP APP1-new: 192.168.12.100/24
    • VIP APP2-new: 192.168.12.101/24
    • VIP APP3-new: 192.168.12.102/24
    • VIP APP4-new: 192.168.12.103/24

    Once you create your VIP everything it's already ready for migration you just have to change DNS part. there will be no break or edge effect because of the DNS part or IP migration. because you have both operational services at the same time.

    to duplicate the VS, open using cli "Vi /config/bigip.conf" then retrieve wanted VS on a notepad. Check that you don't forget to change any IP by searching "192.168.11".

    Modify IP and VLAN then edit "Vi /config/bigip.conf" and add it.

    then enter the following command in order to load conf:

    tmsh load sys config

    Hope it's clear for you, let me know if you need more details.

    regards,