net rc.conf bug?

Jason Hellenthal jhellenthal at dataix.net
Fri May 8 14:15:41 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Could also do …

ifconfig_wlan0_ether=“XX:XX:XX:XX:XX:XX”

Just for reference.

On May 8, 2015, at 09:07, David Wolfskill <david at catwhisker.org> wrote:

On Fri, May 08, 2015 at 03:41:20PM +0200, rank1seeker at gmail.com wrote:
And now watch this when it comes down to WiFi NICs!
If during cloning of device, you set non-default ether (MAC) adress,
i.e;
- ----
ifconfig wlan0 create wlandev ath0 ether $ether_here
- ----
BOOM! You'we just rendered WiFi NIC unusable, that is, it will never be
able to associate. Tried station and AP modes, with urtw and ath
drivers.

Why would you try to set the MAC address of a cloned interface, rather
than that of the real interface (before cloning)?

I believe it affects ALL WiFi NICs.

Ref.:

g1-254(10.1-S)[7] egrep 'ifconfig|wlan|lagg' /etc/rc.conf | grep -v '^#'
ifconfig_em0="up"
ifconfig_iwn0="ether 34:e6:d7:3c:4a:93"
wlans_iwn0=wlan0
ifconfig_wlan0="WPA"
cloned_interfaces="lagg0"
ifconfig_lagg0="laggproto failover laggport em0 laggport wlan0 DHCP"
g1-254(10.1-S)[8] ifconfig iwn0
iwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
       ether 34:e6:d7:3c:4a:93
       nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
       media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng
       status: associated
g1-254(10.1-S)[9] 

Peace,
david
- -- 
David H. Wolfskill				david at catwhisker.org
Those who murder in the name of God or prophet are blasphemous cowards.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


- -- 
 Jason Hellenthal
 JJH48-ARIN




-----BEGIN PGP SIGNATURE-----

iQEcBAEBCAAGBQJVTMUJAAoJEDLu+wRc4KcIHgQIAI1zIglOWFspyqYkQWkc0ngm
ksDCh/HavvngRbh3PB+otttoCugwsHTr5Oe2nsmiOFyTWMk32hkkZFeMOv7OuIVf
2MV3/r1+aXN82O0QX9tdyPhM3KZBt1I8Hu9Qk/z9x22hFG5IKYDOULvWBhHpZPP3
mNVxdx9n66oI7GC5gz551MfgSpg1ZFDkEQNAp3FiNklFMPgDePfgbp2cdCHUTLKv
PmiYXIHVRRi/G42KaiFtx5lkhDvoU77fS+3foLcWop0NbKIHVQUaxLVXqiZPqiZ6
s6gvsO4Vq4tUnWenfJVRoxCpDkiWizP0WE1Y81/v23syHmqt6pbQ7AFz6+XZzsk=
=zvrk
-----END PGP SIGNATURE-----


More information about the freebsd-hackers mailing list