301d8 read04 - carlosjorr/reading-notes GitHub Wiki

Routing

Which network mode in VirtualBox can be used to emulate unplugging the Ethernet cable from the network?

In VirtualBox, the network mode that can be used to emulate unplugging the Ethernet cable from the network is the "Disconnected" mode. When a virtual machine is set to the Disconnected mode, it is isolated from the network and cannot communicate with any external resources.

Which network mode would be best if you wanted to run a server on a VM that could be fully accessible from your physical local area network?

f you want to run a server on a virtual machine that should be fully accessible from your physical local area network, you would typically use the "Bridged Adapter" mode. With Bridged Adapter mode, the virtual machine is connected directly to the physical network, and it appears as a separate device on the network. This allows the VM to obtain its own IP address and be accessed by other devices on the local network as if it were a physical machine.

What are the three options of promiscuous mode and what does each do?

The three options for promiscuous mode in VirtualBox are:

Deny: This is the default mode. In Deny mode, the virtual machine is not allowed to capture network traffic other than its own.

Allow VMs: In this mode, the virtual machine can capture network traffic from other VMs on the same host if they are also in promiscuous mode.

Allow All: This mode allows the virtual machine to capture all network traffic on the host's network interface, including traffic from other VMs and the host itself.

What is Port Forwarding?

Port Forwarding is a technique used to redirect network traffic from one IP address and port combination to another. It is commonly used in virtualization environments and routers to allow incoming connections to reach specific services or applications running on a virtual machine or a device behind a NAT (Network Address Translation) router. With port forwarding, external requests to a specific port on the host machine are forwarded to a specific port on a virtual machine or another device on the local network. This enables external access to services running inside the network, such as web servers, SSH, or other applications.