Hi,
I use VirtualBox under Mac (and Linux) to host a Debian Linux guest.
Is it possible to use sevral networking modes at the same time ?
I explain. I'd like:
1- a Host-only interface for communicating between host and guest.
2- a NAT interface, in order to access the Internet from the guest (eg to apply software updates from time to time)
Guest is providing a service to host, but external internet communication is not permanent (eg, think of a roaming laptop).
So the NAT connection would be useful only when teh host is connected to Inernet, without disturbing the service provided by the "host-only" network (on fixed IP addresses).
What would be the best solution ?
Thanks for your help.
Emmanuel
Using several networking modes at the same time
-
emmanuelito
- Posts: 3
- Joined: 4. May 2010, 10:53
- Primary OS: Mac OS X other
- VBox Version: OSE other
- Guest OSses: Debian Linux
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Using several networking modes at the same time
Yes it works and is the suggested way of doing this.
See Chapter 6. Virtual networking in your VirtualBox users guide.
See Chapter 6. Virtual networking in your VirtualBox users guide.
-
emmanuelito
- Posts: 3
- Joined: 4. May 2010, 10:53
- Primary OS: Mac OS X other
- VBox Version: OSE other
- Guest OSses: Debian Linux
Re: Using several networking modes at the same time
Thank you for your answer.
I have read the chapter 6, and found no explanation: how to set up 2 interfaces on the guest (let's say eth0 bridged and eth0:1, or eth1, NATed) ? Can you be more specific in your reference ?
I have read the chapter 6, and found no explanation: how to set up 2 interfaces on the guest (let's say eth0 bridged and eth0:1, or eth1, NATed) ? Can you be more specific in your reference ?
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Using several networking modes at the same time
IN the guest settings (with the guest shut down) go to the network section and add another adapter.
Set one to host-only and the other one to NAT. Then setup eth0 and eth1 in the guest.
Set one to host-only and the other one to NAT. Then setup eth0 and eth1 in the guest.
-
emmanuelito
- Posts: 3
- Joined: 4. May 2010, 10:53
- Primary OS: Mac OS X other
- VBox Version: OSE other
- Guest OSses: Debian Linux
Re: Using several networking modes at the same time
Too simple !
Fantastic, I love VirtualBox !
Thank you very much.
Fantastic, I love VirtualBox !
Thank you very much.