Can't disable multicast on ath0/wlan0

According to ifconfig man page, I can just do
Code:
ifconfig wlan0 -allmulti
and
Code:
ifconfig wlan0 -promisc
and turn off multicast on my wlan0 interface (on top of ath0 card). But when I try that it tells me
Code:
bad value
.

My pf blocks all the multicast (I think...because I didn't open it up for multicast). But why not have it off on the hardware side?
 
Hello,

i think it's better to set those in /etc/rc.conf and then restart netif with service netif restart.

Especially when you want those settings permanent.

Example with re0 in my case: ifconfig_re0=-allmulti -promisc DHCP"
 
Actually, sorry, ath0 does not exist is what it tells me. (I guess because I have virtual wlanN interfaces created on top of it, ath0 does not show up in output of ifconfig).
I think you should use wlan0 instead of ath0 because usually we define it as wlan0 from /etc/rc.conf. Maybe yours is not called wlan0 but wlanX instead? Can you post your ifconfig(8) output?

Code:
% grep wlans /etc/defaults/rc.conf
#wlans_ath0="wlan0"             # wlan(4) interfaces for ath0 device
 
Back
Top