4 Port NIC changing Mac Address every boot and eth* name

Kernels & Hardware, configuring network, installing services

4 Port NIC changing Mac Address every boot and eth* name

Postby tommycat » 2015-09-06 04:52

I installed a 4 Port NIC from Sun microsystems.
Im on Debian Jessie 8.1
It kept changing Mac Address on every boot and assigning more and more increasing eth* names to the interface.

I found the solution.

Set up static Ip with non eth* name like wan* or net*

Go to /etc/udev/rules.d/70-persistent-net.rules and delete all entries.

Reboot

Make sure eth* eth* eth* eth* are up using ifconfig eth* up

Go back to 70-persistent-net.rules and change the NAME="" feild to new name wan* net*

Then make a new file in /etc/udev/rules.d/ called 99-local-net.rules and follow this article http://ubuntuforums.org/showthread.php?t=2168431
to create a rule based on Kernel.

and lastly Go to http://www.freedesktop.org/software/systemd/man/systemd.link.html /lib/systemd/network/99-default.link
and change MacAddressPolicy: From Persistent to Random

You could make a proper 99-default.link .link file if you wanted but my interfaces were up and renamed and stable with reboots.

No more random mac address changes or eth* increasing.
tommycat
 
Posts: 1
Joined: 2015-09-06 04:36

Return to System configuration

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable