Forum Discussion

Donnie_94135's avatar
Donnie_94135
Icon for Nimbostratus rankNimbostratus
Jan 29, 2008

UIE - 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

  • 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
      }
    }

  • Yes, it should be applied to any wideIP in which this functionality is desired.
  • I am seeing th error below. The pool memeber is right. Any ideas?

     

     

    TCL error: Rule DNS_Request_WWW - Failed to find pool member: poolmbr line 6 invoked from within pool pl_www_208 member .32.208.12

     

     

    Thanks for your help!
  • 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.