Re: Unexpected NIC naming f23 firewall implications

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Christopher <ctubbsii-fedora@xxxxxxxxxx> wrote:
> I recently updated my desktop to f23, and it went smoothly, for the most
> part. However, it broke my mediatomb server because the NIC changed from
> em1 to eno1.

On any computer where it matters which network interface is connected
to which network, I recommend writing some Udev rules to set permanent
interface names based on the MAC address.

Write a file named /etc/udev/rules.d/01-network-interface-naming.rules 
with content similar to this:

SUBSYSTEM=="net", ATTR{address}=="00:0c:46:16:dc:b0", NAME:="world"
SUBSYSTEM=="net", ATTR{address}=="00:1e:8c:cf:dc:e5", NAME:="gigabit"
SUBSYSTEM=="net", ATTR{address}=="fc:f8:ae:ea:08:85", NAME:="wifi"

"01" in the filename causes it to be loaded before other files with
higher numbers. Assignment with ":=" prevents later rules from
clobbering the names. I found that capital letters don't work in the
hexadecimal MAC addresses, so write them with small letters.

We shouldn't have to do this manually, and it definitely shouldn't be
as difficult as it was to find out how to do it, but on the upside you
get meaningful names so that you won't have any trouble remembering
which interface is which.

(I hope no one turns Udev inside out anytime soon.)

Björn Persson

Attachment: pgpF9elqKbHZj.pgp
Description: OpenPGP digital signatur

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux