From a502e7d2f515afd3449b12311968414bcc2a2ccd Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Thu, 30 Jul 2020 22:07:20 -0300 Subject: [PATCH] Changes to network page --- usage/network.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usage/network.rst b/usage/network.rst index 21ec652..9d62662 100644 --- a/usage/network.rst +++ b/usage/network.rst @@ -50,7 +50,7 @@ The following advanced features can be accessed by directly editing the virtual MAC address ^^^^^^^^^^^ -The MAC address used by each emulated network card is stored in its respective configuration file section. Only the suffix (last three octets) of the MAC address is stored; the prefix (first three octets) will always be the card manufacturer's `OUI `_, such as 00:E0:4C for Realtek. +All emulated network cards store their MAC address in the ``mac`` directive of the card's configuration file section. Only the suffix (last three octets) of the MAC address is stored; the prefix (first three octets) will always be the card manufacturer's `OUI `_, such as 00:E0:4C for Realtek. .. rubric:: Example: MAC address 00:E0:4C:35:F4:C2 for the Realtek RTL8029AS @@ -64,11 +64,11 @@ SLiRP port forwarding Port forwarding allows the host and other devices on its network to access TCP and UDP servers running on the emulated machine. This feature is configured through the ``[SLiRP Port Forwarding]`` section of the configuration file. -Port forwards are numbered starting from zero. The following configuration directives are available under the ``[SLiRP Port Forwarding]`` section (assuming port forward number 0): +Each port forward must be assigned a number, starting at 0 and counting up (skipping a number will result in all subsequent port forwards being ignored), which replaces ``X`` on the following directives: -* ``0_udp``: If this directive is missing or set to 0, forward a TCP port. If set to 1, forward an UDP port. -* ``0_from``: Port number on the host. -* ``0_to``: Port number on the emulated machine. If this directive is missing, use the same port number as the host. +* ``X_udp``: If this directive is missing or set to 0, forward a TCP port. If set to 1, forward an UDP port. +* ``X_from``: Port number on the host. +* ``X_to``: Port number on the emulated machine. If this directive is missing, use the same port number as the host. The host can access forwarded ports through 127.0.0.1 or its own IP address, while other devices on the network can access them through the host's IP address.