qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] NETDEV WATCHDOG: eth0: transmit timed out


From: Herbert Poetzl
Subject: Re: [Qemu-devel] NETDEV WATCHDOG: eth0: transmit timed out
Date: Thu, 6 Jan 2005 03:41:26 +0100
User-agent: Mutt/1.4.1i

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:
> address@hidden # chmod 666 /dev/net/tun
> address@hidden # logout
> address@hidden # 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:
> address@hidden # 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:
> address@hidden # ifconfig eth0 172.20.0.2 netmask 255.255.0.0 up
> address@hidden # 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:
> address@hidden # 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
> address@hidden #
> 
> 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
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/qemu-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]