Re: changing the ethernet interface name

2017-08-08 Thread Pierre Frenkiel

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



Re: changing the ethernet interface name

2017-08-07 Thread Zenaan Harkness
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.
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:0x1502 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="f0:de:f1:11:01:10", ATTR{dev_id}=="0x0", ATTR{type}=="1", 
KERNEL=="eth*", NAME="eth0"

# USB device 0x:0x (asix)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="00:0e:c6:22:2e:2a", ATTR{dev_id}=="0x0", ATTR{type}=="1", 
KERNEL=="eth*", NAME="eth1"


Re: changing the ethernet interface name

2017-08-07 Thread Zenaan Harkness
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:
> > 
> > 
> > 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



Re: changing the ethernet interface name

2017-08-07 Thread Pierre Frenkiel

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:


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



Re: changing the ethernet interface name

2017-08-07 Thread Felix Miata
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:


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/



changing the ethernet interface name

2017-08-07 Thread Pierre Frenkiel

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