From 78602ea577bbf3a8fe7b4efa5b5dcb35b7d87d7f Mon Sep 17 00:00:00 2001 From: Mike Swanson Date: Fri, 6 Feb 2026 21:33:19 -0800 Subject: [PATCH] Document custom SLiRP addresses This works with [86Box commit 7ec2e3f6a64](https://github.com/86Box/86Box/commit/7ec2e3f6a64fbaa9c0dadbb983db5564cdc3ed30) forward. --- hardware/network.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/hardware/network.rst b/hardware/network.rst index e44671f..b07ddbe 100644 --- a/hardware/network.rst +++ b/hardware/network.rst @@ -252,3 +252,26 @@ The host system can access forwarded ports through 127.0.0.1 or its own IP addre 0_internal = 80 1_protocol = udp 1_external = 5555 + +Custom SLiRP addresses +^^^^^^^^^^^^^^^^^^^^^^ + +If the default 10.0.x.0 addresses are unsuitable or undesired, they can be changed through the configuration file in the ``[Network]`` section, by defining ``net_0x_addr`` with the desired network (where x is the emulated network card). All networks are created with a network mask 255.255.255.0 (CIDR /24). It is strongly recommended to keep to the `Private-Use `_ regions of IPv4; that is, stay within 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16. + +.. container:: toggle-always-show + + .. container:: toggle-header + + Example: Set the first emulated network card's SLiRP network to 172.31.255.0/24 + + .. code-block:: none + + [Network] + net_01_addr = 172.31.255.0 + +For whatever network address you choose, the same fixed addresses demonstrated in the :ref:`SLiRP ` section apply. Using the 172.31.255.0 example, the following addresses are used: + +* **IP address:** 172.31.255.15 +* **Subnet mask:** 255.255.255.0 +* **Default gateway:** 172.31.255.2 +* **DNS server:** 172.31.255.3