Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Nov 2020 05:24:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 212480] [NEW PORT] sysutils/ethname: boot-time (re)naming of ethernet devices by MAC address
Message-ID:  <bug-212480-7788-na6HBiP1Gi@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-212480-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-212480-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212480

--- Comment #19 from commit-hook@FreeBSD.org ---
A commit references this bug:

Author: kevans
Date: Sat Nov  7 05:24:07 UTC 2020
New revision: 554342
URL: https://svnweb.freebsd.org/changeset/ports/554342

Log:
  [NEW PORT] sysutils/ethname: boot-time (re)naming of ethernet devices by =
MAC

  An rc-script for pinning an ethernet network name to a MAC address.

  --

  This isn't typically needed on PCIe systems, but for systems with multiple
  USB ethernet (ue) devices, which seem to like to come up in
  non-deterministic order, it is very helpful; doubly so when the system in
  question is a router / firewall where the network config and security
  concerns vary wildly from one device to the next.

  It could also be of use for traditional NICs (PCIe) when adding a new card
  to a system, for example, and ensuring that the existing, previously
  configured device sticks to the MAC address, and not having to worry about
  which ends up /dev/xxxN vs /dev/xxxM.

  The script inserts itself before netif, waits an adjustable delay for the
  expected devices to appear, and then renames them as requested by the use=
r.
  All of the device configuration, pf, etc., can be written with the new
  names. It does not attempt to automatically handle devices added after bo=
ot.

  --

  Usage is described in the script, but effectively:

  $ cat /etc/rc.conf
  ethname_enable=3D"YES"
  ethname_foo0_mac=3D"aa:bb:cc:dd:ee:00"
  ethname_bar_mac=3D"aa:bb:cc:dd:ee:01"

  # Optionally, otherwise it'll just enumerate all ethname_*_mac vars:
  ethname_names=3D"foo0 bar"

  PR:           212480
  Submitted by: eborisch gmail com

Changes:
  head/sysutils/Makefile
  head/sysutils/ethname/
  head/sysutils/ethname/Makefile
  head/sysutils/ethname/distinfo
  head/sysutils/ethname/pkg-descr

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-212480-7788-na6HBiP1Gi>