[Ilugc] Strangeness in qemu routing table

  • From: vijaykumar@xxxxxxxxxxxx (Vijay Kumar)
  • Date: Sat Nov 24 17:58:28 2007

Girish Venkatachalam wrote:

Hello friends,

Can someone please educate me on how qemu networking works?

I believe it is some kind of special bridging but I am really confused
how packets travel back and forth with the 'weird' routing table I see.

Are you using usermode networking? (Qemu has two networking modes tap 
and usermode)

In usermode networking, for every TCP/UDP socket opened within the 
guest, qemu opens a corresponding TCP/UDP socket in the host. Qemu does 
this by snooping the ethernet frames that it receives from the network 
cards emulated by qemu. This block diagram shows the various stacks 
involved and their role in user mode networking -- 
http://www.bravegnu.org/qemu/qemu-usernet.png

Regards,
Vijay

Other related posts: