From owner-freebsd-stable@freebsd.org Sun Sep 4 05:00:40 2016 Return-Path: Delivered-To: freebsd-stable@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 A4E73BCC00D for ; Sun, 4 Sep 2016 05:00:40 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: from mail-it0-x236.google.com (mail-it0-x236.google.com [IPv6:2607:f8b0:4001:c0b::236]) (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 6DE1BC80 for ; Sun, 4 Sep 2016 05:00:40 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: by mail-it0-x236.google.com with SMTP id e124so101571259ith.0 for ; Sat, 03 Sep 2016 22:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Z6CldDsWVHU6W0IL5hGhxB1BU6aw3rJ7G1l/5uN6spA=; b=z+RtSQZewiYJuIBBt56pZq7EkVoTr7C74Vsfmv07ZOvWb+aNW4gw7SNAYkxjjoILtW GER9AciUswkHZX1mY+6EF0iL+iCqKE4eMzJZUPVnbiwNOI1/SujP0LiCmmcamxWeuOGV grOtOps2Y9sr5bw8KMH0DyDTDcicTUSm4Ha69cXYfKZ5QW6NblubwHiNJ6VjXdTDNdFy t3D2yDvts/7dqstZhTLCmlIbjnTjYtPKSgX/MLJW9R/A4n0w3TV57TD9sRGCDE/KJtxV 8KqYUjxehoTKcf2MHSPZR1VF7eLr5dVhYST00tNlvFNbF3V3KR2wGue1tdvK2dpEZOpj D79w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Z6CldDsWVHU6W0IL5hGhxB1BU6aw3rJ7G1l/5uN6spA=; b=XpkBeEWY/24UEkKVdSvqIn15OCqhXrPqMJxZXPvC3353SNYUniPJlISNvJArRyy6Xx IhcMd8u2KcqmvASPt9+m7h3d7GuCTnUJkSivXjvZGqGVCdrNH2Zhddb8pTO++oasDWEa 9srKGwvMWdOsmWRtQxNy763wia4L9E0j3oO/k3WMNozg3YVXIla+XcoIdi7fxzw+NabU IGmd+fwdA1DFyI7WRDjn1yfVav9Q5VLUvFnufMaIYFaErQZex6KzCCqk+co+TeYSD2pf jyJpG8s71ZwTbHt0ZmScZK9dyuqoYjULFCK1UyY7B2kPI4z82UzMIzVnbUZmUZqGRyTX pBqA== X-Gm-Message-State: AE9vXwOBifH3gdrOIfN0qKn/zSTh8+kcUzBni+qcEt9TzEqOvlOrE3FBzzjsNpLMRbKEfnKeR18toqMJY4jHBQ== X-Received: by 10.36.28.203 with SMTP id c194mr15006711itc.95.1472965239731; Sat, 03 Sep 2016 22:00:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.10.42 with HTTP; Sat, 3 Sep 2016 22:00:38 -0700 (PDT) In-Reply-To: References: <20160901222144.8b9271868373b86e04dbd1a2@eternamente.info> <9e77a50390471340a8f9e0afbfa3785a.squirrel@cabo.dyn.arroway.org> <20160904004912.fde07f06fae6198257138737@eternamente.info> From: "Eric A. Borisch" Date: Sun, 4 Sep 2016 00:00:38 -0500 Message-ID: Subject: Re: ue1 and ue2 swinging To: Nenhum_de_Nos Cc: "freebsd-stable@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2016 05:00:40 -0000 On Sat, Sep 3, 2016 at 11:28 PM, Eric A. Borisch wrote: > On Saturday, September 3, 2016, Nenhum_de_Nos > wrote: >> >> On Fri, 2 Sep 2016 13:05:45 -0300 >> "Nenhum_de_Nos" wrote: >> >> > >> > On Thu, September 1, 2016 23:34, Eric A. Borisch wrote: >> > > Matheus, >> > > >> > > I had a very similar problem, which led me to throw this together: >> > > >> > > https://github.com/eborisch/ethname >> > > >> > > I think the comments in it are fairly complete, let me know if >> > > anything >> > > doesn't make sense. >> > > >> > > Perhaps there is an easier way, but most discussions I found ended in >> > > "you >> > > could rename them on boot" - which is what this rc.d script does. I >> > > use it >> > > on my home router to great effect. (I rename the adapters to cable and >> > > priv >> > > just to make firewall rules etc. even clearer.) >> > > >> > > - Eric >> > >> > Eric, >> > >> > great hint there, I will try it later when I get home and report back >> > here. Thanks! >> > >> > matheus >> >> Hi Eric, >> >> I tried it and something is not working here, I suppose. I have the >> /usr/local/etc/ifmap, the ethname is on /usr/local/etc/rc.d, and if I run it >> past boot it works fine. But on reboot it doesn't. Is this the inteded way >> or am I missing something? >> >> thanks, >> >> matheus > > > You have ethname_enabled="YES" and ethname_devices="ue0 ue1" (or whichever > devices you want renamed) in your rc.conf; their original names, not what > you want them to become? > > If you have console access, can you try running it manually? I'll double > check in a bit that the version on github matches what I'm running. > > - Eric I'm running (and have been running) the version on github verbatim with success. Does 'service -e | grep ethname' return the path the ethname? If not, put the 'ethname' script chmod-ed 555 and owned by root into /usr/local/etc/rc.d ... I'm also running 11.0RC2, but on amd64; I don't think that should be the issue, especially if you can run it manually via 'service ethname start'. - Eric