Disable auto_linklocal

Freek Dijkstra public at macfreek.nl
Sun Jan 15 15:27:12 UTC 2012


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


More information about the freebsd-questions mailing list