From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CmNmS-0001a0-BI for qemu-devel@nongnu.org; Wed, 05 Jan 2005 21:53:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CmNmQ-0001Yc-TC for qemu-devel@nongnu.org; Wed, 05 Jan 2005 21:53:43 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CmNmQ-0001Xw-IB for qemu-devel@nongnu.org; Wed, 05 Jan 2005 21:53:42 -0500 Received: from [212.16.62.51] (helo=mail.13thfloor.at) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CmNai-0002wF-Ow for qemu-devel@nongnu.org; Wed, 05 Jan 2005 21:41:37 -0500 Date: Thu, 6 Jan 2005 03:41:26 +0100 From: Herbert Poetzl Subject: Re: [Qemu-devel] NETDEV WATCHDOG: eth0: transmit timed out Message-ID: <20050106024125.GA728@mail.13thfloor.at> References: <1104899444.20758.26.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1104899444.20758.26.camel@localhost.localdomain> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Horst Schlonz Cc: qemu-devel@nongnu.org On Wed, Jan 05, 2005 at 05:30:44AM +0100, Horst Schlonz wrote: > hi, > > i have qemu 0.6.1 and a debian host system. i started qemu like this: > root@host # chmod 666 /dev/net/tun > root@host # logout > user@host # qemu -hda debiansarge.img > Password: > Connected to host network interface: tun0 > > i have installed debian sarge as guest system before. on the host i have > a tun0 interface: > user@host # ifconfig tun0 > ifconfig tun0 > tun0 Protokoll:Ethernet Hardware Adresse 00:FF:58:37:D9:25 > inet Adresse:172.20.0.1 Bcast:172.20.255.255 Maske:255.255.0.0 > [...] > > now, on the guest i setup networking: > root@guest # ifconfig eth0 172.20.0.2 netmask 255.255.0.0 up > root@guest # ifconfig eth0 > eth0 Protokoll:Ethernet Hardware Adresse 52:54:00:12:34:56 > inet Adresse:172.20.0.2 Bcast:172.20.255.255 Maske:255.255.0.0 > [...] > > the problem is: > root@guest # ping -c1 172.20.0.1 > PING 172.20.0.1 (172.20.0.1) 56(84) bytes of data > NETDEV WATCHDOG: eth0: transmit timed out > NETDEV WATCHDOG: eth0: transmit timed out > >From 172.20.0.2 icmp_seq=1 Destination Host Unreachable > > --- 172.20.0.1 ping statistics --- > 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms > root@guest # > > can anyone confirm this? is something wrong with the emulated > realtek-network-device? mandrake based host system here, after booting a default 2.6.10 kernel with: qemu-0.6.1/i386/qemu-fast -nographic -L qemu-0.6.1/pc-bios \ -m 64 -snapshot -hda IMGs/TESTn_32M.img -kernel \ /src/linux-2.6.10-P1/arch/i386/boot/bzImage \ -append "rw root=/dev/hda1 devfs=mount init=/bin/bash" (the following script is executed on the host:) # cat /etc/qemu-ifup --------------------------------------------------------- #!/bin/bash IF="$1" NR=`echo $IF | sed 's/^[a-z]*//'` NX=$[NR+10] IFX="10.0.$NR.1" BCX="10.0.$NR.255" RMX="10.0.$NR.2" echo -e "\e[33m$IF configured for $IFX/$RMX\e[0m" ifconfig $IF $IFX netmask 255.255.255.0 broadcast $BCX route add -net 192.168.$NR.0/24 gw $RMX # route add -host 10.0.0.$NX dev $IF echo 1 > /proc/sys/net/ipv4/conf/$IF/proxy_arp --------------------------------------------------------- (now on the guest) [root@(none) /]$ ifconfig lo 127.0.0.1 [root@(none) /]$ ifconfig eth0 10.0.0.2 [root@(none) /]$ ping -c 2 10.0.0.1 PING 10.0.0.1 (10.0.0.1) from 10.0.0.2 : 56(84) bytes of data. 64 bytes from 10.0.0.1: icmp_seq=0 ttl=64 time=7.181 msec 64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=821 usec --- 10.0.0.1 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/mdev = 0.821/4.001/7.181/3.180 ms (the relevant kernel config parts) CONFIG_NET=y CONFIG_UNIX=y CONFIG_INET=y CONFIG_IP_ADVANCED_ROUTER=y CONFIG_IP_PNP=y CONFIG_NETDEVICES=y CONFIG_DUMMY=y CONFIG_NET_ETHERNET=y CONFIG_MII=y CONFIG_NET_PCI=y CONFIG_NE2K_PCI=y HTH, Herbert > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel