Verified Commit cefe0c9a authored by Elias Ojala's avatar Elias Ojala
Browse files

Netplan - Static IPv6

parent 767de506
......@@ -16,7 +16,7 @@ permalink: /
* [DNS-over-TLS](dns/dot/index.md)
* [Unbound](dns/dot/unbound-linux.md) (Linux)
* [Knot Resolver](dns/dot/knot-linux.md) (Linux)
* [XMPP](xmpp/index.md)
* [Netplan](netplan.md)
### Tips
......@@ -28,6 +28,7 @@ permalink: /
* [MySQL](mysql.md)
* [Phusion Passenger](phusion-passenger.md)
* [Useful tools](useful-tools.md)
* [XMPP](xmpp/index.md)
## Desktop Linux
......
---
title: Netplan
permalink: /netplan/
---
Netplan is `ifupdown` replacement for Ubuntu. It's used by default in Ubuntu Server.
## Static IPv6
`/etc/netplan/01-netcfg.yaml`:
```yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
ens18:
addresses:
- 192.0.2.10/24
- 2001:db8:cafe::1337:1/64
gateway4: 192.0.2.1
gateway6: 2001:470:cafe::1
nameservers:
search: [ example.com ]
addresses:
- "192.0.2.1"
- "2001:db8:cafe::1"
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment