Forum Discussion
Ian_McKenna_113
Nimbostratus
Jul 18, 2006How to set Type Host and Type Standard on a Virtual Server
Hi folks,
I'd like to change the Destiation Type and the Configuration Type on a Virtual Server. E.g. to HOST or to Standard, but I don't know what Interfaces to use. Are there any???
M...
Jul 18, 2006
The Destination type set depending on what the destination and wildmask values are. The relevant methods are LocalLB::VirtualServer::set_destination() and LocalLB::VirtualServer::set_wildmask(). For example, passing in a destination of 1.2.3.4:80 with a wildmask of 255.255.255.255 will result in a Host Virtual server. Passing in a destination of 1.2.3.0:80 with a wildmask of 255.255.255.0 will result in a Network Virtual Server.
As for the Configuration type, this is set by the LocalLB::VirtualServer::set_type() call. In this call you can set the virtual to one of the following VirtualServerType values:
RESOURCE_TYPE_POOL - The virtual server is based on a pool.
RESOURCE_TYPE_IP_FORWARDING - The virtual server only supports IP forwarding. There is no load balancing on this type of virtual server.
RESOURCE_TYPE_L2_FORWARDING - The virtual server only supports L2 forwarding. There is no load balancing on this type of virtual server.
RESOURCE_TYPE_REJECT - All connections going to this virtual server will be rejected, and resets will be sent.
RESOURCE_TYPE_FAST_L4 - The virtual server is based on the Fast L4 profile.
RESOURCE_TYPE_FAST_HTTP - The virtual server is based on the Fast HTTP profile.
I believe that RESOURCE_TYPE_POOL equates to "Standard".
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
