disabling inet6 on interface wlan0

Matthias Apitz <[email protected]>
Newsgroups gmane.os.freebsd.questions
Message-ID <aZbOLtMDwmCVfeQw@c720-1400094>
Hello,

I want to have only inet4 on my WLAN interface and have in
/etc/rc.conf concerning the interface:

wlans_ath0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
ip6addrctl_enable="NO"
ipv6_network_interfaces="none"
ipv6_activate_all_interfaces="NO"
ifconfig_wlan0_ipv6="NO"

but the interface comes up as:

# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=0
	ether 9c:d2:1e:85:72:79
	inet 192.168.178.22 netmask 0xffffff00 broadcast 192.168.178.255
	inet6 fe80::9ed2:1eff:fe85:7279%wlan0 prefixlen 64 scopeid 0x2
	inet6 2001:a61:341e:eb01:9ed2:1eff:fe85:7279 prefixlen 64 autoconf pltime 3099 vltime 6699
	inet6 fd6e:81fe:73cc:0:9ed2:1eff:fe85:7279 prefixlen 64 autoconf pltime 3600 vltime 7200
	groups: wlan
	ssid tarara channel 36 (5180 MHz 11a ht/40+) bssid 3c:a6:2f:02:c2:d5
	regdomain 108 indoor ecm authmode WPA2/802.11i privacy ON
	deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 30 bmiss 7
	mcastrate 6 mgmtrate 6 scanvalid 60 ampdulimit 64k shortgi -uapsd wme
	burst roaming MANUAL
	parent interface: ath0
	media: IEEE 802.11 Wireless Ethernet MCS mode 11na
	status: associated
	nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>

How can I disable inet6 completely or at least temporary?

Thanks

	matthias

-- 
Matthias Apitz, ✉ [email protected], http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.