Page 1 of 1

VB v1.5.6 HIF solution working, but howto make it permanent?

Posted: 4. Jun 2008, 12:19
by thomasjohansen
Hi. I have tried to using v1.6.0 for Host networking but i never managed to get it working.

Now I have downgraded VB to v1.5.6 on my Ubuntu server and maked it work with this great guide (look at the network part):
https://help.ubuntu.com/community/VirtualBox

For those reading this for a solution to make HIF working in v1.5.6 here is a quick guide taken from the link above:

Code: Select all

sudo apt-get install bridge-utils uml-utilities 
sudo chown root.vboxusers /dev/net/tun
sudo chmod g+rw /dev/net/tun
sudo gedit /etc/udev/rules.d/20-names.rules

change: 
KERNEL=="tun",                          NAME="net/%k" 

to:
KERNEL=="tun",                          NAME="net/%k",  GROUP="vboxusers",     MODE="0660" 

sudo tunctl -t tap1 -u "username"
sudo tunctl -t tap2 -u "username"
sudo brctl addbr br0
sudo ifconfig eth0 0.0.0.0 promisc
sudo brctl addif br0 eth0
sudo ifconfig br0 10.192.67.47 netmask 255.255.255.0
sudo route add default gw 10.192.67.1 br0
sudo brctl addif br0 tap1
sudo brctl addif br0 tap2
sudo ifconfig tap1 up
sudo ifconfig tap2 up

Back to my problem:

But now I have a problem, I cant make the network settings permanent, basically because I dont know how.

The settings i want to make permanent is following:

Code: Select all

sudo tunctl -t tap1 -u thomas
sudo tunctl -t tap2 -u thomas
sudo brctl addbr br0
sudo ifconfig eth0 0.0.0.0 promisc
sudo brctl addif br0 eth0
sudo ifconfig br0 10.192.67.47 netmask 255.255.255.0
sudo route add default gw 10.192.67.1 br0
sudo brctl addif br0 tap1
sudo brctl addif br0 tap2
sudo ifconfig tap1 up
sudo ifconfig tap2 up  

Plz help me make them permanent, and please in details.


My guess is editing /etc/networking/interfaces but with what?


thx in advandge