For critical infrastructure like hypervisor servers, you should configure both the IPv6 default gateway and DNS statically. Relying on Router Advertisements (RA) for these elements introduces unnecessary risks and complexity that are inappropriate for high-availability systems.
Here's why, broken down by component:
1. Default Gateway (Router) - Use STATIC
- Why NOT RA?
- Single Point of Failure: If the RA-sending router fails or misconfigures RAs, the server immediately loses its default route, causing complete network outage. Hypervisors cannot afford this.
- Security Risk: RA messages are unauthenticated (unless using SEND, which is rarely deployed). Malicious RAs can hijack traffic (MITM attacks).
- Predictability Loss: RA timers (e.g.,
MaxRtrAdvInterval) mean gateways might disappear before the server notices, causing transient outages during failover.
- No Control: You can't enforce specific gateway selection (e.g., preferring a dedicated management interface).
- Why STATIC?
- Guaranteed Stability: The gateway remains active regardless of router state changes.
- Faster Failover: If using multiple gateways (e.g., VRRP/HSRP), static config + routing protocols (BGP/OSPF) enable sub-second failover. RAs alone cannot provide this.
- Auditability: Explicit configuration is easier to verify and document.
- Best Practice: Critical network devices (routers, firewalls, hypervisors) always use static gateways.
2. DNS Servers - Use STATIC
- Why NOT RA (RDNSS)?
- Broken Implementation: RDNSS (RFC 8106) is not reliably supported across OSes:
- Linux: Requires
dnsmasq/systemd-resolved with specific config (often disabled by default).
- Windows: Ignores RDNSS unless
Registry: EnableRDNSS=1 (not default).
- Many hypervisors (ESXi, XenServer) have no RDNSS support.
- No Fallback: If RAs stop, DNS breaks silently. Static configs degrade gracefully (e.g., using secondary DNS).
- Security: Like RAs, RDNSS is unauthenticated → DNS spoofing risk.
- Limited Flexibility: RDNSS only provides DNS servers – no domain search lists, DNSSEC, or custom timeouts.
- Why STATIC?
- Universal Reliability: Works identically across all OSes and hypervisors.
- Control: Specify multiple DNS servers, timeouts, and search domains.
- Security: Avoids exposure to poisoned DNS server lists.
- Operational Clarity: Troubleshooting is straightforward (no hidden RA dependencies).
Critical Server-Specific Considerations
- Hypervisor Sensitivity: A hypervisor outage affects all VMs. Unplanned network flapping from dynamic configs is unacceptable.
- Change Control: Static configs align with change management processes. Network changes (e.g., new gateway) are deliberate, not triggered by external RA floods.
- Reduced Attack Surface: Disabling RA processing (via
sysctl net.ipv6.conf.all.accept_ra=0) closes a potential attack vector.
- Consistency: Matches how you configure IPv4 (static gateway/DNS) – no need for divergent IPv6 practices.
Recommended Configuration
# Example: Linux (netplan)
network:
version: 2
ethernets:
ens192:
addresses:
- 2001:db8:1::10/64
gateway6: 2001:db8:1::1 # STATIC GATEWAY
nameservers:
addresses:
- 2001:db8:1::53 # STATIC DNS 1
- 2001:db8:2::53 # STATIC DNS 2
search: [example.com]
dhcp6: no
# Example: Windows PowerShell
New-NetIPAddress -InterfaceAlias "Management" -IPAddress "2001:db8:1::10" -PrefixLength 64 -AddressFamily IPv6
Set-NetRoute -InterfaceAlias "Management" -NextHop "2001:db8:1::1" -AddressFamily IPv6 -RouteMetric 1
Set-DnsClientServerAddress -InterfaceAlias "Management" -ServerAddresses ("2001:db8:1::53","2001:db8:2::53")
When Might RA Be Acceptable? (Not for Hypervisors!)
- End-user devices (laptops, phones) where mobility matters.
- Non-critical IoT devices with no security requirements.
- Networks with fully automated RA management (e.g., SDN controllers), but still not for hypervisors.
Key Takeaway
For hypervisors and other critical infrastructure:
✅ Always use STATIC IPv6 default gateway.
✅ Always use STATIC DNS servers.
❌ Disable RA processing (accept_ra=0) to prevent accidental overrides.
This approach ensures maximum stability, security, and predictability – non-negotiable for systems where uptime is paramount. The minor maintenance overhead of static configs is trivial compared to the risk of an avoidable outage. If your network topology changes, update configs during planned maintenance – don't rely on dynamic mechanisms that can fail at the worst moment.