Skip to content

Commit

Permalink
qemu-doc.texi: rewrite the documentation for the -net option
Browse files Browse the repository at this point in the history
Addresses comments from Jamie Lokier.

Signed-off-by: Aurelien Jarno <[email protected]>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5807 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
aurel32 committed Nov 28, 2008
1 parent f5fc997 commit 030370a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions qemu-doc.texi
Original file line number Diff line number Diff line change
Expand Up @@ -617,14 +617,14 @@ privilege to run. @option{hostname=name} can be used to specify the client
hostname reported by the builtin DHCP server.

@item -net tap[,vlan=@var{n}][,fd=@var{h}][,ifname=@var{name}][,script=@var{file}][,downscript=@var{dfile}]
Connect the host TAP network interface @var{name} to VLAN @var{n} and
use the network script @var{file} to configure it. The default
network script is @file{/etc/qemu-ifup}. Use @option{script=no} to
disable script execution. If @var{name} is not provided, the OS automatically
provides one. Use network script @var{dfile} to deconfigure the interface. Use
@option{downscript=no} to disable script execution. @option{fd}=@var{h} can be
used to specify the handle of an already opened host TAP interface.
Example:
Connect the host TAP network interface @var{name} to VLAN @var{n}, use
the network script @var{file} to configure it and the network script
@var{dfile} to deconfigure it. If @var{name} is not provided, the OS
automatically provides one. @option{fd}=@var{h} can be used to specify
the handle of an already opened host TAP interface. The default network
configure script is @file{/etc/qemu-ifup} and the default network
deconfigure script is @file{/etc/qemu-ifdown}. Use @option{script=no}
or @option{downscript=no} to disable script execution. Example:

@example
qemu linux.img -net nic -net tap
Expand Down

0 comments on commit 030370a

Please sign in to comment.