From owner-freebsd-hackers@FreeBSD.ORG Fri May 8 14:15:41 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 75099E9E for ; Fri, 8 May 2015 14:15:41 +0000 (UTC) Received: from mail-yh0-x234.google.com (mail-yh0-x234.google.com [IPv6:2607:f8b0:4002:c01::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 33F5A1EB1 for ; Fri, 8 May 2015 14:15:41 +0000 (UTC) Received: by yhcb70 with SMTP id b70so19782418yhc.0 for ; Fri, 08 May 2015 07:15:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=dFRrSyjmGSqWJO+4ncZCp2fc23CZCGL4/Jkdz9B1VZI=; b=WJqJiRn9ZVrH3qMM3REZkH58ZmrnomjJKfpTKUpCP+5LwtMRKAw/1h4QjcOMtEI3qd nfiA9tOjh6MrEXATKYa9888IY1+pSJ87Hgulyb1YLkhYtynPisPCA35b0apXhcdR3Ppf vXOmswoF0j8FXD4idxiwwq6I7uD9r80/kUn8o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=dFRrSyjmGSqWJO+4ncZCp2fc23CZCGL4/Jkdz9B1VZI=; b=gLw6rbW0GcGfoyNGUi5wI+JLMCFGicjU8YPWCkZXP9DXlmDlr5VL21wMoZLsBv+1Uw rzSjjJbgawp+g0WDI7odzV25VqjWEpUP+Y3Son6rJRcLqSUdsfsJDwkuoBycR880jdYM PGEGH05usVD0NOx5CTWTLEQTNkLreaJd7Qa9iK+h0HPWax6JqBv92hQUCXGf2busUFSL w0UEAgvo6R7z6C3H6knU0goDEAKaXhhsAXM6PVoerIuqLE8gwJivXc1Gxdv1rCGF6nof OjDYssKQM7A3dX8MqrgZbwaxj/E2vBGlFS3mrbZwfOg/3L+AMFxLx+Avxl4Puy3G3y3z GS7Q== X-Gm-Message-State: ALoCoQlRz297s/3TSOJnxWTxsAvcgvhKKQU6VnpEug/a5yCzsr4BRGSxDjdimJ4xIcY49aOBIxTX X-Received: by 10.170.81.87 with SMTP id x84mr3773192ykx.113.1431094540365; Fri, 08 May 2015 07:15:40 -0700 (PDT) Received: from ?IPv6:2600:1008:b101:c1a4:7c10:ae97:bc61:762? ([2600:1008:b101:c1a4:7c10:ae97:bc61:762]) by mx.google.com with ESMTPSA id j67sm4561592yhj.30.2015.05.08.07.15.39 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 May 2015 07:15:39 -0700 (PDT) Subject: Re: net rc.conf bug? Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: text/plain; charset="utf8"; X-Pgp-Agent: GPGMail 2.5b6 From: Jason Hellenthal In-Reply-To: <20150508140721.GD1158@albert.catwhisker.org> Date: Fri, 8 May 2015 09:15:37 -0500 Cc: rank1seeker@gmail.com, FreeBSD Hackers Content-Transfer-Encoding: 8bit Message-Id: <5EDF6CA9-C44F-442E-8FA6-F76D08EF32C2@dataix.net> References: <20150319230613.000074b1@gmail.com> <550B4A9D.1080602@freebsd.org> <20150320012041.00006251@gmail.com> <20150508154120.0000327e@gmail.com> <20150508140721.GD1158@albert.catwhisker.org> To: David Wolfskill X-Mailer: Apple Mail (2.2098) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2015 14:15:41 -0000 -----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 wrote: On Fri, May 08, 2015 at 03:41:20PM +0200, rank1seeker@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 metric 0 mtu 2290 ether 34:e6:d7:3c:4a:93 nd6 options=21 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: associated g1-254(10.1-S)[9] Peace, david - -- David H. Wolfskill david@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-----