Ticket #4253 (closed enhancement: fixed)
"Automatic" setting for bridge device
|Reported by:||mwedgwood||Owned by:|
|Version:||VirtualBox 2.2.4||Keywords:||bridged networking|
The "Bridged Adapter" network setting requires that a specific network adapter be selected for a VM, and that adapter can't be changed without powering down the guest. For mobile users that frequently switch between wired and wireless network connections, this can be a problem.
It would be ideal if VirtualBox offered an Automatic setting which connected the guest's bridged network adapter to the host's physical interface using a set of rules such as the following:
- If the guest's IP address (based on packet SRC?) matched a directly-connected subnet on the host, use the interface that connects to that subnet.
- If the guest sends a DHCP request, route the request through the physical interface designated as the default route.
- If the guest's IP address cannot be determined, or does not match any directly-connected subnets on the host, use the physical interface designated as the default route.
An Automatic setting of this variety would only work for TCP/IP-based networking, but that's perfectly fine for the majority of applications. In cases where Automatic could not be used, a specific physical interface could still be selected.