Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED]Predictable Network Interface Names - UNpredictable!

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
1byte
Posts: 59
Joined: 2017-07-16 06:51

[SOLVED]Predictable Network Interface Names - UNpredictable!

#1 Post by 1byte »

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.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Predictable Network Interface Names - UNpredictable!

#2 Post by bw123 »

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
resigned by AI ChatGPT

1byte
Posts: 59
Joined: 2017-07-16 06:51

Re: Predictable Network Interface Names - UNpredictable!

#3 Post by 1byte »

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?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Predictable Network Interface Names - UNpredictable!

#4 Post by Head_on_a_Stick »

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).
deadbang

1byte
Posts: 59
Joined: 2017-07-16 06:51

Re: Predictable Network Interface Names - UNpredictable!

#5 Post by 1byte »

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 ....

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Predictable Network Interface Names - UNpredictable!

#6 Post by Head_on_a_Stick »

1byte wrote:but no IP4 or 6 address is assign on boot again ....
How are you connecting?
deadbang

1byte
Posts: 59
Joined: 2017-07-16 06:51

Re: Predictable Network Interface Names - UNpredictable!

#7 Post by 1byte »

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

Post Reply