Host Interface Networking

Discussions related to using VirtualBox on Linux hosts.
Post Reply
dcasper
Posts: 11
Joined: 3. Dec 2007, 18:55

Host Interface Networking

Post by dcasper »

I had this all figured out, and now it won't work again, so I'm here to ask for advice. I recently had to reinstall my OS (openSuSE 10.3) and ended up reinstalling VirtualBox as well. I'm now attempting to restore my bridge to where it was before I had to reinstall. I've done the following so far as the steps relate to the User Guide:

1. Ensure that my user has access to /dev/net/tun. My user is a member of the vboxusers group.

Code: Select all

linux-m7ac:~ # ls -l /dev/net/tun
crwxrwx--- 1 root vboxusers 10, 200 Sep 21  2007 /dev/net/tun
2. Create an bridge interface, modify the bridge to include my eth0 interface, and bring up the bridge.

Code: Select all

linux-m7ac:~ # tail -n 20 /etc/sysconfig/network/ifcfg-eth0
BOOTPROTO='static'
BROADCAST=''
ETHTOOL_OPTIONS=''
IFPLUGD_PRIORITY='20'
IPADDR='0.0.0.0/32'
MTU=''
NAME='Dell BCM4401-B0 100Base-TX'
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='manual'
USERCONTROL='no'
PREFIXLEN=''
linux-m7ac:~ # tail -n 20 /etc/sysconfig/network/ifcfg-br0
BOOTPROTO='dhcp'
NETMASK='255.255.255.0'
STARTMODE='manual'
USERCONTROL='no'
DHCLIENT_TIMEOUT=30
BRIDGE='yes'
BRIDGE_PORTS='eth0'
3. Create the virtual interface vbox0 via VBoxAddIF and make sure it is included in the bridge.

Code: Select all

linux-m7ac:~ # brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.00188bbd2320       no              eth0
                                                        vbox0
4. Add my ethernet bridge to the necessary location on the firewall to forward ports.

Code: Select all

linux-m7ac:~ # tail /etc/sysconfig/SuSEfirewall2
# order to install special permitting rules for them.
#
# Format: list of interface names separated by space
#
# Example:
#   FW_FORWARD_ALWAYS_INOUT_DEV="xenbr0"
#
FW_FORWARD_ALWAYS_INOUT_DEV="br0"
FW_SERVICES_ACCEPT_INT=""
FW_SERVICES_ACCEPT_DMZ=""
I'm currently able to enable my bridge and I receive an IP address on my host machine. I do not receive an IP address on my guest machine (XP Pro). It seems like I followed all the same steps I did last time, but for some reason I'm missing something. I'm open to suggestions. Thanks in advance,

--Dan Casper

---EDIT---

I was able to get this working by reading a couple of the other posts and incorporating some of their suggestions. Everything actually started working after I changed the line in my bridge setup from BRIDGE_PORTS='eth0' to BRIDGE_PORTS='eth0 vbox0'. I also changed to the Intel virtual nic driver, but that didn't seem to have any impact by itself. Amazing what you can accomplish when you read, eh?

--Dan
mk4umha
Posts: 27
Joined: 31. Oct 2007, 05:08

Post by mk4umha »

Did you make it auto set the bridge on bootup or do you have to type this out everytime you boot?
Post Reply