Department of Defense
High Performance Computing Modernization Program

Enabling IPv6 in NetBSD UNIX

IPv6 has been enabled by default in NetBSD for so long (since at least 1.5) that there is little point in describing how to enable it.

IPv6 temporary addresses are not currently supported in NetBSD releases, but can be added in versions beginning with 7.0. For more details, see this NetBSD Problem Report #47100 and PR/47100 CVS commit. If they were added, the command to enable them would be

sysctrl –w net.inet6.ip6.use_tempaddr=1

and the command to disable them would be

sysctrl –w net.inet6.ip6.use_tempaddr=0

IPv6 temporary addresses are supported in dhcpcd. See the man page for configuration details.

The NetBSD Project maintains an IPv6 Frequently Asked Questions (IPv6 FAQ) about configuring IPv6 in NetBSD.

Disabling IPv6 in NetBSD UNIX

The recommended practice is to block all IPv6 inbound and outbound traffic in the npf packet filter, rather than attempting to disable it in the kernel.

1. Edit the file /etc/npf.conf

2. Add the following lines to the (default) group

block in inet6

block out inet6

3. Then, reload and start npf.

For more details, please look at the NetBSD npf.conf manual page.

 

 


Top