From owner-freebsd-net@freebsd.org Wed Jul 20 10:04:42 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CEE74B9C7B0 for ; Wed, 20 Jul 2016 10:04:42 +0000 (UTC) (envelope-from bra@fsn.hu) Received: from dg.fsn.hu (dg.fsn.hu [84.2.225.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dg.fsn.hu", Issuer "dg.fsn.hu" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8D3E01992 for ; Wed, 20 Jul 2016 10:04:41 +0000 (UTC) (envelope-from bra@fsn.hu) Received: by dg.fsn.hu (Postfix, from userid 1003) id 5C9D22A3A; Wed, 20 Jul 2016 11:56:07 +0200 (CEST) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MF-ACE0E1EA [pR: 8.0843] X-CRM114-CacheID: sfid-20160720_11560_D0C39C43 X-CRM114-Status: Good ( pR: 8.0843 ) X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Wed Jul 20 11:56:07 2016 X-DSPAM-Confidence: 0.9899 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 578f4ab7864118492410646 X-DSPAM-Factors: 27, User-Agent*Thunderbird/38.8.0, 0.01000, could, 0.01000, the+IP, 0.01000, the+IP, 0.01000, netbooted, 0.01000, Subject*IP+from, 0.01000, ideas+about, 0.01000, Received*online.co.hu+[195.228.243.99]), 0.01000, an, 0.01000, an, 0.01000, change+link, 0.01000, 10, 0.01000, statically, 0.01000, machine+boots, 0.01000, interface, 0.01000, interface, 0.01000, from, 0.01000, from, 0.01000, of, 0.01000, From*"Nagy, Attila" , 0.01000, User-Agent*Mozilla/5.0, 0.01000, Subject*IP, 0.01000, running+from, 0.01000, which+deletes, 0.01000, DHCP), 0.01000, NFS+root, 0.01000, X-Spambayes-Classification: ham; 0.00 Received: from [IPv6:::1] (japan.t-online.co.hu [195.228.243.99]) by dg.fsn.hu (Postfix) with ESMTPSA id 00BC22A38 for ; Wed, 20 Jul 2016 11:56:06 +0200 (CEST) To: freebsd-net@freebsd.org From: "Nagy, Attila" Subject: Interface cannot change link addresses - switching IP from one IF to another on a netbooted machine Message-ID: <578F4AB6.2090200@fsn.hu> Date: Wed, 20 Jul 2016 11:56:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2016 10:04:42 -0000 Hi, I have several netbooted machines, which operate in this way: - the machine boots up from one interface (PXE, DHCP), for example igb0 - during the boot, an rc script runs* which deletes the IP from igb0 and creates the lagg interface with igb0, igb1 etc and sets the original IP on that interface (with a statically linked ifconfig) - normal booting continues from the lagg interface This has worked for years and broke somewhere in the lifecycle of 10-STABLE. Now I can't remove the IP address from the interface, ifconfig igb0 delete gives: interface igb0 cannot change link addresses! Any ideas about how could I work around this? Basically I would like to switch the IP from one interface to another while running from an NFS root. (and this has worked before svn rev xxx) Thanks,