• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
KaliTut

KaliTut

Kali Linux tutorial and Linux system tips

  • Home
  • Raspberry Pi
  • Privacy Policy
  • About us

Change network interfaces in Raspbian Stretch

Last Updated on May 24, 2020 by Kalitut Leave a Comment

The network interface for Ethernet and WiFi have changed their name since Raspbian Stretch. So no longer “eth0” and “wlan0”, but “enx …” and “wlx …”. However, this only affects interfaces connected via USB. The integrated WiFi from Raspberry Pi 3 B is not one of them. The interface name is formed on USB devices via the MAC address, which is then different and unnecessarily long for each system. Also, many tutorials and tutorials will not work anymore.

Raspbian  network interfaces

There are three ways to get short and fixed interface names:

  • Kernel parameters
  • Mask the UDEV standard policy
  • Define your own names with systemd.link

Solution 1: Kernel parameters
To return to the old and familiar terms, simply add a kernel parameter that will be considered at system startup. For this one must supplement a configuration file.

sudo nano /boot/cmdline.txt

Insert at the end of the line with a leading space:

net.ifnames = 0

Save, close and restart the system.

Solution 2: Mask the UDEV standard policy
The simplest but also unclean variant is to mask the file with the UDEV standard policy. The UDEV policy deactivates the original assignment of the usual fixed interface names.
ln -s / dev / null /etc/systemd/network/99-default.link
For the change to take effect, the system must be restarted.

Note: Here the network interfaces get unpredictable names. By this is meant that the terms “wlan0”, “wlan1”, etc. are randomly assigned to the network adapter.

Solution 3: Set your own names with systemd.link
The right option is to define your own names. This has the disadvantage that you have to deal a little more intensively with the interface configuration. The advantage, one can define own fixed names for the network interfaces. But if you only ever use an Ethernet and WLAN interface in Raspberry Pi, solution 1 would be preferable.

Filed Under: Raspberry Pi

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Follow us

  • Facebook
  • Twitter
  • YouTube

Categories

  • Android pentesting tools
  • Arduino
  • Books
  • Darknet
  • database
  • General
  • Github Tools
  • Hacking
  • Kali Linux
  • Linux
  • Linux Commands
  • Network Administrator
  • Penetration Testing
  • Penetration Testing Tools
  • PowerShell
  • Raspberry Pi
  • resources
  • Review
  • Termux
  • Tutorials
  • Ubuntu
  • Uncategorized
  • Video Tutorials
  • vmware
  • WiFi Adapter
  • WiFi Pentesting
  • Wireless Router
  • Wireshark

Recent Posts

  • Hijacked Wi-Fi? Thorough explanation of hacking techniques
  • Windows PowerShell tutorial for beginners
  • Learn to Hack Steps from Beginner to Hacker
  • PowerShell Tutorial – GUIDE introduction with basics
  • Top Hacking Tools
  • Home
  • About us
  • Privacy Policy
  • Affiliate disclaimer

Copyright © 2023