Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BpZYc-0008TE-BL for qemu-devel@nongnu.org; Tue, 27 Jul 2004 17:32:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BpZYa-0008T2-M8 for qemu-devel@nongnu.org; Tue, 27 Jul 2004 17:32:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BpZYa-0008Sz-It for qemu-devel@nongnu.org; Tue, 27 Jul 2004 17:32:20 -0400 Received: from [66.163.170.83] (helo=smtp813.mail.sc5.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1BpZVG-0003Tq-3E for qemu-devel@nongnu.org; Tue, 27 Jul 2004 17:28:54 -0400 From: Joe Menola Subject: Re: [Qemu-devel] TUN network Date: Tue, 27 Jul 2004 16:25:01 -0500 References: <4107194E.3080201@optusnet.com.au> In-Reply-To: <4107194E.3080201@optusnet.com.au> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200407271625.01576.menola@sbcglobal.net> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I setup tun0 with 2 scripts in /etc. /etc/q-ifup #!/bin/sh sudo /sbin/ifconfig $1 192.168.1.1 sudo /etc/qemu-iptables /etc/qemu-iptables #!/bin/sh /etc/rc.d/init.d/iptables stop echo "1" >&/proc/sys/net/ipv4/ip_forward /etc/rc.d/init.d/iptables start You cannot set ip_forward with iptables running, hence the stop/start thing. You must also setup /etc/sudoers file, so that both scripts can run as root. This is a bit complex...see http://www.aplawrence.com/Basics/sudo.html for info on how to set this up. -jm On Tue July 27 2004 10:11 pm, Darrin Ritter wrote: > hi > > Im currently trying to get a tun networking interface up and running for > the qemu virtual machine, has any one had any exprience with this? > > the instructions say to modprobe tun to get the tun module loaded and > then to run the following command > > ifconfig tun0 192.168.0.3 netmask 255.255.255.0 > > to get the interface configured. > > lsmod shows that there is a device module loaded and there is a device > in the dev directory /dev/net/tun > > but I get the following error. > > SIOCSIFADDR: No such device > tun0: unknown interface: No such device > SIOCSIFNETMASK: No such device > > if any one can point me to the right Docs then Id appreciate it, Im sure > its something that Im not doing right > > thanks DarR!N > > > > > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel