Forum Discussion
Need to construct a tmsh command
Hello,
I have to run a command on a F5 device (version 11.3) which is of the form:
create ltm virtual /Common/VIPNAME { destination /Common/VIPIP:80 ip-protocol tcp mask 255.255.255.255 pool /Common/POOLNAME profiles add { /Common/http { } /Common/oneconnect-standard { } /Common/tcp { } } source 0.0.0.0/0 source-address-translation { type automap } translate-address enabled translate-port enabled vlans add { /Common/VIPVLAN } vlans-enabled }
However, I cannot run this command on the device as it is. I have to find a way wherein I have to run multiple commands such that they cumulatively give me the above result. One of the commands the I can run is:
create ltm virtual /Common/VIPNAME { destination /Common/VIPIP:80 pool /Common/POOLNAME snat automap
Which other commands do I have to apply on the device to get the same end result as the one that would be achieved by running the main command stated above??
Regards,
Codename Uks
1 Reply
- Kevin_Stewart
Employee
I believe, at a minimum, you need to add the HTTP profile in the create statement to keep the virtual from defaulting to a fastL4. Here's what I've tested:create ltm virtual testvip1 { destination 10.10.10.11:80 profiles add { http } } modify ltm virtual testvip1 pool local-pool modify ltm virtual testvip1 source-address-translation { type automap } modify ltm virtual testvip1 profiles add { oneconnect } modify ltm virtual testvip1 vlans add { external } vlans-enabled
You also don't need to add the tcp profile and address and port translation because they're enabled by default on a standard virtual server.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com