When you say "virtual IP" you mean you have used alternate config? If so just remove the gateway address on the non virtual IP configuration, then when connecting to an external network it'll use the default gateway specified. Tho the gateway has to be in the same subnet as the virtual address.
It should just take which ever gateway works, in the advanced tab the order they're in is the order of preferance.