How to make the guest being the router/gateway for the host?
Posted: 21. Dec 2012, 16:45
Hi, all
Host: 64-bit Windows 7 Ultimate.
Guest: 64-bit Ubuntu 12.10
One of the simplest network VM configuration, for the most basic usecase, is seting up NAT-based networking so that the host OS provides Internet access to the guest OS, allowing him to browse the WEB, for example.
For that usecase, the VBox-embedded DHCP server comes in handy, giving the guest OS necessary information about network routing.
However, I would like the exact contrary:
I am already able to make the guest OS have Internet acces per himself (Using an USB WiFi adapter and USB passthrough).
I would like to make the guest OS share his Internet connectivity with the host OS:
- I would like to simulate a single Ethernet segment with only the host box and the guest box on it.
- The host OS will use a software 'TAP' device (for Ethernet frames), NOT a 'TUN' device (for IP packets), and the guest OS will use a corresponding emulated Ethernet network interface.
- I don't need VBox DHCP server.
- I will setup an authoritative DHCP server for IPv4 inside the guest OS, telling the default route, making the guest a real IPv4 router.
- The host OS will learn that there is a router on his virtual LAN segment whenever the virtual cable is plugged.
Could you help me, please, configure the VBox virtual machine to achieve this goal?
For final touch on host_OS-specific or guest_OS-specific network configuration, I can do it myself using WiresShark; ideas welcome though
I am looking forward to hearing from you all, and would like to thank you for the time invested.
I wish you all an Happy Xmas,
Valentin
Host: 64-bit Windows 7 Ultimate.
Guest: 64-bit Ubuntu 12.10
One of the simplest network VM configuration, for the most basic usecase, is seting up NAT-based networking so that the host OS provides Internet access to the guest OS, allowing him to browse the WEB, for example.
For that usecase, the VBox-embedded DHCP server comes in handy, giving the guest OS necessary information about network routing.
However, I would like the exact contrary:
I am already able to make the guest OS have Internet acces per himself (Using an USB WiFi adapter and USB passthrough).
I would like to make the guest OS share his Internet connectivity with the host OS:
- I would like to simulate a single Ethernet segment with only the host box and the guest box on it.
- The host OS will use a software 'TAP' device (for Ethernet frames), NOT a 'TUN' device (for IP packets), and the guest OS will use a corresponding emulated Ethernet network interface.
- I don't need VBox DHCP server.
- I will setup an authoritative DHCP server for IPv4 inside the guest OS, telling the default route, making the guest a real IPv4 router.
- The host OS will learn that there is a router on his virtual LAN segment whenever the virtual cable is plugged.
Could you help me, please, configure the VBox virtual machine to achieve this goal?
For final touch on host_OS-specific or guest_OS-specific network configuration, I can do it myself using WiresShark; ideas welcome though
I am looking forward to hearing from you all, and would like to thank you for the time invested.
I wish you all an Happy Xmas,
Valentin