Forum Discussion
Ken_Wong_48678
Dec 21, 2007Historic F5 Account
select virtual server in iRule
Hi,
I want to the iRule to select another virtual server based on the selected memeber. The iRule shown below, I can see the log in ltm log but cannot use the vs1 or vs2...any idea? Thansk!
when LB_SELECTED {
if { [LB::server addr] eq "192.168.20.1" } {
virtual vs1
log local0. "vs1 selected"
}
elseif { [LB::server addr] eq "192.168.20.2" } {
virtual vs2
log local0. "vs2 selected"
}
}
Regards,
Ken
- Nicolas_Menant
Employee
Hi, - hoolio
Cirrostratus
As nmenant hinted at, you must be on 9.4.0 or higher to use the virtual command (Click here) to specify that the request should be sent to another virtual server. - qqdixf5_74186
Nimbostratus
I am having problem using the virtual command in an iRule. The LTM version is BIG-IP 9.4.3.when HTTP_REQUEST { log local0. "Request received, route to vs_01" virtual vs_01 }
- Nicolas_Menant
Employee
if vs 01 receive the traffic then it should be ok. - qqdixf5_74186
Nimbostratus
I checked the configuration of vs_01. Everything looks good. I also tried to hit it with traffic and it works.
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