|
From: | Jesus M. Salvo Jr. |
Subject: | Re: [Qemu-devel] Help with tun/tap with qemu |
Date: | Wed, 11 Aug 2004 15:10:00 +1000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114 |
Jesus M. Salvo Jr. wrote:
OK, I have now setup a bridge on linux as follows. On the host OS, I have the following script and ran it as root: #!/bin/sh /usr/sbin/brctl addbr br0 /sbin/ifconfig eth2 0.0.0.0 promisc up /sbin/ifconfig tap0 0.0.0.0 promisc up/sbin/ifconfig br0 192.168.0.199 netmask 255.255.255.0 broadcast 192.168.0.255 up/usr/sbin/brctl stp br0 off /usr/sbin/brctl setfd br0 1 /usr/sbin/brctl sethello br0 1 /usr/sbin/brctl addif br0 eth2 /usr/sbin/brctl addif br0 tap0 /sbin/route add default gw 192.168.0.1
Works now. Changed references of tap0 to tun0 in the above script.I have to run the script just after running qemu, since the tun0 interface is not created until qemu is ran.
[Prev in Thread] | Current Thread | [Next in Thread] |