Forum Discussion
bert_92443
Sep 13, 2012Nimbostratus
adding 2 pool into the same virtual-server
I have 2 pools - YAYA_80 with member 172.16.20.1:80 and 172.16.20.2:80
and a second pool YAYA_0 with member 172.16.20.3:0 and 172.16.20.4:0
I would like to have a single virtual-server 10.10.1.100 port 80 tcp with pool YAYA_80 and YAYA_0
is that possible?
I don't want to have to vip like 10.10.1.100:80 and 10.10.1.100.
Under the gui, All I can see if the default pool (single pool) and using tmsh It seems like it is the same issue.
Thanks for your assistance.
- HamishCirrocumulusYes. You could create a single VS on port 0 with the default pool your port-0 pool. Then add an iRule that checks for server port == 80 and set the pool in the iRUle to your port-80 pool.
- bert_92443Nimbostratusthanks - I will test today -
- HamishCirrocumulusThere's probbaly one in codeshare. But a quick one (UNtested, type don the fly) would be something like
when client-connect { if { [ IP::protocol ] == 6 } if { [TCP:local_port] == 80 } { pool my-server-pool-80 } } }
- HamishCirrocumulusAnd has a missing { character in it...
when client-connect { if { [ IP::protocol ] == 6 } { if { [TCP:local_port] == 80 } { pool my-server-pool-80 } } }
- hoolioCirrostratusCLIENT_ACCEPTED 🙂
when CLIENT_ACCEPTED { if { [ IP::protocol ] == 6 } { if { [TCP:local_port] == 80 } { pool my-server-pool-80 } } }
- bert_92443NimbostratusThank you so much.
- Kleython_Kell_5NimbostratusYours members are different, then, you can create another pool, with the 4 members and use this pool on the VS
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