Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jan 2012 16:27:07 +0100
From:      Freek Dijkstra <public@macfreek.nl>
To:        freebsd-questions@freebsd.org
Subject:   Disable auto_linklocal
Message-ID:  <4F12F04B.2080504@macfreek.nl>

next in thread | raw e-mail | index | archive | help
Hello,

I like to disable linklocal IPv6 addresses on my host, running FreeBSD
9.0-RC3.

I already set net.inet6.ip6.auto_linklocal in /etc/sysctl.conf.

# sysctl net.inet6.ip6.auto_linklocal
net.inet6.ip6.auto_linklocal: 0

Even after a reboot, this does not seem to have any effect. Here is the
config on one interface:

% ifconfig em3
em3: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,
           TSO4,WOL_MAGIC>
        ether 00:00:24:ce:69:ef
        inet 172.25.129.1 netmask 0xffffff00 broadcast 172.25.129.255
        inet6 fe80::200:24ff:fece:69ef%em3 prefixlen 64 scopeid 0xc
        inet6 2001:610:xxxx:xxxx::1 prefixlen 64
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active

Did I overlook something? Is there perhaps a per-interface option I need
to configure in /etc/rc.conf?


The link-local addresses don't really harm, but I found them confusing,
as the host is running as a router, and rtadv announces the link-local
address by default.

Thanks for any help,
Freek



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F12F04B.2080504>