Date: Wed, 01 Jul 2015 10:02:16 +0200 From: Willem Jan Withagen <wjw@digiware.nl> To: Julian Elischer <julian@freebsd.org>, freebsd-net@freebsd.org Subject: Re: Same NIC name to MAC mapping on FreeBSD Message-ID: <55939E88.5090804@digiware.nl> In-Reply-To: <559361B3.9030702@freebsd.org> References: <BY1PR03MB14348857B72B04AE33FE4926BBAA0@BY1PR03MB1434.namprd03.prod.outlook.com> <559131AC.6010304@winterei.se> <BY1PR03MB143410D9C26A8EAFD44898E4BBA90@BY1PR03MB1434.namprd03.prod.outlook.com> <CAJ-Vmomx%2BmaiaWRgWWc3p4YbrC1LWL4NgNN8CCs2XJ=Ew4Yz8Q@mail.gmail.com> <559361B3.9030702@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 01/07/2015 05:42, Julian Elischer wrote: > On 7/1/15 6:56 AM, Adrian Chadd wrote: >> Hi, >> >> If we don't support this as part of the interface renaming stuff, it >> would certainly be good to. >> >> >> a- >> >> >> On 29 June 2015 at 21:36, Wei Hu <weh@microsoft.com> wrote: >>>> -----Original Message----- >>>> From: owner-freebsd-net@freebsd.org [mailto:owner-freebsd- >>>> net@freebsd.org] On Behalf Of Paul S. >>>> Sent: Monday, June 29, 2015 7:53 PM >>>> To: freebsd-net@freebsd.org >>>> Subject: Re: Same NIC name to MAC mapping on FreeBSD >>>> >>>> On my production systems, I've never seen it deviate without hardware >>>> changes. >>>> >>>> Are you seeing otherwise? >>>> >>> In Hyper-V, if say three NICs were assigned to the VM, I got >>> following mapping >>> Initially: >>> >>> Hn0 -> MAC 0 >>> Hn1 -> MAC 1 >>> Hn2 -> MAC2 >>> >>> Then if I remove the NIC with MAC 1 and reboot, I want the other two >>> interfaces to keep the same >>> Names instead of reassigning hn1 to MAC2. This is a requirement from >>> virtual appliance >>> Vendor to retain such mappings. I am wondering if there is any way >>> to do this without >>> Asking customer or manually editing any config files. > do interface arrivals show up in devd? if so they could be renamed on > arrival > I vaguely remember being able to do this some years ago but I can't > remember the details. This sounds horribly like the Linux solution, where I always have to refind eth0 and eth1 because the assignments in the devd config. Swapping a disk to another system, changes MACs and looses the devices. :( But I've been bitten so often now, that I do know where to look. Bhyve virtualisation and disk image replication is one of the cases where this comes into play. --WjW
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55939E88.5090804>