Layer 7 Content Routing in F5 XC
Many of us are well-versed in setting up Layer 7 Content Switching, based on an URL Path or based on the Host header, with iRules or with LTM Local Traffic Policies. Now I have been tasked to setup Layer 7 Content Switching based on the Host header with F5 XC (Distributed Cloud Services).
For those who are not familiar with the content, I will briefly illustrate what Layer 7 Content Switching is.
With Layer 7 Content Switching, also called L7 Routing, your loadbalancer will make a loadbalancing decission based on an information that is available at the application layer. That information can be for example the Host header or a part of the URL. Based on this information a routing decission will be made and a certain backend (or origin server) will selected.
Now in BIG-IP this can be achieved fairly easy by the means of iRules or LTPs. In F5 XC this can be achieved by using Routes. I created the required Routes object in the HTTP Load Balancer object. You will have to provide a Name for the Routes object and configure the Routes.
The important part is the matching section of the configuration. In my example I will match for ANY HTTP method, for any URL path that has the prefix / - means again anything. And, most important, I will configure Headers to match with the Match Value demo01.mydomain.com for the header name Host. This will then be routed to the Origin Pool serving the contents for demo01.mydomain.com.
I configured the same again with the required values for demo02.mydomain.com.
Important is that you have both domains configured on your HTTP Load Balancer object as well.
Enjoy your working setup. Extract from the metrics:
demo01.mydomain.com
demo02.mydomain.com
Overall view
2 Comments
- Anzine321
Altocumulus
yes
i checked a record on zone via gui and cli bash and the record exist
then i used dig command on gtm
dig @localhost example.com and record exist but i tried on my pc using dig and nslookup but not resolved, after long time i tried again and can to resolved it,
i am not is whot the query took so long time, normally i created record and nslookup and resolved without waiting so long
I do not know if you have many F5 DNS/GTM that are different versions because of the update if an update of the big3d is needed on the F5 devices that are in a DNS sync group could help but who knows :
- T-Trust
Cirrostratus
So i think if nameserver that you have only DC, When you upgrade DC, DNS service go down becasue LDNS cannot reach to name server DC