qemu-doc.texi: rewrite the documentation for the -net option
Addresses comments from Jamie Lokier. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5807 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
f5fc997546
commit
030370a210
@ -617,14 +617,14 @@ privilege to run. @option{hostname=name} can be used to specify the client
|
|||||||
hostname reported by the builtin DHCP server.
|
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}]
|
@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
|
Connect the host TAP network interface @var{name} to VLAN @var{n}, use
|
||||||
use the network script @var{file} to configure it. The default
|
the network script @var{file} to configure it and the network script
|
||||||
network script is @file{/etc/qemu-ifup}. Use @option{script=no} to
|
@var{dfile} to deconfigure it. If @var{name} is not provided, the OS
|
||||||
disable script execution. If @var{name} is not provided, the OS automatically
|
automatically provides one. @option{fd}=@var{h} can be used to specify
|
||||||
provides one. Use network script @var{dfile} to deconfigure the interface. Use
|
the handle of an already opened host TAP interface. The default network
|
||||||
@option{downscript=no} to disable script execution. @option{fd}=@var{h} can be
|
configure script is @file{/etc/qemu-ifup} and the default network
|
||||||
used to specify the handle of an already opened host TAP interface.
|
deconfigure script is @file{/etc/qemu-ifdown}. Use @option{script=no}
|
||||||
Example:
|
or @option{downscript=no} to disable script execution. Example:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
qemu linux.img -net nic -net tap
|
qemu linux.img -net nic -net tap
|
||||||
|
Loading…
Reference in New Issue
Block a user