For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

cebeci_259856's avatar
cebeci_259856
Icon for Nimbostratus rankNimbostratus
Oct 04, 2016

Creating Duplicate Virtual Servers with different destination adresses

Hello all, Our organization has started using a new IP space and I need to create a copy of our existing VSs with the new corresponding destination address. We are going to keep the old servers for a while, I will create a new partition and copy the virtual servers to new partition. Is it possible to copy-edit and paste the virtual server configuration using bigip.conf file? Should I edit the /config/bigip.conf file or the bigip.conf file under new partition folder? What is your recommended course of action

 

1 Reply

  • Hello,

    You can use these steps for the task at hand

     Write all Virtual Server configuration to a temp file
    (bash)  tmsh list ltm virtual >> /var/tmp/vs.txt
    
     Open the output file for modification in Vi
    (bash)  vi /var/tmp/vs.txt
    
     Modify the VS configuration file in Vi (Search & Replace)
    (vi)  :%s/destination 99.99.99/destination 88.88.88
    (vi)  :wq
    
    Sample above is assuming that all your virtual servers are currently in 99.99.99.*, and the new desired address is 88.88.88.* where the last octet value is retained
    
     Append new configuration to the existing
    (bash)  tmsh load sys config merge file /var/tmp/vs.txt