From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BdnCB-0002K4-Ap for qemu-devel@nongnu.org; Fri, 25 Jun 2004 05:40:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BdnC9-0002Jg-MN for qemu-devel@nongnu.org; Fri, 25 Jun 2004 05:40:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BdnC9-0002JW-KC for qemu-devel@nongnu.org; Fri, 25 Jun 2004 05:40:29 -0400 Received: from [211.5.2.73] (helo=nm01omta012.dion.ne.jp) by monty-python.gnu.org with smtp (Exim 4.34) id 1BdnAa-00016x-Rr for qemu-devel@nongnu.org; Fri, 25 Jun 2004 05:38:53 -0400 Message-ID: <00af01c45a98$102e38d0$0264a8c0@afina> From: "kazu" References: <20040625053731.GA20270@darjeeling.triplehelix.org> Subject: Re: [Qemu-devel] slirp, darwin problems Date: Fri, 25 Jun 2004 18:37:42 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit 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 Cc: joshk@triplehelix.org Hi, Friday, June 25, 2004 2:37 PM Joshua Kwan wrote: >My thinking is that qemu might be looking in the wrong place for a >gateway? My computer is behind a NAT, and has two network interfaces: >one for a local wired network, and a wireless network which allows me to >connect to my firewall and the Internet. My default gateway is set >correctly and I am able to use the Internet normally from my host. >However, qemu maybe doesn't see the default gateway being used or >something? QEMU with slirp is a simple client program. Virtual network in QEMU which has DHCP server doesn't have any relationship with a host's network configuration. If your debian can get an IP address like 10.0.2.x by dhcpcd or dhclient from virtual DHCP server , the problem is that packets cannnot be sent or received to QEMU. If you can use tcpdump as root on a host OS, you can check it. [host OS]# tcpdump -i eth0 or [host OS]# tcpdump -i eth1 (if you have two cards) or when you use a host-gest connection, [host OS]# tcpdump -i lo Then use a program on a guest OS. [guest OS]$ lynx http://----example-----/ When a connection is normal, you will see some output of tcpdump. Regards, kazu