Page 1 of 1

What to change when the Network I connect to has changed

Posted: 11. Jan 2016, 22:18
by oldenuf2nobtr
I am not a guru at Networking at all so if this question is really simple to answer I apologize. I want to prepare for a trip I will be on in 2 weeks.

1) My laptop receives it's network connection via wifi.
2) I have an external hard drive that is connected to my laptop where my Virtualbox is installed and my image run from.
3) In the Settings under Network I am using a Adapter 1 as a Bridged Adapter and the name is set to "Intel(R) Dual Band Wireless-AC 7260 and I have Adapter 2 as a NAT (No name - I'm not sure at the moment why I have that one setup.)

Problem: When I go from my home to another location and I connect to their Ethernet connection my Images do not have any internet connections and I cannot ping them any longer. My image is setup to use static IP's so I don't know if this is as simple as going in to my Network tab and changing the Name setting for Adapter 1 to be the one listed called "Intel(R) Ethernet Connection I218-LM or if there is more I would also have to update in my Centos 7 image and the setting it has setup.

Same question, if I am connecting to another wifi network other than the one I have at home.

Thank you in advance.

-Joleen

Re: What to change when the Network I connect to has changed

Posted: 11. Jan 2016, 22:20
by oldenuf2nobtr
Sorry, I just realized this should have been placed under VirtualBox on Windows Hosts.

-Joleen

Re: What to change when the Network I connect to has changed

Posted: 11. Jan 2016, 22:21
by Perryg
Moved to Windows host.

Re: What to change when the Network I connect to has changed

Posted: 12. Jan 2016, 01:39
by BillG
The NIC in your vm is bridged to the wireless NIC in your laptop. This works fine if you are connected to a wireless network. If you connect to an Ethernet network, your vm NIC would need to be bridged to the Ethernet NIC of your laptop to connect to the network.

I would set NIC2 of the vm to be bridged to the Ethernet NIC of your laptop. Your laptop should then have a connection no matter which type of network you connect to.

NAT is the default setting, but you do not need a NAT connection if you are using bridged mode.

Re: What to change when the Network I connect to has changed

Posted: 12. Jan 2016, 05:07
by oldenuf2nobtr
BillG wrote:The NIC in your vm is bridged to the wireless NIC in your laptop. This works fine if you are connected to a wireless network. If you connect to an Ethernet network, your vm NIC would need to be bridged to the Ethernet NIC of your laptop to connect to the network.

I would set NIC2 of the vm to be bridged to the Ethernet NIC of your laptop. Your laptop should then have a connection no matter which type of network you connect to.

NAT is the default setting, but you do not need a NAT connection if you are using bridged mode.
Thank you BillG. So your saying to use Adapter 3 for NIC2 for when I am connected to the Ethernet network?

Re: What to change when the Network I connect to has changed

Posted: 12. Jan 2016, 07:43
by BillG
It doesn't really matter which adapter you use, but I would use the one which is currently set to NAT, since you don't need that one if you are running bridged.