Host Networking on VirtualBox
Thu, 02/08/2007 - 10:32 — sandipThis is how I got host networking for VirtualBox and have it setup to use bridging on FedoraCore 6 host. This allows for two way traffic between the host and the guest. You will need bridge-utils and uml-utilities.
The first step is to configure the host with a bridge and a tap device. With this only the bridge will get an IP address and not the ethX nor the tapX device.
I am using dhcp to assign the IP addresses so the basic commands on the host are as below and can be put in the rc.local file for it to come up on boot:
# VirtualBox Bridging
# load the tun module
modprobe tun
# Create a tap device with permission for the user running vbox
tunctl -t tap0 -u {user}
chmod 666 /dev/net/tun
# Bring up ethX and tapX in promiscuous mode
ifconfig eth0 0.0.0.0 promisc
ifconfig tap0 0.0.0.0 promisc
# Create a new bridge and add the interfaces to the bridge.
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 tap0
# Give the bridge a dhcp address.
dhclient br0
You should now be able to use host networking in VirtualBox, just change "attached to" to "host interface" and add the interface name of "tap0" in your networking settings for the guest.
Notes:
If you're using a firewall on your host, make sure to turn it off when testing network setup.
I have had success with using APF as firewall which seems compatible with bridging.
References:
Change your Network card MAC ( Media Access Control) address Using macchanger
Thu, 01/04/2007 - 07:42 — david23Media Access Control address, a hardware address that uniquely identifies each node of a network. In IEEE 802 networks, the Data Link Control (DLC) layer of the OSI Reference Model is divided into two sublayers: the Logical Link Control (LLC) layer and the Media Access Control (MAC) layer. The MAC layer interfaces directly with the network medium.Consequently, each different type of network medium requires a different MAC layer. On networks that do not conform to the IEEE 802 standards but do conform to the OSI Reference Model, the node address is called the Data Link Control (DLC) address.
- david23's blog
- Login or register to post comments
- Read more
Network Bandwidth Monitoring Tools
Thu, 12/21/2006 - 05:28 — david23This is list of Network Bandwidth Monitoring Tools for Ubuntu Users includes bmon bwbar,bwm,bwm-ng,iftop,iperf,i
- david23's blog
- Login or register to post comments
Debian Networking Tutorial for Beginners and advanced users
Thu, 12/14/2006 - 05:32 — david23This is detailed step step debian networking tutorial for Beginners and advanced users.This includes Configuring your network using GUI,Command line,using ifconfig with examples and troubleshooting your network tips.
- david23's blog
- Login or register to post comments