Forum Discussion

Vishram_96717's avatar
Vishram_96717
Icon for Nimbostratus rankNimbostratus
Oct 16, 2011

Virtual IP

I wanted some standard command line scripts for configuring virtual IP in F5.

 

 

So that I can copy and paste whenever necessary.?

 

 

 

Please provide thank you

 

 

 

2 Replies

  • do you mean command line to create/configure virtual server?

    in case of bigpipe, is bigpipe virtual help helpful?

    [root@iris:Active] config  b virtual bar destination 172.28.17.33:80 snat automap pool foo profile tcp http persist cookie
    
    [root@iris:Active] config  b virtual bar list
    virtual bar {
       snat automap
       pool foo
       destination 172.28.17.33:http
       ip protocol tcp
       persist cookie
       profiles {
          http {}
          tcp {}
       }
    }
    
    
  • George_Watkins_'s avatar
    George_Watkins_
    Historic F5 Account
    Vishram,

    You can use bigpipe on older versions (it was completely phased out in version 11). Its replacement, TMSH, is much easier to navigate. You can select it as your default shell in the 'Users' area of the Web UI or just type 'tmsh' from bash on an v10+ box. The TMSH syntax for creating a virtual identical to nitass's from the command line would look like this:

    root@test-ltm-03(Active)(/Common)(tmos) create /ltm virtual bar destination 10.0.0.1:80 snat automap pool foo profiles add { tcp http }

    -George