NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/55091: IPv6 default route selection fails to harmonize automatically
The following reply was made to PR kern/55091; it has been noted by GNATS.
From: Kimmo Suominen <kim%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/55091: IPv6 default route selection fails to harmonize automatically
Date: Fri, 10 Apr 2020 13:25:19 +0300
As a workaround, one can run dhcpcd 8.1.7 or later (from pkgsrc)
instead of having the kernel process RAs.
First, remove IP address configuration from rc.conf (ifconfig_vioif0,
defaultroute, defaultroute6) or remove the /etc/ifconfig.vioif0 file,
depending which approach is used (using "vioif0" as the interface
name). IP addresses and the IPv4 default gateway will be configured in
/etc/dhcpcd.conf instead. A minimal dhcpcd.conf looks like this:
interface vioif0
persistent
static ip_address=203.0.113.48/26
static ip6_address=2001:db8::48/64
static routers=203.0.113.1
While DNS name servers could be configured in /etc/dhcpcd.conf there
is no way to configure an "options" statement for /etc/resolv.conf in
dhcpcd.conf. It might still be preferential to have all IP address
configuration in dhcpcd.conf and the rest in rc.conf.
To configure name servers and the search list in dhcpcd.conf, add these lines:
static domain_name_servers=203.0.113.10 192.0.2.10
static domain_search=example.com example.net
To configure name servers, the search list, and options (e.g. to
enable EDNS) in rc.conf, add these lines:
dns_search='example.com example.net'
dns_nameservers='203.0.113.10 192.0.2.10'
dns_options='timeout:1 attempts:5 edns0'
Both rc.conf and dhcpcd.conf are sources for resolvconf to build the
actual /etc/resolv.conf file, so information can be divided between
them.
Enable the dhcpcd service in rc.conf:
dhcpcd=YES
Finally, if net.inet6.ip6.accept_rtadv=1 is set in /etc/sysctl.conf,
remove it (the default is 0) to instruct the kernel not to process RA
messages.
Rebooting the system is probably easiest for applying all the changes.
Home |
Main Index |
Thread Index |
Old Index