If a Ubuntu 11.04 machine is connected to WiFi and 3G simultaneously, how do I set the priority to let the applications (browser etc.) to use WiFi first? If that's not available, it should use the 3G.
Basically, I would like to set the order in which the network connections are used.
Edit: I am looking for an easier approach which would be useful for those who are just comfortable and not experts in Ubuntu/Linux.