Date: Wed, 31 Dec 2014 11:03:34 +0100 From: Martin Birgmeier <la5lbtyi@aon.at> To: Freddie Cash <fjwcash@gmail.com> Cc: freebsd-net <freebsd-net@freebsd.org> Subject: Re: Tying down network interfaces Message-ID: <54A3C9F6.6000603@aon.at> In-Reply-To: <CAOjFWZ5OmuBKSeFAaxw0x-zPY8E9azf7SSU5%2B5OvaLZhXdoJBg@mail.gmail.com> References: <54A2E8B6.3070801@aon.at> <CAOjFWZ5OmuBKSeFAaxw0x-zPY8E9azf7SSU5%2B5OvaLZhXdoJBg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
The devices are PCI cards, no USB is involved.
I assume that I'd have to add lines similar to
hint.sis.0.at="pci0:9:0"
to /boot/device.hints, but I am unsure of the correct syntax.
See also these old articles (which ultimately seem to have gone
unanswered):
http://lists.freebsd.org/pipermail/freebsd-questions/2009-January/190453.html
,
http://lists.freebsd.org/pipermail/freebsd-questions/2009-January/190624.html
-- Martin
On 12/30/14 21:13, Freddie Cash wrote:
>
> On Dec 30, 2014 10:02 AM, "Martin Birgmeier" <la5lbtyi@aon.at
> <mailto:la5lbtyi@aon.at>> wrote:
> >
> > Hi,
> >
> > I have two network interfaces as follows:
> >
> > sis0: <NatSemi DP8381[56] 10/100BaseTX> port 0xa400-0xa4ff mem
> > 0xd5800000-0xd5800fff irq 9 at device 9.0 on pci0
> > sis1: <NatSemi DP8381[56] 10/100BaseTX> port 0x9400-0x94ff mem
> > 0xd4800000-0xd4800fff irq 11 at device 12.0 on pci0
> >
> > When sis0 breaks down, sis1 gets renumbered as sis0, wreaking havoc
> > (mostly on my brains until I figure out which card is actually
> affected).
> >
> > How do I tie down these two interfaces so that they always stay as sis0
> > and sis1, respectively, regardless of which ones are present in the
> > system? - I expect to insert something into /boot/device.hints.
>
> There was a recent thread on one of the lists about using devd to name
> USB Ethernet devices based on their MAC or serial number. Something
> like that should be useful for naming NICs something constant.
>
> There's also a bug report for it with a working solution.
>
> Cheers,
> Freddie
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54A3C9F6.6000603>
