[Top][All Lists]

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

[Qemu-discuss] Wget working but ping is not

From: Jerzy Grzegorek
Subject: [Qemu-discuss] Wget working but ping is not
Date: Fri, 10 Aug 2012 13:13:40 +0200



I built a little linux system for arm versatilepb machine, based on Busybox. I've run it on qemu and after booting I've launched udhcpc. My host is connecting to internet. Wget is working fine but ping is working only with localnet.

I used kernel 3.2.26 and qemu 1.1.1 (I tried 0.15 and 1.0 versions tool)


sudo qemu-system-arm -M versatilepb -m 128M -nographic \
  -kernel uImage-3.2.26-initramfs \
  -append "console=ttyAMA0 ip=" \
  -net nic,model=smc91c111 -net nic,vlan=0 -net user,vlan=0


Uncompressing Linux... done, booting the kernel.
Linux version 3.2.26 (address@hidden) (gcc version 4.3.2 (crosstool-NG 1.15.2) ) #3 Fri Aug 10 11:16:44 CEST 2012
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00093177
CPU: VIVT data cache, VIVT instruction cache
Machine: ARM-Versatile PB
Memory policy: ECC disabled, Data cache writeback
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyAMA0 ip=
PID hash table entries: 512 (order: -1, 2048 bytes)

login: root
# udhcpc eth0
udhcpc (v1.20.2) started
Sending discover...
Sending select for
Lease of obtained, lease time 86400
deleting routers
route: SIOCDELRT: No such process
adding dns
# ifconfig
eth0      Link encap:Ethernet  HWaddr 52:54:00:12:34:56 
          inet addr:  Bcast:  Mask:
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1610 (1.5 KiB)  TX bytes:1104 (1.0 KiB)
          Interrupt:25 Base address:0xa000 DMA chan:ff

lo        Link encap:Local Loopback 
          inet addr:  Mask:
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface                UG        0      0        0 eth0     U          0      0        0 eth0
# ping -c 3
PING ( 56 data bytes
64 bytes from seq=0 ttl=64 time=12.455 ms
64 bytes from seq=1 ttl=64 time=12.374 ms
64 bytes from seq=2 ttl=64 time=1.341 ms

--- ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 1.341/8.723/12.455 ms
# ping www.google.com -c 3
PING www.google.com ( 56 data bytes

--- www.google.com ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
# wget http://buildroot.uclibc.org/downloads/buildroot-2012.08-rc1.tar.bz2
Connecting to buildroot.uclibc.org (
buildroot-2012.08-rc 100% |*******************************|  2336k  0:00:00 ETA


Any ideas?



reply via email to

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