Forum Discussion

semperfiguy_759's avatar
semperfiguy_759
Icon for Nimbostratus rankNimbostratus
Feb 01, 2010

link controller outbound

Is there a way, besides an iRule, to configure link controller to SNAT outbound traffic to a specific IP address on link 1 unless that link is down?

 

 

I have the following iRule on a forwarding virtual.

 

 

when CLIENT_ACCEPTED {

 

 

check pool member availability

 

if { [LB::status pool DG_Pool member 5.5.5.1 0 ] ne "down" } {

 

 

snat using ISP1

 

snat 15.5.5.5

 

 

} else {

 

Use ISP2

 

snat 6.6.6.6

 

 

}

 

}

 

 

The customer wants a non-iRule solution if possible.

1 Reply

  • I don't think there is a way to force LC to select a specific SNAT address without using an iRule. However, if you had the two ISP links set on different VLANs and enabled SNAT automap on the VIP, LC would select the floating self IP for the egress VLAN to source the traffic from. You could use priority groups in a default gateway pool to select ISP1 by default. ISP2's gateway would only be used if ISP is marked down.

     

     

    Aaron