Quiz Entry - updated: 2026.07.14
What are the key nmcli options for configuring IPv6 settings?
The ipv6.* keys mirror the IPv4 ones, but ipv6.method has three modes: auto (SLAAC), dhcp (DHCPv6), and manual (static).
IPv6 has the same nmcli knobs as IPv4 (ipv6.addresses, ipv6.gateway, ipv6.dns), with one extra wrinkle in how addresses get assigned — there are two automatic methods, not one:
| Parameter | Effect |
|---|---|
ipv6.method auto |
SLAAC (the default) |
ipv6.method dhcp |
DHCPv6 instead of SLAAC |
ipv6.method manual |
Static |
ipv6.addresses 2001:db8::a/64 |
Static address + prefix |
ipv6.gateway 2001:db8::1 |
Gateway |
ipv6.dns fde2:6494:1e09:2::d |
DNS server |
ipv6.ignore-auto-dns true |
Ignore auto-supplied DNS |
The three assignment methods:
- SLAAC (StateLess Address AutoConfiguration): the host hears a router advertisement carrying the /64 prefix and builds its own address by appending an interface ID — no server tracks who has what.
- DHCPv6: a server hands out the full address, like IPv4 DHCP (stateful).
- Manual: you set it by hand.
Example:
nmcli con mod "eth0" ipv6.method manual
nmcli con mod "eth0" ipv6.addresses "2001:db8::10/64"
nmcli con mod "eth0" ipv6.gateway "2001:db8::1"