56 | | See source:mainline/contrib/conf/net-qe.sh |
| 56 | For general information about networking in HelenOS, please see UsersGuide/Networking |
| 57 | |
| 58 | To use networking, a network interface card must be presented to the guest system. |
| 59 | |
| 60 | To add a virtual network card, add one of the following command-line options: |
| 61 | ||= Device =||= Option =|| |
| 62 | || Intel PRO/1000 || `-device e1000,vlan=0` || |
| 63 | || Realtek RTL8139 || `-device rtl8139,vlan=0` || |
| 64 | || NE 2000 || `-device ne2k_isa,irq=5,vlan=0` || |
| 65 | |
| 66 | QEMU guest may be presented with QEMU's user mode network stack (SLIRP) or directly bridged host's network interface. |
| 67 | For more information about QEMU networking options, see [http://wiki.qemu.org/Documentation/Networking QEMU Networking Documentation] |
| 68 | |
| 69 | === Using user mode network stack === |
| 70 | |
| 71 | To activate user mode network stack, add `-net user` option to qemu command line. QEMU will then create a virtual network `10.0.2.0/24`. You may use `10.0.2.15` as the IP for the guest computer. To redirect traffic to guest network use `-redir` option: |
| 72 | |
| 73 | {{{ |
| 74 | -redir udp:8080::8080 -redir tcp:8181::8181 |
| 75 | }}} |
| 76 | |
| 77 | A script to run QEMU this way is present in source:mainline/contrib/conf/net-qe.sh |
| 78 | |
| 79 | === Bridging virtual network device with host's network interface === |
| 80 | |
| 81 | TODO write this section |