Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #184786 > unrolled thread
| Started by | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| First post | 2017-08-07 09:10 +0200 |
| Last post | 2017-08-08 09:50 +0200 |
| Articles | 6 — 3 participants |
Back to article view | Back to linux.debian.user
changing the ethernet interface name Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-08-07 09:10 +0200
Re: changing the ethernet interface name Felix Miata <mrmazda@earthlink.net> - 2017-08-07 09:30 +0200
Re: changing the ethernet interface name Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-08-07 10:30 +0200
Re: changing the ethernet interface name Zenaan Harkness <zenaan@freedbms.net> - 2017-08-07 10:50 +0200
Re: changing the ethernet interface name Zenaan Harkness <zenaan@freedbms.net> - 2017-08-08 02:40 +0200
Re: changing the ethernet interface name Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-08-08 09:50 +0200
| From | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| Date | 2017-08-07 09:10 +0200 |
| Subject | changing the ethernet interface name |
| Message-ID | <ubKkN-56m-1@gated-at.bofh.it> |
After installing stretch 9.1, I discovered that some programs were not
working because the interface name was enp0s31f6 instead of eth0.
This would not be a problem if these programs reported this error in
their log file,but it not the case(for example with minidlnad)
I then tried to change this name, following the recipe in the debian manual
https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_network_interface_name:
In order to ensure each network interface to be named persistently
for each reboot using MAC address etc., there is a rules file
"/etc/udev/rules.d/70-persistent-net.rules". This file is automatically
generated by the "/lib/udev/write_net_rules" program, probably run
!!!!!!!!!!!!
by the "persistent-net-generator.rules" rules file. You can modify
it to change naming rule.
None of these files:
70-persistent-net.rules
/lib/udev/write_net_rules
persistent-net-generator.rules
are present on my system, and I don't know how to get them
It's curious that the author of the manual himself is not sure
Does anybody know how to to fix that.
best regards,
--
Pierre Frenkiel
[toc] | [next] | [standalone]
| From | Felix Miata <mrmazda@earthlink.net> |
|---|---|
| Date | 2017-08-07 09:30 +0200 |
| Message-ID | <ubKE9-5de-3@gated-at.bofh.it> |
| In reply to | #184786 |
Pierre Frenkiel composed on 2017-08-07 09:00 (UTC+0200):
> After installing stretch 9.1, I discovered that some programs were not
> working because the interface name was enp0s31f6 instead of eth0.
> This would not be a problem if these programs reported this error in
> their log file,but it not the case(for example with minidlnad)
> I then tried to change this name, following the recipe in the debian manual
> https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_network_interface_name:
> In order to ensure each network interface to be named persistently
> for each reboot using MAC address etc., there is a rules file
> "/etc/udev/rules.d/70-persistent-net.rules". This file is automatically
> generated by the "/lib/udev/write_net_rules" program, probably run
!!!!!!!!!!!!
> by the "persistent-net-generator.rules" rules file. You can modify
> it to change naming rule.
> None of these files:
> 70-persistent-net.rules
> /lib/udev/write_net_rules
> persistent-net-generator.rules
> are present on my system, and I don't know how to get them
> It's curious that the author of the manual himself is not sure
> Does anybody know how to to fix that.
If all you are after is to restore historical behavior, aka eth0 assigned to the
only interface in the machine, employ your choice of instructions at the bottom:
<https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/>
I use #3, and 70-persistent-net.rules persists with the right MAC address on eth0.
--
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
Felix Miata *** http://fm.no-ip.com/
[toc] | [prev] | [next] | [standalone]
| From | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| Date | 2017-08-07 10:30 +0200 |
| Message-ID | <ubLAd-5Ov-1@gated-at.bofh.it> |
| In reply to | #184788 |
On Mon, 7 Aug 2017, Felix Miata wrote:
> If all you are after is to restore historical behavior, aka eth0 assigned to the
> only interface in the machine, employ your choice of instructions at the bottom:
> <https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/>
>
> I use #3, and 70-persistent-net.rules persists with the right MAC address on eth0.
hi Felix.
I have none of the files mentionned in #1 ans #2, and no 70-persistent-net.rules too,
but anyway #3 works perfectly.
Thanks a lot.
best regards,
--
Pierre Frenkiel
[toc] | [prev] | [next] | [standalone]
| From | Zenaan Harkness <zenaan@freedbms.net> |
|---|---|
| Date | 2017-08-07 10:50 +0200 |
| Message-ID | <ubLTA-5V4-21@gated-at.bofh.it> |
| In reply to | #184792 |
On Mon, Aug 07, 2017 at 10:25:39AM +0200, Pierre Frenkiel wrote: > On Mon, 7 Aug 2017, Felix Miata wrote: > > > If all you are after is to restore historical behavior, aka eth0 assigned to the > > only interface in the machine, employ your choice of instructions at the bottom: > > <https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/> > > > > I use #3, and 70-persistent-net.rules persists with the right MAC address on eth0. > > hi Felix. > I have none of the files mentionned in #1 ans #2, and no 70-persistent-net.rules too, > but anyway #3 works perfectly. > Thanks a lot. $ locate persistent-net /etc/udev/rules.d/70-persistent-net.rules
[toc] | [prev] | [next] | [standalone]
| From | Zenaan Harkness <zenaan@freedbms.net> |
|---|---|
| Date | 2017-08-08 02:40 +0200 |
| Message-ID | <uc0IV-83V-5@gated-at.bofh.it> |
| In reply to | #184795 |
[Multipart message — attachments visible in raw view] — view raw
On Mon, Aug 07, 2017 at 05:07:15PM +0200, Pierre Frenkiel wrote: > On Mon, 7 Aug 2017, Zenaan Harkness wrote: > > > $ locate persistent-net > > /etc/udev/rules.d/70-persistent-net.rules > > > > hi Zenaan, > thank you for your advice, but I think that few Debian users ignore the locate command! > > ==> ls /etc/udev/rules.d > 50-pam_usb.rules > 56-hpmud.rules > 60-vboxdrv.rules Interesting. Perhaps mine comes from an older version of Debian, or perhaps it's just something that must be manually created (which I did a few years ago now), IDK sorry. I've attacked mine in case it's useful for you - just add lines in there acccording to each relevant MAC address, restart networking and you should be good to go. Replace the lines I've got there. For my current install, it's the only file I have in that directory.
[toc] | [prev] | [next] | [standalone]
| From | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| Date | 2017-08-08 09:50 +0200 |
| Message-ID | <uc7r3-4Ox-1@gated-at.bofh.it> |
| In reply to | #184865 |
On Tue, 8 Aug 2017, Zenaan Harkness wrote: > > Interesting. > > Perhaps mine comes from an older version of Debian, or perhaps it's > just something that must be manually created (which I did a few years > ago now), IDK sorry. > > I've attacked mine in case it's useful for you - just add lines in > there acccording to each relevant MAC address, restart networking and > you should be good to go. Replace the lines I've got there. > I suppose that it actually comes from an older version. Mine is now Stretch, but I have this 70-persistent-net.rules file from my previous release, i.e. Jessie, which I saved on disk before doing the Stretch install.. Anyway, the kernel option method works fine for the eth name, and I put it the grub config. best regards, -- Pierre Frenkiel
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web