Page 1 of 1
How to use both wireless adapter and wired adapter at the same time
Posted: 6. Apr 2016, 13:19
by javluis
Hi,
I'd like to know if it is possible to connect windows host to wired adapter and linux guest (virtual machine) to wireless adapter at the same time, and this way to use different networks, one of them to surf on internet and the other one to connect a local network.
Thx a lot
Regards.
Re: How to use both wireless adapter and wired adapter at the same time
Posted: 6. Apr 2016, 15:16
by Perryg
Depends on several things. It is possible to use wireless in the guest but only if you have a USB adapter and can pass it to the guest.
You can also use wired and wireless on the guest at the same time if the host is Linux ( don't know if Windows allows this or not ). Your router also must allow this and some wireless routers don't or won't allow multiple connections on the same MAC address.
Re: How to use both wireless adapter and wired adapter at the same time
Posted: 6. Apr 2016, 16:28
by Rootman
Yes, I do precisely this. Simply bind the GUEST nic in the Virtualbox wifi adapter of the HOST only. Be sure to specify the Ethernet adapter on the host as the default in the HOST OS's network settings. This is done in the ADVANCED settings of Windows Adapter Settings dialog. Connect the HOST ethernet to your main LAN and the HOST wifi to the network on which you want to surf the web with.
The HOST would then talk out the ethernet, the guest would talk out the wifi adapter.
Beware that Windows 8.1 and later have a tendency to shut off wifi when the ethernet is connected. This is somewhere in the OS network settings. I don't know if the host sensing an active wifi connection from the guest is enough to thwart this or not.
Re: How to use both wireless adapter and wired adapter at the same time
Posted: 6. Apr 2016, 16:53
by javluis
Hi again,
Thank you both for your quick answer, I've got the following way with a windows 7 host, I've configured the wireless adapter and wired adapter the following way:
The trick is to change the network card priority so that the wireless connection remains active when a wired connection is made.
The first step is to get to the "Control Panel > Network and Internet > Network and Sharing Center" page. On the left side of that page, click the link "Change adapter settings". This should bring you to the "Control Panel > Network and Internet > Network Connections >" page.
Select the wireless connection, right-click "Properties", and provide an admin password (if necessary). This should bring you to a dialog box named [wireless connect name] Properties".
In the list box titled "This connection uses the following items:", scroll down to "Internet Protocol Version 4 (TCP/IPv4)" and select it. The "Properties" command button will enable; click it. This should bring you to a dialog box named "Internet Protocol Version 4 (TCP/IPv4) Properties".
Click the "Advanced" command button. This should bring you to a dialog box named "Advanced TCP/IP Settings".
Near the bottom of the dialog box, there should be a check box named "Automatic metric". Uncheck it. That will enable a text box named "Interface metric". Fill in a number. It needs to be larger than 1 (reserved for loopback) and the number you choose for the wired network (see below).
Click three "OK" command buttons to return to the "Control Panel > Network and Internet > Network Connections >" page.
Repeat the above for the wired connection:
Select the wired connection, and right-click "Properties" to get to the [wired connection name] Properties" dialog box.
Select the IPv4 list entry and click "Properties", and on the next dialog box click "Advanced".
Again Uncheck "Automatic metric", and fill in a number in the "Interface metric" box. It needs to be larger than 1 but smaller than the number you chose above.
In my case I put number 2 for wired adpater and number 3 for wireless adapter
Thank you very much again
Best regards.