Ubuntu – How to set up dual wired and wireless connections

networkingroutingwireless

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.

Best Answer

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.

Related Question