Skip to contentSkip to conversation

win98 user mode network not working ...

Qemu-devel Adrian Coman 5 participants 5 messages Jan 12, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

I'm a newbie with qemu and I know there have been a lot of topics on the qemu networking topic, but none of them solved my problem ... I hope I'll get an answer from you.

So, I have a CentOS 4.2 as host with qemu-0.8.0 installed from sources. As guest I have a win98se. In w98 I configured the network to get the IP through dhcp. I start qemu with:

qemu -localtime -hda win98.img

From what I read, when there is no -net option, the default network mode is usermode.

The problem is that when I ping yahoo.com for example I get the IP of yahoo but no response from ping ..., something like:

ping yahoo.com
Pinging yahoo.com [216.109.112.135] with 32 bytes of data:
request time out

I attached a screenshot with the output of ipconfig /all from w98.

Where did I do wrong?

Thanks,
Adrian

#1 lore raw
Quoted 18 lines · Adrian Coman

Hi,

I'm a newbie with qemu and I know there have been a lot of topics on the qemu networking topic, but none of them solved my problem ... I hope I'll get an answer from you.

So, I have a CentOS 4.2 as host with qemu-0.8.0 installed from sources. As guest I have a win98se. In w98 I configured the network to get the IP through dhcp. I start qemu with:

qemu -localtime -hda win98.img

From what I read, when there is no -net option, the default network mode is usermode.

The problem is that when I ping yahoo.com for example I get the IP of yahoo but no response from ping ..., something like:

Quoted 7 lines

ping yahoo.com
Pinging yahoo.com [216.109.112.135] with 32 bytes of data:
request time out

I attached a screenshot with the output of ipconfig /all from w98.

Where did I do wrong?

nothing :)
consider qemu as a firewall that is rather restrictive:
The ping command is only working to ping your gateway (10.0.2.2). ...Yahoo was resolved, so your network is up and running...

Mike

Quoted 8 lines

Thanks,
Adrian
<ipconfig_qemu.jpeg>
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#2 lore raw
In reply to Adrian Coman
Quoted 7 lines · Adrian Coman

The problem is that when I ping yahoo.com for example I get the IP of yahoo but no response from ping ..., something like:
ping yahoo.com
Pinging yahoo.com [216.109.112.135] with 32 bytes of data:
request time out
I attached a screenshot with the output of ipconfig /all from w98. Where did I do wrong?

Nothing; and actually this has been answered in a handful of FAQs
before: ICMP doesn't fully work over SLIRP. Sending ICMP packets work, but not receiving. This is because of how SLIRP works.

If you need this functionality, please consider using tun/tap on the host or OpenVPN from inside the guest.

--
"I decry the current tendency to seek patents on algorithms. There are better ways to earn a living than to prevent other people from making use of one's contributions to computer science."
Donald Knuth

#3 lore raw
In reply to Adrian Coman

From http://fabrice.bellard.free.fr/qemu/qemu-doc.html#SEC23

"Note that ping is not supported reliably to the internet as it would require root priviledges. It means you can only ping the local router (10.0.2.2)."

So I guess this is not the right way to test your connectivity.

Regards

JC

Quoted 28 lines · Adrian Coman

Hi,

I'm a newbie with qemu and I know there have been a lot of topics on the qemu networking topic, but none of them solved my problem ... I hope I'll get an answer from you.

So, I have a CentOS 4.2 as host with qemu-0.8.0 installed from sources. As guest I have a win98se. In w98 I configured the network to get the IP through dhcp. I start qemu with:

qemu -localtime -hda win98.img

From what I read, when there is no -net option, the default network mode is usermode.

The problem is that when I ping yahoo.com for example I get the IP of yahoo but no response from ping ..., something like:

ping yahoo.com
Pinging yahoo.com [216.109.112.135] with 32 bytes of data:
request time out

I attached a screenshot with the output of ipconfig /all from w98.

Where did I do wrong?

Thanks,
Adrian

#4 lore raw
In reply to Adrian Coman
Quoted 6 lines · Adrian Coman

The problem is that when I ping yahoo.com for example I get the IP of yahoo but no response from ping ..., something like:

ping yahoo.com
Pinging yahoo.com [216.109.112.135] with 32 bytes of data:
request time out

IIrc ping (as icmp message) does not work with user-net. Try to telnet the webserver at port 80 to check for connectivity. DNS is working as the adress got resolved into its IP. Apart from the issue with ping all tcp/ip-based services (like browsing the net) should work from the guest like being behind a NAT-firewall, which allows outbound connections.