Page 1 of 1

Use at command for setting IP Tunnel

Posted: 5. Sep 2008, 20:28
by cedenburn
Hello, I found this to work very well.
First do this:

Code: Select all

sudo apt-get install uml-utilities bridge-utils
Then sudo gedit /etc/rc.local to add this at command:

Code: Select all

at -f /home/USERID/test now
test is a file with the following contents:

Code: Select all

tunctl -t tap1 -u USERID
tunctl -t tap2 -u USERID    
brctl addbr br0
ifconfig eth0 0.0.0.0 promisc
brctl addif br0 eth0
dhclient br0
brctl addif br0 tap1
brctl addif br0 tap2
ifconfig tap1 up
ifconfig tap2 up
sudo chmod 0666 /dev/net/tun
I use this to put two VM on host network, if you need more just add tap3, tap4 etc.

Enjoy

Posted: 6. Sep 2008, 00:39
by Sasquatch
Your point being? If you use the command VBoxAddIF you can create a virtual interface too for your virtual machine.