Understunding TAP a bridging
Posted: 5. Sep 2008, 14:59
Hi all, this is my first experience with vbox and virtualization in general.
I virtualized a distribution called debian-edu (guest) insede a debian lenny (host).
I test the "internal network" with another guest and it works fine.
Now I'm studing HIF (host interface networking).
In theory, i should be capable of pinging the host from the guest because the ICMP request goes from guest eth0 to vbox0 on the host.
Is it right?
I created the vbox interface (VBoxAddIf vbox0 myuser) and checked that myuser is in the vboxusers group.
I enabled only a netowrk card in the virtual machine (guest) choosing "host interface" and setting "vbox0" like "interface name".
When I start the virtual machine, the guest doesn't show any interface (ifconfig). Why is it not correct? What should I do?
Actualy I'm not trying to create a bridge. I'm just trying to understund the theory and functions of vbox (and networking in general).
If what I say is right, any request (tcp packages) from guest interface, arrive to vbox0 and stop there (without the bridge).
Setting up the bridge between the host interfaces (eth0 and vbox0) will forward the rquest from the guest (from its eth0) to exit from the host eth0, reaching the true network.
Is it right?
I virtualized a distribution called debian-edu (guest) insede a debian lenny (host).
I test the "internal network" with another guest and it works fine.
Now I'm studing HIF (host interface networking).
When a guest is using such a new software interface, it looks to the host system as though the guest were physically connected to the interface using a network cable:
Since the Linux kernel has built-in support for virtual network devices (so-called TAP interfaces), VirtualBox on Linux makes use of these
So, from that I understund that , even before create the bridge, the guest and the host are i contcatc bye the virtual network card vbox0.From the point of view of the host, it looks like the guest’s network card is connected to the TAP interface with a network cable.
Code: Select all
host-eth0 (phisical)
-vbox0 (virtual)
|
|
guest-eth0Is it right?
I created the vbox interface (VBoxAddIf vbox0 myuser) and checked that myuser is in the vboxusers group.
I enabled only a netowrk card in the virtual machine (guest) choosing "host interface" and setting "vbox0" like "interface name".
When I start the virtual machine, the guest doesn't show any interface (ifconfig). Why is it not correct? What should I do?
Actualy I'm not trying to create a bridge. I'm just trying to understund the theory and functions of vbox (and networking in general).
If what I say is right, any request (tcp packages) from guest interface, arrive to vbox0 and stop there (without the bridge).
Setting up the bridge between the host interfaces (eth0 and vbox0) will forward the rquest from the guest (from its eth0) to exit from the host eth0, reaching the true network.
Is it right?
Code: Select all
computer1---------
switch
computer2---------
|
|
host-eth0 (phisical)--
-vbox0 (virtual)
|
|
guest-eth0