Forum Discussion
command line port change on VIP
I have looked everywhere for command line syntax to change the service port on a virtual. I cannot find it anywhere. I am in a managed envrionment with command line access only to the F5.
Is it even possible without the GUI? For example, the port below ddi-tcp-1 (8888) needs to be changed to webcache (8080). Can I do this from the command line?
Thank you,
Chris
virtual HL7_server {
snat automap
pool pool_hl7_server
destination 2XX.XXX.XX.00:ddi-tcp-1
ip protocol tcp
persist source_addr
profiles {
Http_compression {}
tcp {}
}
}
8 Replies
- What_Lies_Bene1
Cirrostratus
What version are you running please? - Chris_Olson
Nimbostratus
Kernel:
Linux 2.6.18-164.11.1.el5.1.0.f5app
Package:
BIG-IP Version 10.2.1 473.0
Hotfix HF1 Edition - What_Lies_Bene1
Cirrostratus
Great, thanks. So, using tmsh you'd use this command: [tmsh] modify ltm virtual 'name' destination ip_address:port - Chris_Olson
Nimbostratus
Thank you VERY much! I have little experience with tmsh. I've only needed to use the "b" commands to get what I've needed done. I will read up on it.
Thanks again,
Chris - What_Lies_Bene1
Cirrostratus
You're welcome. - ReganAnderson
Employee
Hi Chris, if you prefer to use bigpipe the following command will do the same thing:
b virtual [name] destination [ip_address]:[port]
TMSH completely replaces bigpipe in v11 so it might be a good idea to get familiar with that! - Chris_Olson
Nimbostratus
That's so simple it's almost embarrassing. Thanks again. I'll brush up on TMSH. - ReganAnderson
Employee
Also, it is important to note that like bigpipe, changes made using tmsh commands aren't saved automatically. The command to do that is: tmsh save /sys config
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