What happens when a "Not Attached" n/w adapter has its cable connected

This is for discussing general topics about how to use VirtualBox.

What happens when a "Not Attached" n/w adapter has its cable connected

Postby Nap » 17. Nov 2017, 17:25

From section 6.2 of the Virtual Box documentation, a network interface can be "Not attached":

Not attached

In this mode, VirtualBox reports to the guest that a network card is present, but that there is no connection -- as if no Ethernet cable was plugged into the card. This way it is possible to "pull" the virtual Ethernet cable and disrupt the connection, which can be useful to inform a guest operating system that no network connection is available and enforce a reconfiguration.


When a cable is attached, say from the GUI, what type of network is thus created? NAT, Bridged, or some other?
Nap
 
Posts: 7
Joined: 22. Jul 2014, 02:06

Re: What happens when a "Not Attached" n/w adapter has its cable connected

Postby mpack » 18. Nov 2017, 10:44

It will be whatever connection type was configured.

This is not a separate feature, it's just part of the NIC simulation, which is the same client side simulation regardless of network type.
mpack
Site Moderator
 
Posts: 25435
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: What happens when a "Not Attached" n/w adapter has its cable connected

Postby Nap » 21. Nov 2017, 06:17

The "Not attached" choice is mutually exclusive to the other choices, so there is no fall-back to go to when you connect the cable in the UI.
Nap
 
Posts: 7
Joined: 22. Jul 2014, 02:06

Re: What happens when a "Not Attached" n/w adapter has its cable connected

Postby mpack » 21. Nov 2017, 09:39

Ah, I thought you were referring to the cable connected option in the dialog.

In that case I don't think I've ever enabled a NIC without attaching it to a network. But, I'd guess that connecting and disconnecting the cable would do nothing much. It would be like connecting and disconnected a physical cable to your physical Ethernet NIC while your router/server is switched off.
mpack
Site Moderator
 
Posts: 25435
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP


Return to Using VirtualBox

Who is online

Users browsing this forum: Bing [Bot] and 18 guests