NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: need to disable IPv6

I don't understand why your problem is happening.  The important
variable is ip6mode= in rc.conf.  The default value is 'host', which
means that only v6 addresses specified in /etc/ifconfig.fooN are set.
Setting to autohost causes the machine to process received v6 Router
Advertisements by setting "sysctl -w net.inet6.ip6.accept_rtadv=1".

While a machine in 'host' mode gets link-local addresses, I don't know
of anything that would cause problems with v4 interoperability from

   fwip0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
           address: 00:11:d8:00:00:f3:a9:66
   fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
           address: 00:18:f3:ad:85:bd
           media: Ethernet autoselect (10baseT)
           status: active
           inet netmask 0xffffff00 broadcast
           inet6 fe80::218:f3ff:fead:85bd%fxp0 prefixlen 64 scopeid 0x2
   lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
           inet netmask 0xff000000
           inet6 ::1 prefixlen 128
           inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3

There's no global address, so there should be no issue.
Do 'netstat -nr -f inet6' to see what's in your routing table.  All the
normal programs should do dns lookups for AAAA and A, and try the AAAA
values first, but on a machine with no configured addresses and in
ip6mode=host, there should be no default route and use of those
addresses should fail immediately with ~"No route to host".

Also check the accept_rtadv sysctl, and verify that the contents of
/etc/defaults and /etc/rc.d match the release.

As far as I know the only way to take out v6 completely is to remove
INET6 from the kernel config.

Attachment: pgp58VP1cDTky.pgp
Description: PGP signature

Home | Main Index | Thread Index | Old Index