[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: dhcpcd for IPv6 + old static IPv4 setup not working well together
On Sun, Feb 02, 2020 at 06:15:39AM -0700, Andy Ruhl wrote:
> Sorry if I'm missing something obvious. Searching on this stuff isn't so easy.
> I have a long running NetBSD/i386 machine that was set with a static
> IPv4 address and ip6mode=host in /etc/rc.conf. I upgraded it to the
> most recent release-8 from nyftp.netbsd.org a few days ago.
> Recently I decided to allow it to be autoconfigured for IPv6 via
> router advertisement. So I set ip6mode=autohost, dhcpcd=YES. This
> configures IPv6 but it also adds an APIPA IPv4 address and broke the
> default gateway (none defined in netstat -r even though /etc/mygate
> exists). So I added dhcpcd_flags="-6" to /etc/rc.conf. This removed
> the APIPA address and the default route exists again. By the way, I'm
> rebooting each time I make a change to /etc/rc.conf.
You can use dhcpcd.conf to explicitly specify a static v4 address and
corresponding router. Check the man page, should be easy to get working
based on the example under static.
Main Index |
Thread Index |