[SOLVED]Predictable Network Interface Names - UNpredictable!

New to Debian (Or Linux in general)? Ask your questions here!

[SOLVED]Predictable Network Interface Names - UNpredictable!

Postby 1byte » 2018-01-10 12:18

I have just happened to notice, that if I do not install on the machine Debian desktop environment (my favourite is Mate),
then changing "Predictable Network Interface Names" to ethX and wlanX does not work :(
with any of the 3 options suggested here:
https://www.freedesktop.org/wiki/Softwa ... faceNames/



If I install Mate, "Predictable Network Interface Names" ethX and wlanX work as they should by
changing this line to:
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

Is there any way to get ethX and wlanX if I do not have "Debian desktop environment" installed and it is a headless machine? As this is driving me crazy :)

My set up is latest UEFI Debian 64bit on OptiPlex9020M ..
Last edited by 1byte on 2018-01-10 17:29, edited 1 time in total.
1byte
 
Posts: 41
Joined: 2017-07-16 06:51

Re: Predictable Network Interface Names - UNpredictable!

Postby bw123 » 2018-01-10 15:39

1byte wrote:I have just happened to notice, that if I do not install on the machine Debian desktop environment (my favourite is Mate),
then changing "Predictable Network Interface Names" to ethX and wlanX does not work :(
with any of the 3 options suggested here:
https://www.freedesktop.org/wiki/Softwa ... faceNames/



If I install Mate, "Predictable Network Interface Names" ethX and wlanX work as they should by
changing this line to:
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

Is there any way to get ethX and wlanX if I do not have "Debian desktop environment" installed and it is a headless machine? As this is driving me crazy :)

My set up is latest UEFI Debian 64bit on OptiPlex9020M ..


I have never used the 'biosdevname' parameter and it is not mentioned as part of solution 3 on the link. Seems if you turn off the biosnames, then the only option would be the predictable scheme though?

That doesn't make sense that a DE is required, I'used net.ifnames=0 without a DE and it works fine here. Maybe it could be some specific quirk in your hardware?

here's another link with short info, seems like it could be related if you upgraded the system from jessie?
https://www.debian.org/releases/stable/ ... face-names
User avatar
bw123
 
Posts: 2916
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Predictable Network Interface Names - UNpredictable!

Postby 1byte » 2018-01-10 16:57

GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
or
GRUB_CMDLINE_LINUX="net.ifnames=0"

does not work ..... the machine boots up, it shows that it has got "eth0" interface, but no IP4 or 6 address is assigned.

I see, could it be issue with DHCP?
1byte
 
Posts: 41
Joined: 2017-07-16 06:51

Re: Predictable Network Interface Names - UNpredictable!

Postby Head_on_a_Stick » 2018-01-10 17:01

1byte wrote:GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
or
GRUB_CMDLINE_LINUX="net.ifnames=0"

does not work ..... the machine boots up, it shows that it has got "eth0" interface

That means that it has worked.

The net.ifnames=0 parameter just changes the name of the interface back to the old-style ("eth0") and you seem to be reporting that it has done just that.

To clarify, with that parameter applied, please post the output of:
Code: Select all
cat /proc/cmdline
ip link

If you have no connection then try editing /etc/network/interfaces with the correct interface names (if you are using that to connect).
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 7405
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Predictable Network Interface Names - UNpredictable!

Postby 1byte » 2018-01-10 17:15

sudo ln -s /dev/null /etc/systemd/network/99-default.link
sudo update-initramfs -u

will give me "eth0", but no IP4 or 6 address is assign on boot again ....
1byte
 
Posts: 41
Joined: 2017-07-16 06:51

Re: Predictable Network Interface Names - UNpredictable!

Postby Head_on_a_Stick » 2018-01-10 17:22

1byte wrote:but no IP4 or 6 address is assign on boot again ....

How are you connecting?
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 7405
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Predictable Network Interface Names - UNpredictable!

Postby 1byte » 2018-01-10 17:27

Head_on_a_Stick wrote:If you have no connection then try editing /etc/network/interfaces with the correct interface names (if you are using that to connect).


All solved, thank you.

Added extra lines with correct interfaces in "/etc/network/interfaces"

Code: Select all
$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eno1
iface eno1 inet dhcp
# This is an autoconfigured IPv6 interface
iface eno1 inet6 auto

allow-hotplug eth0
iface eth0 inet dhcp
iface eth0 inet6 auto
1byte
 
Posts: 41
Joined: 2017-07-16 06:51


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable