|
From: | Jerzy Grzegorek |
Subject: | [Qemu-discuss] Wget working but ping is not |
Date: | Fri, 10 Aug 2012 13:13:40 +0200 |
Hi,
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=10.0.2.15:10.0.2.2:10.0.2.2" \
-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=10.0.2.15:10.0.2.2:10.0.2.2
PID hash table entries: 512 (order: -1, 2048 bytes)
...
login: root
Password:
# udhcpc eth0
udhcpc (v1.20.2) started
Sending discover...
Sending select for 10.0.2.15...
Lease of 10.0.2.15 obtained, lease time 86400
deleting routers
route: SIOCDELRT: No such process
adding dns 10.0.2.3
# ifconfig
eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56
inet addr:10.0.2.15
Bcast:10.0.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
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:127.0.0.1 Mask:255.0.0.0
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
0.0.0.0 10.0.2.2 0.0.0.0 UG 0
0 0 eth0
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
# ping 10.0.2.15 -c 3
PING 10.0.2.15 (10.0.2.15): 56 data bytes
64 bytes from 10.0.2.15: seq=0 ttl=64 time=12.455 ms
64
bytes from 10.0.2.15: seq=1 ttl=64 time=12.374 ms
64 bytes from 10.0.2.15: seq=2 ttl=64 time=1.341 ms
--- 10.0.2.15 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 (173.194.35.176): 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 (140.211.167.224:80)
buildroot-2012.08-rc 100% |*******************************| 2336k 0:00:00 ETA
Any ideas?
Jurek
[Prev in Thread] | Current Thread | [Next in Thread] |