Links

   Quran Explorer - Interactive Audio Recitations & Translations

Wednesday, September 1, 2010

Virtual Box - Networking

1. Host Only Network
This is a network between the hosts and guests (configured and running)

Host IP
vboxnet0
Link encap:Ethernet HWaddr 0A:00:27:00:00:00
inet addr:192.168.56.1 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::800:27ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:5697 (5.5 KiB)

Guests
192.168.56.x

2. Internal Network
This is a Virtual LAN between guests.



3. Bridged Network
This uses the host as the network to allow your guests to join the corporate LAN (and obtain IPs in the same range as the host).


4. NAT

Network Address Translation.
The following example will give u an overview of what NATing can achieve.

The following commands will forward TCP traffic that originates from port 2222 on your host OS to port 22 on your guest OS:

$ VBoxManage setextradata "Windows Guest" \
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" TCP

$ VBoxManage setextradata "Windows Guest" \
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 22

$ VBoxManage setextradata "Windows Guest" \
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 2222

No comments:

Post a Comment

Feel free to leave a comment