Lecture Number 05
Lecture Number 05
10/1/2022 1
Outline
• Intro
• Networking modes
• Not attached
• Network Address Translation (NAT)
• Bridged networking
• Internal networking
• Host-only networking
• Generic networking
• Networking concept in Xen
• The VMM documentation indicates that “A logical network is used to organize and simplify
network assignments for hosts, virtual machines and services.
• As part of logical network creation, you can create network sites to define the VLANs, IP
subnets, and IP subnet/VLAN pairs that are associated with the logical network in each
physical location.”
Networking modes
• We can chose different networking modes in a VM:
• Not attached
• Bridged networking
• Internal networking
• Host-only networking
• Generic networking
Not attached
• In this mode, VirtualBox reports to the guest that a network card is
present, but that there is no connection -- as if no Ethernet cable was
plugged into the card.
• This way it is possible to "pull" the virtual Ethernet cable and disrupt
the connection, which can be useful to inform a guest operating
system that no network connection is available and enforce a
reconfiguration.
Network Address Translation (NAT)
• It does not require any configuration on the host network and guest
system.
• For this reason, it is the default networking mode in VirtualBox.
• VirtualBox networking engine acts as a router and placed between
each virtual machine and the host
• This separation maximizes security since by default virtual machines cannot
talk to each other.
• You cannot run a server this way unless you set up port forwarding
domU
• All of bridging work are dom0
done by ‘brctl’. vif1.0 vif1.1 vif2.0 vif2.1 vif3.0 vif3.1 vif4.0 vif4.1