[opensuse] 'new' Ethernet device names
Leap 42.3 provides the traditional Ethernet device names, like eth0. I am one of the strange guys who actually liked the new names that were hardware dependent. What is the best way to get those names on Leap 42.3? I have seen suggestions of a kernel command line option, of udev rules, and I bet a bet others. Is there a proper way to get those names with Leap 42.3? -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Roger Oberholtzer wrote:
Leap 42.3 provides the traditional Ethernet device names, like eth0. I am one of the strange guys who actually liked the new names that were hardware dependent.
What is the best way to get those names on Leap 42.3? I have seen suggestions of a kernel command line option, of udev rules, and I bet a bet others. Is there a proper way to get those names with Leap 42.3?
kernel command line option : net.ifnames=1 (from memory, I don't use it, please double check). -- Per Jessen, Zürich (7.5°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, Mar 5, 2018 at 12:08 PM, Per Jessen <per@computer.org> wrote:
Roger Oberholtzer wrote:
Leap 42.3 provides the traditional Ethernet device names, like eth0. I am one of the strange guys who actually liked the new names that were hardware dependent.
What is the best way to get those names on Leap 42.3? I have seen suggestions of a kernel command line option, of udev rules, and I bet a bet others. Is there a proper way to get those names with Leap 42.3?
kernel command line option : net.ifnames=1
That is one of the options. But there is also /etc/udev/rules.d/70-persistent-net.rules, which I think is a compromise in that it assigns the same old name to the same MAC address. I think this one stays okay until you change the hardware. Then things may move around. I can live with that. Does setting net.ifnames=1 disable making /etc/udev/rules.d/70-persistent-net.rules? This is the part that is unclear. At least for openSUSE Leap 42.3. Discussions for other distros reference a different udev file and are thus doing things in a different fashion. -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Roger Oberholtzer wrote:
On Mon, Mar 5, 2018 at 12:08 PM, Per Jessen <per@computer.org> wrote:
Roger Oberholtzer wrote:
Leap 42.3 provides the traditional Ethernet device names, like eth0. I am one of the strange guys who actually liked the new names that were hardware dependent.
What is the best way to get those names on Leap 42.3? I have seen suggestions of a kernel command line option, of udev rules, and I bet a bet others. Is there a proper way to get those names with Leap 42.3?
kernel command line option : net.ifnames=1
That is one of the options. But there is also /etc/udev/rules.d/70-persistent-net.rules, which I think is a compromise in that it assigns the same old name to the same MAC address. I think this one stays okay until you change the hardware. Then things may move around. I can live with that.
In YaST, you can assign specific names to your interfaces, as you wish. Those names are recorded in 70-persistent-net.rules. TMK, that file is not automatically changed.
Does setting net.ifnames=1 disable making /etc/udev/rules.d/70-persistent-net.rules?
Nope. With net.ifnames=1 you get the persistent names, with 70-persistent-net.rules you can still change them. There was at least one openSUSE release where net.ifnames=1 was the default (or could not even be changed), and you had to use 70-persistent-net.rules to get the proper names. -- Per Jessen, Zürich (10.0°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 03/05/2018 05:47 AM, Roger Oberholtzer wrote:
Leap 42.3 provides the traditional Ethernet device names, like eth0. I am one of the strange guys who actually liked the new names that were hardware dependent.
What is the best way to get those names on Leap 42.3? I have seen suggestions of a kernel command line option, of udev rules, and I bet a bet others. Is there a proper way to get those names with Leap 42.3?
You can change it in Yast. In Network Settings, edit the adapter and go to the hardware tab. You can change the name there. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, Mar 5, 2018 at 2:43 PM, James Knott <james.knott@rogers.com> wrote:
On 03/05/2018 05:47 AM, Roger Oberholtzer wrote:
Leap 42.3 provides the traditional Ethernet device names, like eth0. I am one of the strange guys who actually liked the new names that were hardware dependent.
What is the best way to get those names on Leap 42.3? I have seen suggestions of a kernel command line option, of udev rules, and I bet a bet others. Is there a proper way to get those names with Leap 42.3?
You can change it in Yast. In Network Settings, edit the adapter and go to the hardware tab. You can change the name there.
I suspect this is the same as editing 70-persistent-net.rules. I guess what I am curious about is if there is a way to get the new names without 70-persistent-net.rules. IMHO, using 70-persistent-net.rules and generating the names automatically based on hardware are incompatible. Or at least apples and oranges. -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Roger Oberholtzer wrote:
I guess what I am curious about is if there is a way to get the new names without 70-persistent-net.rules. IMHO, using 70-persistent-net.rules and generating the names automatically based on hardware are incompatible. Or at least apples and oranges.
A nice question indeed. I have two TW systems, a laptop and a desktop. The laptop had been installed 18 month ago, the desktop in December. The laptop has 70-persistent-net.rules, and uses eth<n> names. The desktop does not have the file, and uses enp6s0. I don't recall if I did anything different during installation, and cannot really spot where the difference comes from. The files mentioned in the comments of 70-persistent-net.rules, /usr/lib/udev/write_net_rules or persistent-net-generator.rules, don't exist on either of the installations. Have you tried just removing the file, and/or making it a link to /dev/null? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Roger Oberholtzer wrote:
On Mon, Mar 5, 2018 at 2:43 PM, James Knott <james.knott@rogers.com> wrote:
On 03/05/2018 05:47 AM, Roger Oberholtzer wrote:
Leap 42.3 provides the traditional Ethernet device names, like eth0. I am one of the strange guys who actually liked the new names that were hardware dependent.
What is the best way to get those names on Leap 42.3? I have seen suggestions of a kernel command line option, of udev rules, and I bet a bet others. Is there a proper way to get those names with Leap 42.3?
You can change it in Yast. In Network Settings, edit the adapter and go to the hardware tab. You can change the name there.
I suspect this is the same as editing 70-persistent-net.rules.
I guess what I am curious about is if there is a way to get the new names without 70-persistent-net.rules.
I haven't tried it, but it seems to me this ought to work: dd if=/dev/null of=70-persistent-net.rules boot with net.ifnames=1. -- Per Jessen, Zürich (10.8°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
Roger Oberholtzer wrote:
I guess what I am curious about is if there is a way to get the new names without 70-persistent-net.rules.
I haven't tried it, but it seems to me this ought to work:
dd if=/dev/null of=70-persistent-net.rules
boot with net.ifnames=1.
Yup, that works. At least on leap15 - I doubt that has changed much since leap42.x 70-persistent-net.rules is only needed if you want to assign other names than the default, and that is precisely what you don't want. -- Per Jessen, Zürich (10.1°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, Mar 5, 2018 at 4:58 PM, Per Jessen <per@computer.org> wrote:
dd if=/dev/null of=70-persistent-net.rules
boot with net.ifnames=1.
Yup, that works. At least on leap15 - I doubt that has changed much since leap42.x 70-persistent-net.rules is only needed if you want to assign other names than the default, and that is precisely what you don't want.
I will file that for future reference. We are going to see how it goes with the 70-persistent-net.rules method used in Leap. If that is problematic we will try this. -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
James Knott
-
Per Jessen
-
Peter Suetterlin
-
Roger Oberholtzer