-net user -net nic,model=rtl8139 -redir tcp:9555:10.10.10.33:80The first
-net option indicates that we are using user-level
networking (proxying). The second -net option indicates that
this user-level network will appear in the QEMU machine as an RTL8139
network card. The -redir option indicates that connections on
localhost:9555 will be translated into equivalent packet exchanges on
the RTL8139 card in the QEMU machine. However, we have to tell QEMU
which IP address and port to use on the QEMU machine's side. This is
what the 10.10.10.33 address, and port 80 are. In the example, if you
access port 9555 on localhost, say with:
telnet localhost 9555The packets that appear in the QEMU machine will be bound for 10.10.10.33, port 80. Within the QEMU machine, your RTL8139 interface had better then be up on that address.
QEMU has many options to build up virtual or real networking. See
http://www.h7.dion.ne.jp/
qemu-win/HowToNetwork-en.html for more
information.
For more questions, talk to Jack, Lei, or Peter.
Jack Lange 2010-04-13