Use at command for setting IP Tunnel
Posted: 5. Sep 2008, 20:28
Hello, I found this to work very well.
First do this:
Then sudo gedit /etc/rc.local to add this at command:
test is a file with the following contents:
I use this to put two VM on host network, if you need more just add tap3, tap4 etc.
Enjoy
First do this:
Code: Select all
sudo apt-get install uml-utilities bridge-utilsCode: Select all
at -f /home/USERID/test nowCode: 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/tunEnjoy