Skip to content

Commit f7b176a

Browse files
authored
Merge pull request #1886 from balajiv113/user-v2-network
Update user-v2 network document with configurable gateway
2 parents 23850b4 + d31c268 commit f7b176a

File tree

1 file changed

+8
-6
lines changed
  • website/content/en/docs/Config/Network

1 file changed

+8
-6
lines changed

website/content/en/docs/Config/Network/_index.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,17 @@ user-v2 network provides a user-mode networking similar to the [default user-mod
219219
> **Warning**
220220
> This network mode is experimental
221221

222-
To enable this network mode, define a network with `mode: user-v2` in networks.yaml
222+
To enable this network mode, define a network with `mode: user-v2` in networks.yaml
223+
224+
By default, the below network configuration is already applied (Since v0.18).
223225

224226
```yaml
225227
...
226228
networks:
227-
example-user-v2:
229+
user-v2:
228230
mode: user-v2
231+
gateway: 192.168.104.1
232+
netmask: 255.255.255.0
229233
...
230234
```
231235

@@ -234,19 +238,17 @@ Instances can then reference these networks from their `lima.yaml` file:
234238
{{< tabpane text=true >}}
235239
{{% tab header="CLI" %}}
236240
```bash
237-
limactl start --network=lima:example-user-v2
241+
limactl start --network=lima:user-v2
238242
```
239243
{{% /tab %}}
240244
{{% tab header="YAML" %}}
241245
```yaml
242246
networks:
243-
- lima: example-user-v2
247+
- lima: user-v2
244248
```
245249
{{% /tab %}}
246250
{{< /tabpane >}}
247251

248252
_Note_
249253

250254
- Enabling this network will disable the [default user-mode network](#user-mode-network--1921685024-)
251-
- Subnet used for this network is 192.168.5.0/24 with 192.168.5.2 used for host connection and 192.168.5.3 used for DNS resolution
252-

0 commit comments

Comments
 (0)