Forum Discussion
Donnie_94135
Nimbostratus
Jan 29, 2008UIE - Source Mac Address
I have two GTMs. Each has its own ISP. I would like traffic bound for GTM-1 through ISP1 to go to Pool Member 1 on a VS. And I would like traffic bound for GTM-2 through ISP-2 to go to Pool Member 2 on the same VS.
Traffic is directed to the GTM via BGP, so in many cases I don't know the source IP address in advance. Both GTMs are in the same synch group. Is there a way to direct traffic to a specific pool member if the request is from a particular mac address? Or is there a better way?
Thanks,
Donnie
6 Replies
Sort By
- JRahm
Admin
You could use LINK::lasthop, but unfortunately that is not a valid command for GTM. If your GTM's are in different vlan's, you can do this:when DNS_REQUEST { if { [LINK::vlan_id] eq "10" } { log local0. "Connection is from RTR1" pool myPool-http member 10.1.1.10 } elseif { [LINK::vlan_id] eq "20" } { log local0. "Connection is from RTR2" pool myPool-http member 10.1.2.10 } }
- Donnie_94135
Nimbostratus
Thanks. This is exactly what I need. I will try it today. - Donnie_94135
Nimbostratus
Should I apply this iRule to the WideIP? - JRahm
Admin
Yes, it should be applied to any wideIP in which this functionality is desired. - Donnie_94135
Nimbostratus
I am seeing th error below. The pool memeber is right. Any ideas? - JRahm
Admin
Hmm, worked fine in my lab. Does GTM see your pool members as available? You may want to enhance the rule to add a status check before assigning the pool member.
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