System.util.retarget to a redundant gateway

when we use the system.util.retarget function in order to retarget to a redundant gateway,
how to know wich IP address to provide ?