My laptop has both wireless and a wired connection capabilities. Can I connect to a router A using wireless and a separate router B using wired ethernet at the same time without having to switch back and forth?
Thanks for replying so quickly.
I wish to connect to two separate networks. The wireless connection is to router A which is connected to broadband internet. The wired connection is to router B which I wish to share files and a printer on 1 or 2 other desktops also using wired connections on B and maybe using synergy to have only one keyboard and mouse for 2 desktops. The wireless laptop is the only one required to have internet access.
If you're using NetworkManager, it should just work. That said, you will need to set specific settings for your wired connection.
Select your wired connection in the Connection Editor window for NetworkManager (right click on the applet icon, then select Edit Connections). Click Edit, then switch to the IPv4 Settings tab and click the Routes button at the bottom.
You can then force the wired connection to not claim the default gateway (since NM would usually prefer wired over wireless), by checking the "Use this connection only for the resources on its network" checkbox.
The issue here is more of the load-balancing between the wired and wireless connection. Usually, there is only one default route (0.0.0.0, netmask 0.0.0.0), in the routing table. If there is more than one, the first one will always be used, and so the second one will not be. On the router side, if the request comes from one IP address, it will be responded on the same IP address.
What you need is known as load-balancing. I do not know whether there is a package under Ubuntu for this. But such load-balancing and fault-tolerance setup is not meant for desktop. You may want to search for such packages, for Ubuntu/Debian, but it will more likely be for servers. This article:
may put you on the right track.